Help Setting Up PHP On Apache
I just installed a fresh Slackware 10.0 and I got Apache working but it doesn't seem to want to work with PHP. I thought Slackware came with PHP already installed so I just put this sample test file in htdocs.
Code:
<p>This page was created at <b> |
Edit your httpd.conf file (Apache configuration) and add following lines:
AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps DirectoryIndex index.php DirectoryIndex index.php3 DirectoryIndex index.php4 |
Here is the way to install PHP and other with Apache http://www.start-linux.com/articles/article_79.php When the code comes back that means that you don't have PHP setup on the computer..
|
ah ok i got it working now... i had to uncomment this line in my httpd.conf file
Code:
Include /etc/apache/mod_php.conf |
All times are GMT -5. The time now is 08:36 PM. |