PHP with Slackware
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.
Is your Apache configuration aware of PHP? Create a file with the contents below and call it info.php:
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.
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.
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 03:44 PM.|