Results 1 to 5 of 5
Hi all,
Just installed Apache & Php5, Have all my php scripts in /var/www directory, and then went to my apache webserver to open script phpinfo.php, but I just get ...
- 04-17-2007 #1Linux Newbie
- Join Date
- May 2005
- Location
- Scranton, Pa
- Posts
- 166
PHP don't open in Apache?
Hi all,
Just installed Apache & Php5, Have all my php scripts in /var/www directory, and then went to my apache webserver to open script phpinfo.php, but I just get an error 404 message.
I can see apache page open with localhost/ It opens, yet can't open localhost/phpinfo.php or any html script either. here is my /var/www directory,
[root@localhost www]# ls
cgi-bin hello hello.php~ icons phpinfo.php test.php
error hello.php html new.html phpinfo.php~
[root@localhost www]# php -v
PHP 5.2.1 (cli) (built: Mar 29 2007 07:39:31)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
What do I try? Thanks
- 04-17-2007 #2Just Joined!
- Join Date
- May 2006
- Posts
- 9
Have you put the module in the apache/module folder and included it in the apache config.
Also, is your document root in your apache config set to /var/www too?
HTH
- 04-17-2007 #3Linux Newbie
- Join Date
- May 2005
- Location
- Scranton, Pa
- Posts
- 166
Not sure about that?
- 04-17-2007 #4Linux Newbie
- Join Date
- May 2005
- Location
- Scranton, Pa
- Posts
- 166
Resolved!
It was that my root directory is /var/www/html,
Thanks jiminald, That did it, Just an over sight.
- 04-17-2007 #5Just Joined!
- Join Date
- May 2006
- Posts
- 9
Thats ok!


Reply With Quote