Apache-PHP5 issue
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Fri Aug 14, 2009 4:07 pm
- Location: Ovp kansas
Apache-PHP5 issue
Using Solaris 10 I configured and loaded Apache-Php5. It serves the index.php page as a text file and not a PHP page asking for log in. I followed directions and wonder what might be missing? httpd.conf has AddType and the loadmodule entries for php, Apache2 starts up with out issue and can serve index.html just fine.
-
- Cacti User
- Posts: 51
- Joined: Thu Aug 06, 2009 9:18 pm
What does your httpd.conf file look like. It should be configured something like this. Although I've not worked with Solaris, I believe the apache conf file would have the same basic configuration with perhaps some variations. If you change anything, be sure to test and restart your server. I use FreeBSD or Ubuntu. With FreeBSD you would apachectl -t to test and apachecti graceful to restart the httpd daemon.
Code: Select all
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm
</IfModule>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
-
- Posts: 2
- Joined: Fri Aug 14, 2009 4:07 pm
- Location: Ovp kansas
Who is online
Users browsing this forum: No registered users and 5 guests