
30th July 2007, 20:25
|
|
Member
|
|
Join Date: Jul 2007
Posts: 67
Thanks: 3
Thanked 1 Time in 1 Post
|
|
PHP stop working
Ok now my php has stop working completely, I tried to run the phpinfo.php ... and it just trys to load and nothing happends.
|

31st July 2007, 09:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
Any errors in the apache error log of the website or the general error log of the apache webserver?
|

1st August 2007, 04:07
|
|
Member
|
|
Join Date: Jul 2007
Posts: 67
Thanks: 3
Thanked 1 Time in 1 Post
|
|
Code:
[Sun Jul 29 06:27:29 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
PHP Warning: Module 'json' already loaded in Unknown on line 0
[Sun Jul 29 06:31:12 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Sun Jul 29 22:20:07 2007] [error] an unknown filter was not added: PHP
[Sun Jul 29 22:20:07 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 10:27:29 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 10:27:30 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:08:55 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:08:55 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:16:05 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:16:05 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:16:11 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:16:11 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:16:11 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:16:11 2007] [error] an unknown filter was not added: PHP
[Mon Jul 30 14:16:12 2007] [notice] child pid 1827 exit signal Segmentation fault (11)
|

1st August 2007, 19:14
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
|
|
The Following User Says Thank You to falko For This Useful Post:
|
asus (1st August 2007)
|

1st August 2007, 21:31
|
|
Member
|
|
Join Date: Jul 2007
Posts: 67
Thanks: 3
Thanked 1 Time in 1 Post
|
|
thx again falko, I know that there is a fix for that error, but my php has stop working completely, My forum stop working and can't load any php page, I don't see any error it just stop working
|

2nd August 2007, 17:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
No error in your Apache error log when this happens? Not even something like this?
Quote:
|
[Mon Jul 30 14:16:12 2007] [notice] child pid 1827 exit signal Segmentation fault (11)
|
|

2nd August 2007, 19:06
|
|
Member
|
|
Join Date: Jul 2007
Posts: 67
Thanks: 3
Thanked 1 Time in 1 Post
|
|
well yeah, I don't know what that means that's why I posted it, did a search couldn't really find anything, and didn't think that had anything to do with php because that has always been in the log same with the json one, But its ok I will figure it out on my own like I always do, thanks for the help  .
|

3rd August 2007, 14:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
You can install monit on your server (make sure it's a recent version that can parse log files) and then tell it to restart Apache whenever it finds something like Segmentation fault in Apache's error log.
Something like this in /etc/monit/monitrc should work:
Code:
check file apache_errorlog with path /var/log/apache2/error.log
if match "exit signal Segmentation fault \(11\)$" then exec "/etc/init.d/apache2 restart"
http://www.howtoforge.com/server_mon...it_debian_etch
|

3rd August 2007, 19:42
|
|
Member
|
|
Join Date: Jul 2007
Posts: 67
Thanks: 3
Thanked 1 Time in 1 Post
|
|
lol thanks again, but I already have it installed and working perfect. But I will try and add that line. See I know that php is running when I restart the machine its fine but then its stop working it takes soooo long for the page to open if it even opens, and then I notice a huge spike in memory but can't seem to find whats eating the memory and apache takes 99% cpu, Its not that great of a machine, and its only got 256MB ram, but everything was working great before.
Last edited by asus; 3rd August 2007 at 19:50.
|

6th August 2007, 03:05
|
|
Member
|
|
Join Date: Jul 2007
Posts: 67
Thanks: 3
Thanked 1 Time in 1 Post
|
|
OK I have figured that it must be apache, When ever I try and load a php page
Code:
30091 www-data 25 0 63820 30m 1884 R 99.3 12.3 0:11.17 apache2
runs like normal but it takes (R 99.3) of the cpu and I don't know why.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 00:38.
|
|
Recent comments
1 day 21 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 10 hours ago
2 days 2 hours ago
2 days 3 hours ago
2 days 6 hours ago