BetaONE will rise again!

BetaONE will rise again! (http:\\b1.hcanet.com\forum/index.php)
-   Web Development (http:\\b1.hcanet.com\forum/forumdisplay.php?f=50)
-   -   Need Php/apache Help (http:\\b1.hcanet.com\forum/showthread.php?t=8940)

adams 17th Jul 03 04:04 AM

ok decided to give it a try on my laptop since i was having to many problems with the desktop. this time i decided to download and install php, apache, and mysql individually.

well i have php 4.3.2 and apache 1.3.27 installed, (haven't done mysql yet). anywas i installed both of them in the default directories, but then my book said to make a file named phpinfo.php and put it in the root of the web server. I thought I did that but i guess not since it won't work. Can anyone tell me where the root might be? (I installed everything on C:, and either in the php directory or the apache directory).

Thanks.

Sephiroth 17th Jul 03 04:05 AM

c:\program files\apache group\apache\htdocs :)

cappaberra 17th Jul 03 07:42 AM

I agree with Sephiroth. :) There's lots of great help here:http://httpd.apache.org/docs/ and else where on the internet if you don't find what you need from your local install's manual. www.php.net also has great docs on installs and what not.

enjoy... so basically, :rtfm: :P

not to be insensitive or anything, but I have faith that you'll find what you need from doing a tiny bit of reading. ;)

have fun,
CaP

SubZero 17th Jul 03 12:33 PM

look for an "htdocs" folder under "apache" folder. You should see it.
Have you done any changes under httpd.conf? How did you install php? as a module or what?

adams 19th Jul 03 11:57 PM

sub, yea as a module.

Sep, that works after i changed the ip addy in the httpd file from 24.xxx.xxx.xxx to 127.0.0.1

but now how can i access this from school? i have to have a working example for my teacher, but i can't get it to work with my ip addy. ( i could on my desktop using phpdev).

cappaberra 20th Jul 03 12:57 AM

you might need to get a dynamic dns setup assuming that your ip is dynamic... then what's your network topology on the LAN side of things? English: what's you setup? router? firewall? what kinds? what port is apache setup on?

:) it'll work soon, i promise. :)

-CaP

adams 20th Jul 03 01:27 AM

ok let me explain things a little more.

on my desktop i installed phpdev which will configure php, mysql, and apache for you. but i kept having problems with some scripts not working. but also, i could enter my ip addy from school and view the working scripts in action.

so i decided to install php, apache, and mysql on my laptop individually to see if i could get things working better. well what i have tried works, except for connecting to it with a different computer.


now, i am behind a router, but i didn't have to change anything to connect to the desktop so i figured it would work just fine on the laptop.

now i hope everyone understands that.

Sephiroth 20th Jul 03 01:30 AM

if you leave your laptop at home, on your lan, forward port 80 to your laptop, then you should be able to access it fine over ip from anywhere, if your ip is dynamic though, get a dynamic dns thing, and stick that in httpd.conf instead of an ip

adams 20th Jul 03 01:51 AM

my ip stays the same. i don't know which that is, just know it has been the same for over a year now.

Sephiroth 20th Jul 03 02:15 AM

ok, first, check your pm for your IP :P

open httpd.conf, and change 127.0.0.1 to your ip, then restart apache

in your router, forward port 80 to your laptop with apache running on it, and then it *should* work fine

Sephiroth 20th Jul 03 02:17 AM

wait, nevermind forwarding the port, i just tried your ip and i get this:

Forbidden
You don't have permission to access / on this server.


--------------------------------------------------------------------------------

Apache/1.3.27 Server at localhost Port 80

change the server name and ip to your public ip, and make sure there is a default document there, ie, index.htm in the htdocs directory

there should be an option somewhere in httpd.conf for adding index.php as a possible index page, i think the directive is called DirectoryIndex but i can't remember for sure

adams 20th Jul 03 03:45 AM

do i need to change this to my ip too?:

Quote:

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
#Listen 3000
#Listen 12.34.56.78:80

it is in the httpd.conf file.

ok there is an index.php (ok its there).

Sephiroth 20th Jul 03 03:46 AM

nope, that's just if you want it to listen on more than one ip or port


All times are GMT +1. The time now is 05:03 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.