Apache-PHP5 issue

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
greygargoyle
Posts: 2
Joined: Fri Aug 14, 2009 4:07 pm
Location: Ovp kansas

Apache-PHP5 issue

Post by greygargoyle »

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.
cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

the obvious comes to mind

php supported and modules in apache loaded?
does the directory your php scripts are in allow executing php?
proper permissions and ownership checked?
apache restarted?

can you execute php on the box at all?

# php somefile.php
yont
Posts: 12
Joined: Sat Aug 15, 2009 5:45 pm
Location: Arizona

Post by yont »

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
greygargoyle
Posts: 2
Joined: Fri Aug 14, 2009 4:07 pm
Location: Ovp kansas

Post by greygargoyle »

checked permissions (all good) and the httpd.conf (looks correct with no errors), PHP will still not initialize. The web server will present the index.php page as text. Is there a php config file I need to modify? I do have everything moved to /app/cacti as a directory, could this be an issue?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests