Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A2567BB6 for ; Mon, 26 Sep 2011 19:35:54 +0000 (UTC) Received: (qmail 84629 invoked by uid 500); 26 Sep 2011 19:35:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 84541 invoked by uid 500); 26 Sep 2011 19:35:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 84533 invoked by uid 99); 26 Sep 2011 19:35:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2011 19:35:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of balogh.peter@cit.hu designates 81.94.178.114 as permitted sender) Received: from [81.94.178.114] (HELO mail.cit.hu) (81.94.178.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2011 19:35:46 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.cit.hu (Postfix) with ESMTP id 5B796100093 for ; Mon, 26 Sep 2011 21:35:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.cit.hu X-Spam-Score: -2.899 X-Spam-Level: Received: from mail.cit.hu ([127.0.0.1]) by localhost (newmail.cit.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8fKT2FUxNvTQ for ; Mon, 26 Sep 2011 21:35:22 +0200 (CEST) Received: from gonosz.cit.hu (catv-80-98-32-172.catv.broadband.hu [80.98.32.172]) (Authenticated sender: balogh.peter@cit.hu) by mail.cit.hu (Postfix) with ESMTPSA id 8084C100091 for ; Mon, 26 Sep 2011 21:35:21 +0200 (CEST) Received: from [10.0.0.17] (unknown [10.0.0.17]) by gonosz.cit.hu (Postfix) with ESMTP id E5A212567 for ; Mon, 26 Sep 2011 21:35:18 +0200 (CEST) Message-ID: <4E80D3F8.1070802@cit.hu> Date: Mon, 26 Sep 2011 21:35:20 +0200 From: =?ISO-8859-1?Q?Balogh_P=E9ter?= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: users@httpd.apache.org References: <4E6671CB.7010104@cit.hu> <4E66D027.7050006@gmail.com> <4E674A08.2030603@cit.hu> <4E676AC2.1000406@gmail.com> <4E676FC5.1040701@cit.hu> <4E677581.8090302@gmail.com> <4E80C216.90704@cit.hu> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050704070205020702020700" X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-2.899 tagged_above=-999 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, HTML_MESSAGE=0.001] autolearn=ham Subject: Re: [users@httpd] chroot and php5 on Ubuntu 11.04 wired error --------------050704070205020702020700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi Marco, Thanks, that's worked, and helped :) Thank you for your help, Best regards, Peter Balogh On 2011.09.26. 20:21, Marco Pizzoli wrote: > Let's try again :-) > http://www.spinics.net/lists/apache-users/msg99597.html > > 2011/9/26 Balogh P�ter > > > Hi Marco, > > I'm trying look into this, but the link seems to be dead at the > moment. > Do you have any other source for the thread? > > > Thank you for your help, > Best regards, > Peter Balogh > > On 2011.09.07. 15:51, Marco Pizzoli wrote: >> Hi, >> I already had your problem. >> I suggest you look at this thread with also my contribution to >> the analysis. >> >> http://www.apache-httpd.com/list/38/845938.html >> >> Marco >> >> On Wed, Sep 7, 2011 at 3:45 PM, Frank Gingras >> > >> wrote: >> >> On 07/09/2011 9:21 AM, Balogh P�ter wrote: >> >> Hi Frank, >> >> I've just inserted the following line on the top of the >> apache2.conf >> ChrootDir /hosting >> I didn't do anything else, to make it work, and that's >> the only line I've removed, to fix the issue >> >> Best regards, >> Peter Balogh >> >> On 2011.09.07. 14:59, Frank Gingras wrote: >> >> >> >> On 07/09/11 06:40 AM, Balogh P�ter wrote: >> >> Hi Frank, >> >> I can try a PHP list, but it's clearly an apache >> chroot related problem. >> >> Best regards, >> Peter Balogh >> >> On 2011.09.07. 4:00, Frank Gingras wrote: >> >> On 06/09/2011 3:17 PM, Balogh P�ter wrote: >> >> Hi, >> >> I've tried searching the archives (the >> FAQ is 404 at the moment), but >> couldn't find any tread regarding my issue. >> I have an Ubuntu 11.04 server running >> 2.6.38-10-server >> I've a stock apache2 and php5 installed >> from apt. Nothing fancy, no >> extensions or patches. >> I've chrooted the apache to a directory, >> and moved a few sites to the >> server. >> The sites loads fine for the first few >> times, but after a few >> reloads, I get a strange PHP error. From >> the logs: >> [Tue Sep 06 00:41:57 2011] [error] >> [client 80.98.32.172] PHP Warning: >> Unknown: failed to open stream: No such >> file or directory in Unknown >> on line 0 >> [Tue Sep 06 00:41:57 2011] [error] >> [client 80.98.32.172] PHP Fatal >> error: Unknown: Failed opening required >> '/hosting/site1/index.php' >> (include_path='.:/usr/share/php:/usr/share/pear') >> in Unknown on line 0 >> Few minutes later, or after a restart, >> the sites are working OK again. >> If I disable the chroot, everything works >> fine. >> Does anybody have a clue, what did I do >> wrong, or how can I figure >> out the problem? >> My only idea, is that I don't have a >> required so file in the chroot >> path, when apache runs out of concurrent >> instances, but I have no >> idea, how to figure out, what's missing. >> >> root@c1:/etc# dpkg -l | grep apache >> ii apache2 2.2.17-1ubuntu1.2 Apache HTTP >> Server metapackage >> ii apache2-mpm-prefork 2.2.17-1ubuntu1.2 >> Apache HTTP Server - >> traditional non-threaded model >> ii apache2-utils 2.2.17-1ubuntu1.2 >> utility programs for webservers >> ii apache2.2-bin 2.2.17-1ubuntu1.2 Apache >> HTTP Server common binary >> files >> ii apache2.2-common 2.2.17-1ubuntu1.2 >> Apache HTTP Server common files >> ii libapache2-mod-php5 5.3.5-1ubuntu7.2 >> server-side, HTML-embedded >> scripting language (Apache 2 module) >> >> root@c1:/etc# dpkg -l | grep php >> ii libapache2-mod-php5 5.3.5-1ubuntu7.2 >> server-side, HTML-embedded >> scripting language (Apache 2 module) >> ii php5 5.3.5-1ubuntu7.2 server-side, >> HTML-embedded scripting >> language (metapackage) >> ii php5-cgi 5.3.5-1ubuntu7.2 server-side, >> HTML-embedded scripting >> language (CGI binary) >> ii php5-cli 5.3.5-1ubuntu7.2 command-line >> interpreter for the php5 >> scripting language >> ii php5-common 5.3.5-1ubuntu7.2 Common >> files for packages built from >> the php5 source >> ii php5-gd 5.3.5-1ubuntu7.2 GD module for >> php5 >> ii php5-mcrypt 5.3.5-0ubuntu1 MCrypt >> module for php5 >> ii php5-mysql 5.3.5-1ubuntu7.2 MySQL >> module for php5 >> ii php5-pgsql 5.3.5-1ubuntu7.2 PostgreSQL >> module for php5 >> ii phpmyadmin 4:3.3.10-1 MySQL web >> administration tool >> ii phppgadmin 4.2.3-1.1 web-based >> administration tool for PostgreSQL >> >> >> Thank you for your help, >> Best regards, >> Peter Balogh >> >> --------------------------------------------------------------------- >> The official User-To-User support forum >> of the Apache HTTP Server >> Project. >> See >> >> for more info. >> To unsubscribe, e-mail: >> users-unsubscribe@httpd.apache.org >> >> " from the digest: >> users-digest-unsubscribe@httpd.apache.org >> >> For additional commands, e-mail: >> users-help@httpd.apache.org >> >> >> >> Try asking a php-oriented mailing list. >> >> Frank >> >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of >> the Apache HTTP Server >> Project. >> See >> >> for more info. >> To unsubscribe, e-mail: >> users-unsubscribe@httpd.apache.org >> >> " from the digest: >> users-digest-unsubscribe@httpd.apache.org >> >> For additional commands, e-mail: >> users-help@httpd.apache.org >> >> >> >> >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the >> Apache HTTP Server Project. >> See >> for more info. >> To unsubscribe, e-mail: >> users-unsubscribe@httpd.apache.org >> >> " from the digest: >> users-digest-unsubscribe@httpd.apache.org >> >> For additional commands, e-mail: >> users-help@httpd.apache.org >> >> >> >> >> Balogh, >> >> How did you build your chroot? If you used apache >> httpd directives, pastebin them in here. If you used >> your OS to chroot, you're falling outside the scope >> of this list, definitely. >> >> Frank >> >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache >> HTTP Server Project. >> See for >> more info. >> To unsubscribe, e-mail: >> users-unsubscribe@httpd.apache.org >> >> " from the digest: >> users-digest-unsubscribe@httpd.apache.org >> >> For additional commands, e-mail: >> users-help@httpd.apache.org >> >> >> >> >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache >> HTTP Server Project. >> See for more >> info. >> To unsubscribe, e-mail: >> users-unsubscribe@httpd.apache.org >> >> " from the digest: >> users-digest-unsubscribe@httpd.apache.org >> >> For additional commands, e-mail: >> users-help@httpd.apache.org >> >> >> >> Balogh, >> >> If you can reproduce the error reliably, you can strace the >> httpd -X process, and find out exactly where it fails. >> >> >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache HTTP >> Server Project. >> See for more info. >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> >> " from the digest: >> users-digest-unsubscribe@httpd.apache.org >> >> For additional commands, e-mail: users-help@httpd.apache.org >> >> >> >> >> >> -- >> _________________________________________ >> Non � forte chi non cade, ma chi cadendo ha la forza di rialzarsi. >> Jim Morrison > > > > > -- > _________________________________________ > Non � forte chi non cade, ma chi cadendo ha la forza di rialzarsi. > Jim Morrison --------------050704070205020702020700 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Marco,

Thanks, that's worked, and helped :)

Thank you for your help,
Best regards,
Peter Balogh

On 2011.09.26. 20:21, Marco Pizzoli wrote:
Let's try again :-)
http://www.spinics.net/lists/apache-users/msg99597.html

2011/9/26 Balogh Péter <balogh.peter@cit.hu>
Hi Marco,

I'm trying look into this, but the link seems to be dead at the moment.
Do you have any other source for the thread?


Thank you for your help,
Best regards,
Peter Balogh

On 2011.09.07. 15:51, Marco Pizzoli wrote:
Hi,
I already had your problem.
I suggest you look at this thread with also my contribution to the analysis.

http://www.apache-httpd.com/list/38/845938.html

Marco

On Wed, Sep 7, 2011 at 3:45 PM, Frank Gingras <francois.gingras@gmail.com> wrote:
On 07/09/2011 9:21 AM, Balogh Péter wrote:
Hi Frank,

I've just inserted the following line on the top of the apache2.conf
ChrootDir /hosting
I didn't do anything else, to make it work, and that's the only line I've removed, to fix the issue

Best regards,
Peter Balogh

On 2011.09.07. 14:59, Frank Gingras wrote:


On 07/09/11 06:40 AM, Balogh Péter wrote:
Hi Frank,

I can try a PHP list, but it's clearly an apache chroot related problem.

Best regards,
Peter Balogh

On 2011.09.07. 4:00, Frank Gingras wrote:
On 06/09/2011 3:17 PM, Balogh Péter wrote:
Hi,

I've tried searching the archives (the FAQ is 404 at the moment), but
couldn't find any tread regarding my issue.
I have an Ubuntu 11.04 server running 2.6.38-10-server
I've a stock apache2 and php5 installed from apt. Nothing fancy, no
extensions or patches.
I've chrooted the apache to a directory, and moved a few sites to the
server.
The sites loads fine for the first few times, but after a few
reloads, I get a strange PHP error. From the logs:
[Tue Sep 06 00:41:57 2011] [error] [client 80.98.32.172] PHP Warning:
Unknown: failed to open stream: No such file or directory in Unknown
on line 0
[Tue Sep 06 00:41:57 2011] [error] [client 80.98.32.172] PHP Fatal
error: Unknown: Failed opening required '/hosting/site1/index.php'
(include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
Few minutes later, or after a restart, the sites are working OK again.
If I disable the chroot, everything works fine.
Does anybody have a clue, what did I do wrong, or how can I figure
out the problem?
My only idea, is that I don't have a required so file in the chroot
path, when apache runs out of concurrent instances, but I have no
idea, how to figure out, what's missing.

root@c1:/etc# dpkg -l | grep apache
ii apache2 2.2.17-1ubuntu1.2 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.17-1ubuntu1.2 Apache HTTP Server -
traditional non-threaded model
ii apache2-utils 2.2.17-1ubuntu1.2 utility programs for webservers
ii apache2.2-bin 2.2.17-1ubuntu1.2 Apache HTTP Server common binary
files
ii apache2.2-common 2.2.17-1ubuntu1.2 Apache HTTP Server common files
ii libapache2-mod-php5 5.3.5-1ubuntu7.2 server-side, HTML-embedded
scripting language (Apache 2 module)

root@c1:/etc# dpkg -l | grep php
ii libapache2-mod-php5 5.3.5-1ubuntu7.2 server-side, HTML-embedded
scripting language (Apache 2 module)
ii php5 5.3.5-1ubuntu7.2 server-side, HTML-embedded scripting
language (metapackage)
ii php5-cgi 5.3.5-1ubuntu7.2 server-side, HTML-embedded scripting
language (CGI binary)
ii php5-cli 5.3.5-1ubuntu7.2 command-line interpreter for the php5
scripting language
ii php5-common 5.3.5-1ubuntu7.2 Common files for packages built from
the php5 source
ii php5-gd 5.3.5-1ubuntu7.2 GD module for php5
ii php5-mcrypt 5.3.5-0ubuntu1 MCrypt module for php5
ii php5-mysql 5.3.5-1ubuntu7.2 MySQL module for php5
ii php5-pgsql 5.3.5-1ubuntu7.2 PostgreSQL module for php5
ii phpmyadmin 4:3.3.10-1 MySQL web administration tool
ii phppgadmin 4.2.3-1.1 web-based administration tool for PostgreSQL


Thank you for your help,
Best regards,
Peter Balogh

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Try asking a php-oriented mailing list.

Frank


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



Balogh,

How did you build your chroot? If you used apache httpd directives, pastebin them in here. If you used your OS to chroot, you're falling outside the scope of this list, definitely.

Frank


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
 "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
 "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Balogh,

If you can reproduce the error reliably, you can strace the httpd -X process, and find out exactly where it fails.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
 "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




--
_________________________________________
Non è forte chi non cade, ma chi cadendo ha la forza di rialzarsi.
                    Jim Morrison




--
_________________________________________
Non è forte chi non cade, ma chi cadendo ha la forza di rialzarsi.
                    Jim Morrison

--------------050704070205020702020700--