I did an upgrade to php and now php is not parsing inside of html, it's showing

Rich

New member
the code only...any help? Last night I was trying to yum install php-imap.

php common was a dependency yet it was already installed thus preventing the php-imap install.

I did yum uninstall php-common. This removed about 10 processes including php, php-gd and a few other common php files. I then did a yum install php-imap and it install successfully. Afterward I did a yum install of every process that had been uninstalled including php-common, php, php-gd and so on.

After everything was back to normal on the server I restarted it and checked the application that needed the php-imap module. At first I saw nothing...then I turned on error reporting and it showed me a few errors in the code which I fixed and then I started to see the basic includes like footer and body for each page.

I tried to complete some forms that saved in the database and it spit back all my code. After troubleshooting I found out that there are major issues with parsing php inside html or within an include file. Example: My header has an include file menu.php. It only contains html and it won't include the menu. I changed it to menu.html and it still does not work.

Troubleshooting: I have googled the issue and everyone says to add items to the httpd.conf file which I have tried.

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

After adding the code of course I did a restart of apache. It didn't seem to work. I also added .htaccess files with this information in it but that didn't work. There is nothing wrong with my syntax or programming or file names...it all used to work before I did the updates to php-common.

I run:
CentOS version 5.4
Php version 5.3.5
Here is my phpinfo.php file: http://ictserver.net/dev/phpinfo.php

All our dev work on the server is also spitting back php code at us and any sites we are hosting. It seems like a lot of people have had similar issues on the web but none of their solutions have helped. Anyone want to take a stab at it?

I tried to post my httpd.conf file but it's too long. I'll try to post it in another comment.
Here is a link added to the server listing the httpd.conf file: http://stirfriedlabs.com/httpdconf.html
 
Back
Top