View previous topic :: View next topic |
Author |
Message |
epig Tux's lil' helper
Joined: 16 Feb 2005 Posts: 88
|
Posted: Mon Feb 28, 2005 11:55 am Post subject: Apache updated - php broken... |
|
|
So I do an emerge -upD world on my test-box today (the one with ACCEPT_KEYWORDS="~x86" in make.conf) and find that /etc/apache2/conf/apache2.conf has been replaced by /etc/apache2/httpd.conf
I edit that to my specs, and restart apache, but now it abslolutely refuses to recognize php.....
I have tried to re-emerge php, gone through all the files, made sure that everything is correct. I the only file I made changes to was /etc/apache2/httpd.conf
Am I the ony one with this problem? Wouldn't be the first time, but I tought I would check...
A telnet localhost 80 gives the following output:
Code: | Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^[
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>o /index.html not supported.<br />
</p>
<hr>
<address>Apache/2.0.52 (Gentoo/Linux) mod_ssl/2.0.52 OpenSSL/0.9.7e Server at foo.bar.com Port 80</address>
</body></html>
Connection closed by foreign host. |
Any suggestions?
EDIT: Submitted as Gentoo Bug 83543 https://bugs.gentoo.org/show_bug.cgi?id=83543
Last edited by epig on Mon Feb 28, 2005 12:59 pm; edited 2 times in total |
|
Back to top |
|
|
MoonWalker Guru
Joined: 04 Jul 2002 Posts: 511
|
Posted: Mon Feb 28, 2005 12:30 pm Post subject: |
|
|
This is because mod_php ebuild needs to be updated to work with the new apache herd refresh. I think there should have been a big fat warning about this as anyone emerging and restarting apache now will have a no working php! until php ebuilds been updated.
I just emerged apache and was lucky to figure out this before I restarted, so right now I simply can't restart apache or I loose php and the functionallity of my sites.
I think this need to be made sticky or there will soon be a flood of crying about none working php!
As affected by it I think you also should file a bug to put it to the php maintainers attention, although I really hope there have been some kind of communication between them and the apache herd and imho this should not have been unmasked until php was done as well as almost everybodu depends on its fuctionality. _________________ /Joakim
Living on earth is expensive, but it includes a free trip around the sun
every year. |
|
Back to top |
|
|
franky999 n00b
Joined: 20 Feb 2005 Posts: 39 Location: Netherlands
|
Posted: Mon Feb 28, 2005 12:41 pm Post subject: |
|
|
Yes. I agree. I had the same problem. I was just about searching to fix it.
Does this apply? |
|
Back to top |
|
|
Ries n00b
Joined: 16 Sep 2004 Posts: 23 Location: Denmark
|
Posted: Mon Feb 28, 2005 12:42 pm Post subject: |
|
|
Joining the club of broken apache owners
The configuration file also changed from /etc/apache2/conf/* to /etc/apache2/*. (and apache2.conf -> httpd.conf)
Apache2 location changed (i think)? so all apache stuff is broken (subversion webdav, mod_python, ...) ? i get a "module".so not found after reemerge og php, mod_php, subversion, mod_python. _________________ /Ries |
|
Back to top |
|
|
MoonWalker Guru
Joined: 04 Jul 2002 Posts: 511
|
Posted: Mon Feb 28, 2005 1:48 pm Post subject: Re: Apache updated - php broken... |
|
|
Anything "secret" with this? clicking the link gives me Code: | [color=red] You are not authorized to access bug #83543[/color] |
_________________ /Joakim
Living on earth is expensive, but it includes a free trip around the sun
every year. |
|
Back to top |
|
|
epig Tux's lil' helper
Joined: 16 Feb 2005 Posts: 88
|
Posted: Mon Feb 28, 2005 1:59 pm Post subject: Re: Apache updated - php broken... |
|
|
MoonWalker wrote: | Anything "secret" with this? clicking the link gives me Code: | [color=red] You are not authorized to access bug #83543[/color] |
|
Hmmm... Seems that I forgot to uncheck the "Dev relations" box, and now I can't remove it....
I will keep you posted? |
|
Back to top |
|
|
MoonWalker Guru
Joined: 04 Jul 2002 Posts: 511
|
Posted: Mon Feb 28, 2005 2:23 pm Post subject: |
|
|
Ries wrote: | Joining the club of broken apache owners
The configuration file also changed from /etc/apache2/conf/* to /etc/apache2/*. (and apache2.conf -> httpd.conf)
Apache2 location changed (i think)? so all apache stuff is broken (subversion webdav, mod_python, ...) ? i get a "module".so not found after reemerge og php, mod_php, subversion, mod_python. |
I think mod_python is ok, from changelog on yesterdays update Code: | Version bump + uses new apache-module eclass. | and subversion is appearently on its way... but you have to re-emerge those again or they wont pickup apache right.
But the big blocker here is php, as I'm sure at least 70% of all apache installs uses it it's almost amasing this was unmasked before it was compatible! being ~arch ok but still, I'm sure even more of those that run ~arch also runs php
EDIT: Anyone wanting/needing to keep an eye on the developments of this, see if a module been updated etc. here is the mother of bugs for it https://bugs.gentoo.org/show_bug.cgi?id=76457, check the dependancies of the bug for modules status. _________________ /Joakim
Living on earth is expensive, but it includes a free trip around the sun
every year. |
|
Back to top |
|
|
Ries n00b
Joined: 16 Sep 2004 Posts: 23 Location: Denmark
|
Posted: Mon Feb 28, 2005 6:29 pm Post subject: |
|
|
MoonWalker wrote: | Ries wrote: | Joining the club of broken apache owners
The configuration file also changed from /etc/apache2/conf/* to /etc/apache2/*. (and apache2.conf -> httpd.conf)
Apache2 location changed (i think)? so all apache stuff is broken (subversion webdav, mod_python, ...) ? i get a "module".so not found after reemerge og php, mod_php, subversion, mod_python. |
I think mod_python is ok, from changelog on yesterdays update Code: | Version bump + uses new apache-module eclass. | and subversion is appearently on its way... but you have to re-emerge those again or they wont pickup apache right.
But the big blocker here is php, as I'm sure at least 70% of all apache installs uses it it's almost amasing this was unmasked before it was compatible! being ~arch ok but still, I'm sure even more of those that run ~arch also runs php
EDIT: Anyone wanting/needing to keep an eye on the developments of this, see if a module been updated etc. here is the mother of bugs for it https://bugs.gentoo.org/show_bug.cgi?id=76457, check the dependancies of the bug for modules status. |
Tried to go back to 2.0.52 by emerge =ww...apache-2.0.52, but subversion wants to upgrade it. so i wanted to go back to the -r3. Did a emerge -sync, emerge unmerge apache php mod_php ... and then emerge apache.
But now i get a compile (configure) error
Configuring Apache Portable Runtime library ...
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
build directory, or an apr-config file.
!!! ERROR: net-www/apache-2.0.52-r3 failed.
The error keeps comming... tried to clear ccache and wiped /var/tmp/portage/* _________________ /Ries |
|
Back to top |
|
|
HomeDawg n00b
Joined: 30 Aug 2004 Posts: 21
|
Posted: Mon Feb 28, 2005 7:37 pm Post subject: |
|
|
I'm among these people with a broken apache also, how soon do you think this issue will be resolved? I run a comercial server on gentoo and I need a resolution for this fast, Thanx for your help. |
|
Back to top |
|
|
Ries n00b
Joined: 16 Sep 2004 Posts: 23 Location: Denmark
|
Posted: Mon Feb 28, 2005 8:48 pm Post subject: |
|
|
Fixed my apache-2.0.52-r3 not building any more problem..
Code: | emerge apr apr-util |
_________________ /Ries |
|
Back to top |
|
|
hairyfeet Tux's lil' helper
Joined: 07 Jan 2003 Posts: 118 Location: Århus, Denmark
|
Posted: Mon Feb 28, 2005 9:32 pm Post subject: |
|
|
FYI bug 83543 is public now. |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Mon Feb 28, 2005 10:41 pm Post subject: |
|
|
Please read this document before upgrading Apache to unstable. Do it now or suffer later... |
|
Back to top |
|
|
Ian l33t
Joined: 28 Oct 2002 Posts: 834 Location: Somerville, MA
|
Posted: Tue Mar 01, 2005 4:35 am Post subject: |
|
|
While I understand the implications, and don't even really need PHP support anytime soon, does anyone have a relative timeframe of when mod_php will be rewritten? In any case, looks like I picked a good time to completely redo my installation of Gentoo, so my configuration files were all bare anyways. |
|
Back to top |
|
|
Ladius n00b
Joined: 23 Jan 2003 Posts: 39 Location: California, USA
|
Posted: Tue Mar 01, 2005 6:44 am Post subject: |
|
|
Yeah gotta agree, when I noticed the "warning" I had incorrectly assumed the apache herd had actually bothered to make sure some of the important modules "work" or at least still functioned regardless of the upgrade.
Don't get me wrong I realize I'm not paying anything for this distro and well support is up to those willing to do the support. I just wish they had actually gotten everybody on board before releasing to unstable since clearly this and other mod_something's not working is a rather serious bug that doesn't need further testing to actually catch.
This version of apache gets hard masked in my /etc/portage for the moment |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Mar 01, 2005 7:20 am Post subject: |
|
|
That new unstable apache version should be hard masked until they get php working with it. |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Tue Mar 01, 2005 10:27 am Post subject: |
|
|
OK, you all are saying how important you webservers are, so don´t upgrade you production servers to unstable software versions - even without doing the prior required reading.
Quote: |
Warning: There are some modules and packages that depend on Apache that have not yet been updated. Please check the dependencies of bug 76457 to see if a critical package for you is still needing to be updated. Neither mod_php nor subversion have been updated yet, and there are several others. If this is the case, then you should wait before updating.
|
|
|
Back to top |
|
|
Ladius n00b
Joined: 23 Jan 2003 Posts: 39 Location: California, USA
|
Posted: Tue Mar 01, 2005 4:36 pm Post subject: |
|
|
Fortunately I didn't upgrade more than my laptop which exists as my test bed environment. That I was planning on doing php development last night didn't help matters, though the hard masking of apache-2.0.52-r3 and downgrading fixed my problem.
This forum heck the whole reason for the boards is for community people to interact together and give each other tips and heads up. Specifically when these tips or warnings have not been fully fleshed out by the developers, for after all they aren't perfect nor should they be expected to be. That doesn't stop us the normal users from chipping in when we can.
Again I'm not complainiing that this event happened more how it happened. Clearly reading through the bugs related to mod_php (#77556 specifically) it shows that this release caught at least a few people unprepared but the apache herd decided to go ahead with the unmasking even though at least the php herd wasn't prepared to implement the new strategy. |
|
Back to top |
|
|
feadin n00b
Joined: 14 Jun 2004 Posts: 10
|
Posted: Wed Mar 02, 2005 1:26 am Post subject: Quick temporary fix |
|
|
Here's a quick temporary fix to this problem:
Code: | sed -e 's/extramodules/modules/g' /etc/apache2/conf/modules.d/70_mod_php5.conf > /etc/apache2/modules.d/70_mod_php5.conf |
Then restart apache and try again...
I believe I'm not forgetting anything, but I'm soooo tired that I can't be sure right now, so please tell me if it works |
|
Back to top |
|
|
Ries n00b
Joined: 16 Sep 2004 Posts: 23 Location: Denmark
|
Posted: Wed Mar 02, 2005 1:12 pm Post subject: |
|
|
MoonWalker wrote: |
I think mod_python is ok, from changelog on yesterdays update Code: | Version bump + uses new apache-module eclass. | and subversion is appearently on its way... but you have to re-emerge those again or they wont pickup apache right. |
I got that working had to remove the hardmask on mod_python-3.1.4. _________________ /Ries |
|
Back to top |
|
|
albrow n00b
Joined: 07 Jun 2002 Posts: 56 Location: United Kingdom
|
Posted: Wed Mar 02, 2005 1:42 pm Post subject: |
|
|
One other thing...
For some reason, after doing the fix above, Apache was returning null files no matter what I tried to access. In /var/log/apache2/error_log I found many lines like the following:
Code: | [Wed Mar 02 12:51:43 2005] [notice] child pid 31844 exit signal Segmentation fault (11)
|
After hunting high and low, I found an invalid symlink in /etc/php/apache2-php5 called lib. It's pointing to a directory called extramodules which has been removed in the latest version of Apache. Change it so that it points to /usr/lib/apache2/modules, restart Apache and ... drumroll please ... it WORKS!
So, if anyone fancies creating an ebuild with the two fixes in... |
|
Back to top |
|
|
Ries n00b
Joined: 16 Sep 2004 Posts: 23 Location: Denmark
|
Posted: Wed Mar 02, 2005 3:05 pm Post subject: |
|
|
Actually if you count the people with important webservers, you get "all == 1"
j-m wrote: | OK, you all are saying how important you webservers are, so don´t upgrade you production servers to unstable software versions - even without doing the prior required reading.
Quote: |
Warning: There are some modules and packages that depend on Apache that have not yet been updated. Please check the dependencies of bug 76457 to see if a critical package for you is still needing to be updated. Neither mod_php nor subversion have been updated yet, and there are several others. If this is the case, then you should wait before updating.
|
|
_________________ /Ries |
|
Back to top |
|
|
mye n00b
Joined: 07 Oct 2004 Posts: 6
|
Posted: Wed Mar 02, 2005 3:44 pm Post subject: |
|
|
works not or should I say not really...
I've done the fixes above with php4 and -- the module loads! If I enter http://localhost/bogusurl apache
says ssl and php are loaded
But damn, my browser keeps downloading any files ending .php
AddType application x-httpd-php .php does not help
No idea what I got to change to make this work, can't be too difficult hm? (Im not exactly an apache-freak) _________________ Linux is an Operating System |
|
Back to top |
|
|
albrow n00b
Joined: 07 Jun 2002 Posts: 56 Location: United Kingdom
|
Posted: Wed Mar 02, 2005 4:06 pm Post subject: |
|
|
mye wrote: | works not or should I say not really...
I've done the fixes above with php4 and -- the module loads! If I enter http://localhost/bogusurl apache
says ssl and php are loaded
But damn, my browser keeps downloading any files ending .php
AddType application x-httpd-php .php does not help
No idea what I got to change to make this work, can't be too difficult hm? (Im not exactly an apache-freak) |
Mye - can you access non-PHP files OK? |
|
Back to top |
|
|
mye n00b
Joined: 07 Oct 2004 Posts: 6
|
Posted: Wed Mar 02, 2005 4:48 pm Post subject: |
|
|
Non PHP files work, get displayed, render all fine.
Now, just referenced some info.php file -- uh! works!
So PHP IS working but, strange enough, some index.php do NOT work.
Firefox wants to save them with mime-type "phtml" -- but referenced directly
they too work.
localhost/test/ -- saves some type of phtml file with a funny name ( like 4ee325)
localhost/test/index.php -- works fine
and my directoryindex of course knows index.php _________________ Linux is an Operating System |
|
Back to top |
|
|
perseguidor Apprentice
Joined: 01 Aug 2004 Posts: 278 Location: West Kingdom of Buenos Aires
|
Posted: Wed Mar 02, 2005 5:08 pm Post subject: About the overwriting of webroot/index.html by default. |
|
|
Here's the bugzilla for the overwriting of /var/www/localhost/htdocs/index.html that is on by default after this refresh:
https://bugs.gentoo.org/show_bug.cgi?id=83575 _________________ O make me a mask! |
|
Back to top |
|
|
|