Link to home
Start Free TrialLog in
Avatar of xeta_it
xeta_it

asked on

PHP fails to execute from time to time

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.
Avatar of idmisk
idmisk
Flag of Austria image

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.
Avatar of xeta_it
xeta_it

ASKER

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?
any unsual entries in the apache (error) logs?
Avatar of xeta_it

ASKER

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!!!
> 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?
Avatar of xeta_it

ASKER

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!!
ASKER CERTIFIED SOLUTION
Avatar of CetusMOD
CetusMOD
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial