Bug 62722 - BUG with Apache hanging on restarting/stop on clean install
Summary: BUG with Apache hanging on restarting/stop on clean install
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.4.34
Hardware: Other Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-14 14:02 UTC by gilperon
Modified: 2018-10-10 01:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gilperon 2018-09-14 14:02:46 UTC
I have a clean install of CENTOS 7.1 and installed Apache in it. So I created a script with only this code below (named "test.php") and I execute it calling the script in my browser (like http://localhost/test.php):

<?php

set_time_limit(0); 

sleep(10000000);

?>

If I try to restart Apache with the command systemctl restart httpd.service my SSH hangs for at least 2 or 3 minutes before actually restarting the server. The problem, is that meanwhile, the entire server gets offline! The entire server gets offline while apache is "trying" to restart.

So I ask you: how do I force a restart of apache without having to wait it? Sometimes it's even faster restarting the entire server with shutdown -r now since systemctl restart httpd.service takes so long.

I think this is a bug since Apache should not hang undefinately if the super user wants it to restart right away!
Comment 1 gilperon 2018-10-10 01:00:54 UTC
This bug is very clear, how didnt anyone checked it?