LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   php.info? (https://www.linuxquestions.org/questions/linux-server-73/php-info-537839/)

Frank Soranno 03-15-2007 06:09 PM

php.info?
 
I just install lamp and have Apache, mysql working, and installed php5,Tried to open file for phpinfo on my server but it wont open?I get an error message,
Not Found
Index of /phpinfo.php

Name Last modified Size Description

[DIR] Parent Directory 15-Mar-2007 15:56 -

Apache/1.3.34 Server at localhost Port 80

bulliver 03-15-2007 06:22 PM

Is your apache configured to use PHP?
Does "phpinfo.php" exist in the DocumentRoot of your webserver?

Apache seems to think "phpinfo.php" is a directory on your server for some reason.

Frank Soranno 03-15-2007 06:44 PM

I have info.php file in my /var/www I thought it was where it belongs? Where does it belong?
I have to get my httpd.conf straighten out but I don't know how to. Need some help.

bulliver 03-15-2007 06:54 PM

Quote:

I have info.php file in my /var/www I thought it was where it belongs? Where does it belong?
It belongs in the directory specified by the "DocumentRoot" in http.conf if you expect to access it at "http://yoursite.com/phpinfo.php".

Quote:

I have to get my httpd.conf straighten out but I don't know how to. Need some help.
Documentation is a good place to start: http://httpd.apache.org/docs/1.3/

As for getting php up and running, try the docs there: http://www.php.net/manual/en/install.unix.php
Ignore the bit about installing, just follow the advice for configuration.

There are also countless 'LAMP' guides available for free: http://www.google.ca/search?hl=en&ie...e+Search&meta=


All times are GMT -5. The time now is 07:22 AM.