PHP fails to execute from time to time

Posted on 2005-05-07
Last Modified: 2010-03-04
I just moved to a new Webserver and I'm having severe problems with the PHP execution.
From Time to Time the PHP-code is offered as download and is not being executed.
After restarting apache, everything usually works fine again.
My gues is, that the memory is full, so PHP fails to execute. Any help?

This is a pretty severe security problem, because in some scripts the passwords to databases could be misused by somebody.
Question by:xeta_it
    LVL 10

    Expert Comment

    is it reproducible?
    does it happens to different scripts or is it always the same?
    have you check the logs of apache for possible error messages?

    > My gues is, that the memory is full, so PHP fails to execute
    no, this is not the reason for your problem. if apache is not able to allocate the required memory, it wouldnt deliver you a page at all.

    Author Comment

    Well it is not exactly reproducible. It just happens once in a while. Like Once every Month, but not exactly.
    It happens when i'm using all kinds of scripts... even with PHPMyAdmin.
    Sometimes, just with simple Websites.
    You go to that URL it happens on many different ones and it offers you index.php to "open" or" save to disk".
    Once this has happened, it happens on all sites until I restart the server.

    Strange, right?
    LVL 10

    Expert Comment

    any unsual entries in the apache (error) logs?

    Author Comment

    Ok I found the problem, I think!

    Some entry in the vhost.conf had this line in it:

    php_admin_flag engine off

    So each time this domain was called in a webbrowser (it was a mail only domain), php engine got turned off!!!
    LVL 10

    Expert Comment

    > It just happens once in a while.
    > ...
    > php_admin_flag engine off
    this is really strange, because in this case it would fail all the time to execute php code

    are you using some kind of virtual host management like SysCP?

    Author Comment

    Yes, it's called Confixx.

    No it only failed, after calling that domain, I guess.
    Since the Domain had no website. Only few visitors tried to go there. So these frqeuent visitors made the php fail...

    Since I changed it, we haven't had the problem anymore!!

    Accepted Solution

    PAQ'd, 500 points refunded.
    Community Support Moderator

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now