Forum Moderators: coopster

Message Too Old, No Replies

Server Wide PHP Broken

php broken shows source code

         

ofie2

6:12 pm on Jun 29, 2008 (gmt 0)

10+ Year Member



My linux server appears to be broken. All PHP pages show source code in the web browser and they don't actually run PHP scripts.

Has anyone seen this issue before? Any ideas on where I should look to fix it?

I did not install or combile anything today. Earlier this morning my server monitoring company restarted Apache because they reported it was down.

Thanks,

Ofie

trillianjedi

7:00 pm on Jun 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Ofie.

Your webserver is not parsing the PHP pages, instead displaying them. So that means you have a configuration issue with your webserver.

Sounds like your monitoring company (who should be fired in my opinion for not performing basic testing) have changed something.

If you're running Apache, check that the PHP Module is being loaded. Also check that the config tells apache to parse pages with the .php extension (or whatever page extension you're using).

henry0

8:06 pm on Jun 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it often happens when an ISP upgrade PHP
and restart Apache.
All previous edits of php.ini are X-lled

As per TJ have a look at your php.ini

<edit>
URGENT: Bring your site down
every one may have a look at your scripts
see what I mean....
</edit>

ofie2

9:05 pm on Jun 29, 2008 (gmt 0)

10+ Year Member



trillianjedi and henry0

Thank you both for your replies. Our server maintenance company does in fact suck! They finally fixed the server after hours of waiting.

They claim that the PHP module was not included in the apache configuration file. Now it was there yesterday, where did it go? Obviously they messed something up this morning when they had to reboot Apache.

I was very upset since you are right, they could see all of my source files including database access info. I started downing each site until they fixed it.

I really appreciate both of your fast responses and the services at Webmaster World. If only I'd get the same service from the people I actually pay to do the job. I think Webmaster World should open up a referral system to companies that people like. I've searched high and low to find my latest server maintenance company only to have the same issues I had with the last deadbeats. They are slow to respond, and often don't have a clue what they are doing.

Thanks again.

Ofie

eelixduppy

9:12 pm on Jun 29, 2008 (gmt 0)



Welcome to WebmasterWorld, ofie2!

Make sure you change your database (and any other) authentication info as it's likely been compromised. Also, you should be storing your db login info below the webroot and including it within the scripts that you use it.