Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

PHP fails to execute from time to time

Posted on 2005-05-07
8
Medium Priority
?
187 Views
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.
0
Comment
Question by:xeta_it
  • 3
  • 3
7 Comments
 
LVL 10

Expert Comment

by:idmisk
ID: 14053047
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.
0
 

Author Comment

by:xeta_it
ID: 14061249
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?
0
 
LVL 10

Expert Comment

by:idmisk
ID: 14062749
any unsual entries in the apache (error) logs?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:xeta_it
ID: 14111311
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!!!
0
 
LVL 10

Expert Comment

by:idmisk
ID: 14111505
> 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?
0
 

Author Comment

by:xeta_it
ID: 14240369
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!!
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 14264919
PAQ'd, 500 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month11 days, 4 hours left to enroll

572 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