-   Linux - General (
-   -   PHP with Slackware (

fuelinjection 06-09-2004 02:07 AM

PHP with Slackware
Hi All,

I'm using slackware 9.1, apache is working fine, but I also thought that php would be running too, as when I enter 'php -v' I get a version number.

I have changed the default web server folder....
from : /var/www/htdocs/
to : /var/www/public_html/

Do I have to change a setting in a file to tell php which folders to run from.

Hope someone can help me.



hw-tph 06-09-2004 02:55 AM

Is your Apache configuration aware of PHP? Create a file with the contents below and call it info.php:


Put it in a web accessible directory (in the Apache document root, perhaps?) and access it through your browser. If PHP is setup correctly you will find a long page with information about the PHP environment and related settings.

If it doesn't render the page I suggest you browse the PHP manual which includes very verbous installation information - what needs to be in your httpd.conf and so on.


trickykid 06-09-2004 07:41 AM

Look towards the default httpd.conf file that comes with apache and slack. You'll see the php lines to uncomment in order to enable php. After uncommenting it to load the php.conf file, you can edit that file which is in the same directory as httpd.conf file in /etc/apache/

Once all said and done, simply restart apache.

fuelinjection 06-09-2004 08:08 AM

Ok, I've uncommented that line, but there is not php.conf file in the /etc/apache/ folder.

There is a mod_php.conf

All times are GMT -5. The time now is 06:33 PM.