LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   PHP 5 + Apache not configured correctly. (https://www.linuxquestions.org/questions/linux-server-73/php-5-apache-not-configured-correctly-586992/)

Clean3d 09-24-2007 10:27 AM

PHP 5 + Apache not configured correctly.
 
Hi, I'm working on setting up a server (running openSuse 10.2) to host PHPBB, Wordpress, etc. I've installed and configured (to the best of my ability) Apache, MySQL, and PHP. However, when I go to the link to setup Wordpress, all it does it display the PHP code instead of executing it.

According to Wordpress's site, this is because PHP isn't configured correctly.

I installed PHP using this site. Running make test displayed a whole plethora of bugs, but make and make install ran fine, so I'm hoping they weren't critical bugs.

I'm guessing my mistake was in editing the httpd.conf file. I think the installation took care of adding the line LoadModule php5_module modules/libphp5.so, so here's what I added (the text in bold)...

Code:

</IfModule>
<IfModule mime_module>
AddType application-x-httpd-php .php .phtml
</IfModule>

Any help would be greatly appreciated!

Clean3d 09-24-2007 11:06 AM

Well, it's started working... I have no idea why. If anyone would still explain what's going on here, though, I would appreciate it. I don't like to trust a solution that just happens by "chance".:confused:


All times are GMT -5. The time now is 07:53 AM.