You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Karol Pomaski <ka...@gmail.com> on 2013/04/14 16:41:13 UTC

[users@httpd] Apache 2 Mod_Chroot problem

Hello,

I believe I have something misconfigured. I use Apache/2.2.16 (Debian) with mod_chroot. I know that the 'apache2 restart' command does not work correctly while using mod_chroot. 
I have noticed that every sunday the Apache is shutting down. While looking at logs there is nothing.
Is it true that Apache in some intervals restarts itself (like every sunday)? That would explain why it switches off every sunday. How can I protect from the restart action?

Regards,
Karol
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Query Str

Posted by Ian C <mc...@yahoo.com>.

Eric,

You we're right, they don't rellay relate but you got me thinking and digging some more, what in fact was happening was that I was providing the url & get params on the browser's address bar (still in development), and in turn the loaded html was calling the cgi as an event source -- WITHOUT the query string portion.

ENTIRELY MY NEWBIE BAD.

Thanks for being so patient with me everyone, especially Eric. 

Ian


--- On Mon, 4/15/13, Eric Covener <co...@gmail.com> wrote:

From: Eric Covener <co...@gmail.com>
Subject: Re: [users@httpd] Query Str
To: users@httpd.apache.org
Received: Monday, April 15, 2013, 2:01 PM

How do these two URL's relate to eachother?

/JC84/SBCs.html?SBC=A1
/JC84/cgi-bin/SBC.cgi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Query Str

Posted by Eric Covener <co...@gmail.com>.
How do these two URL's relate to eachother?

/JC84/SBCs.html?SBC=A1
/JC84/cgi-bin/SBC.cgi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Query Str

Posted by Ian C <mc...@yahoo.com>.
Sorry for reposting but I'm still stumped.  If anyone has any advice at all...

thanks


Hi everyone,

I'm new to web configurations etc. I hope someone can help me with this, I've been googling and reading docs for many hours.

I have Apache 2.2.19 which has been running fine, until I needed a new CGI which needed the QUERY_STRING from the Get (eg.
 <url>?SBC=A1... ) My CGI can obtain all other pertinent env vars, in fact here they
 are:

DOCUMENT_ROOT'='/usr/pkg/share/httpd/htdocs'\n
GATEWAY_INTERFACE'='CGI/1.1'\n
HTTP_ACCEPT'='text/event-stream'\n
HTTP_ACCEPT_ENCODING'='gzip, deflate'\n
HTTP_ACCEPT_LANGUAGE'='en-US,en;q=0.5'\n
HTTP_CONNECTION'='keep-alive'\n
HTTP_HOST'='10.128.29.39'\n
HTTP_USER_AGENT'='Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
 FirePHP/0.7.1'\n
PATH'='/usr/pkg/...[SNIP]'\n
QUERY_STRING'=''\n
REMOTE_ADDR'='10.128.29.148'\n
REMOTE_PORT'='11324'\n
REQUEST_METHOD'='GET'\n
REQUEST_URI'='/cgi-bin/SBC.cgi'\n
SCRIPT_FILENAME'='/usr/pkg/share/httpd/htdocs/JC84/cgi-bin/SBC.cgi'\n
SCRIPT_NAME'='/cgi-bin/SBC.cgi'\n
SERVER_ADDR'='10.128.29.39'\n
SERVER_ADMIN'='mc_ian@yahoo.com'\n
SERVER_NAME'='10.128.29.39'\n
SERVER_PORT'='80'\n
SERVER_PROTOCOL'='HTTP/1.1'\n
SERVER_SIGNATURE'=''\n
SERVER_SOFTWARE'='Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8m DAV/2'\n"

See? No Query_String!

Apache does receive the request ok according to this log:

# grep "SBC=A1" /var/log/httpd/access_log
...29.148 - - [11/Apr/2013:23:13:10 -0400] "GET /JC84/SBCs.html?SBC=A1 HTTP/1.1" 304 -

Re: [users@httpd] Apache 2 Mod_Chroot problem

Posted by Tom Evans <te...@googlemail.com>.
On Sun, Apr 14, 2013 at 7:09 PM, Karol Pomaski <ka...@gmail.com> wrote:
> Well, I have checked the log and I see this line:
>
> [Sun Apr 14 06:25:04 2013] [notice] Graceful restart requested, doing restart
> apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/suphp.load: Cannot load /usr/lib/apache2/modules/mod_suphp.so into server: /usr/lib/apache2/modules/mod_suphp.so: cannot open shared object file: No such file or directory
>
>
> Looks like it make the graceful restart.
>
> Regards,
> Karol
>

Servers don't just restart themselves, a person either directly
initiated the restart, or did so indirectly, by setting a crontab to
rotate logs or similar.

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2 Mod_Chroot problem

Posted by Karol Pomaski <ka...@gmail.com>.
Well, I have checked the log and I see this line:

[Sun Apr 14 06:25:04 2013] [notice] Graceful restart requested, doing restart
apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/suphp.load: Cannot load /usr/lib/apache2/modules/mod_suphp.so into server: /usr/lib/apache2/modules/mod_suphp.so: cannot open shared object file: No such file or directory


Looks like it make the graceful restart.

Regards,
Karol

On Apr 14, 2013, at 12:56 PM, John Iliffe <jo...@iliffe.ca> wrote:

> Check logrotate which is probably doing a 'kill -SIGHUP'.  Look in the 
> Apache error log prior to the rotate for a message like this:
> 
> [Sun Apr 14 03:19:55.472903 2013] [mpm_event:notice] [pid 22674:tid 
> 140605074487040] AH00494: SIGHUP received.  Attempting to restart
> 
> Then the first error log entry after the restart should be similar to:
> 
> [Sun Apr 14 03:19:55.620047 2013] [mpm_event:notice] [pid 22674:tid 
> 140605074487040] AH00489: Apache/2.4.3 (Unix) OpenSSL/1.0.0-fips 
> mod_fcgid/2.3.7 configured -- resuming normal operations
> 
> If there is a problem starting, Apache probably encounters it during this 
> process.
> 
> Regards,
> 
> John
> ========================================
> On Sunday 14 April 2013 11:35:55 Eric Covener wrote:
>> On Sun, Apr 14, 2013 at 11:33 AM, Karol Pomaski <ka...@gmail.com> 
> wrote:
>>> Or maybe it reloads the config?
>>> Something strange is happening maybe this is a bug in Apache package
>>> from Debian?
>> 
>> The server isn't reloading itself.  Check crontab.
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2 Mod_Chroot problem

Posted by John Iliffe <jo...@iliffe.ca>.
Check logrotate which is probably doing a 'kill -SIGHUP'.  Look in the 
Apache error log prior to the rotate for a message like this:

[Sun Apr 14 03:19:55.472903 2013] [mpm_event:notice] [pid 22674:tid 
140605074487040] AH00494: SIGHUP received.  Attempting to restart

Then the first error log entry after the restart should be similar to:

[Sun Apr 14 03:19:55.620047 2013] [mpm_event:notice] [pid 22674:tid 
140605074487040] AH00489: Apache/2.4.3 (Unix) OpenSSL/1.0.0-fips 
mod_fcgid/2.3.7 configured -- resuming normal operations

If there is a problem starting, Apache probably encounters it during this 
process.

Regards,

John
========================================
On Sunday 14 April 2013 11:35:55 Eric Covener wrote:
> On Sun, Apr 14, 2013 at 11:33 AM, Karol Pomaski <ka...@gmail.com> 
wrote:
> > Or maybe it reloads the config?
> > Something strange is happening maybe this is a bug in Apache package
> > from Debian?
> 
> The server isn't reloading itself.  Check crontab.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2 Mod_Chroot problem

Posted by Eric Covener <co...@gmail.com>.
On Sun, Apr 14, 2013 at 11:33 AM, Karol Pomaski <ka...@gmail.com> wrote:
> Or maybe it reloads the config?
> Something strange is happening maybe this is a bug in Apache package from Debian?
>

The server isn't reloading itself.  Check crontab.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2 Mod_Chroot problem

Posted by Karol Pomaski <ka...@gmail.com>.
Or maybe it reloads the config?
Something strange is happening maybe this is a bug in Apache package from Debian?

Regards,
Karol

On Apr 14, 2013, at 10:18 AM, Eric Covener <co...@gmail.com> wrote:

>> Is it true that Apache in some intervals restarts itself (like every sunday)?
> 
> No.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2 Mod_Chroot problem

Posted by Eric Covener <co...@gmail.com>.
> Is it true that Apache in some intervals restarts itself (like every sunday)?

No.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org