Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache updated - php broken...
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
epig
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2005
Posts: 88

PostPosted: Mon Feb 28, 2005 11:55 am    Post subject: Apache updated - php broken... Reply with quote

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
View user's profile Send private message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 511

PostPosted: Mon Feb 28, 2005 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
franky999
n00b
n00b


Joined: 20 Feb 2005
Posts: 39
Location: Netherlands

PostPosted: Mon Feb 28, 2005 12:41 pm    Post subject: Reply with quote

Yes. I agree. I had the same problem. I was just about searching to fix it.

Does this apply?
Back to top
View user's profile Send private message
Ries
n00b
n00b


Joined: 16 Sep 2004
Posts: 23
Location: Denmark

PostPosted: Mon Feb 28, 2005 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 511

PostPosted: Mon Feb 28, 2005 1:48 pm    Post subject: Re: Apache updated - php broken... Reply with quote

epig wrote:


EDIT: Submitted as Gentoo Bug 83543 https://bugs.gentoo.org/show_bug.cgi?id=83543
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
View user's profile Send private message
epig
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2005
Posts: 88

PostPosted: Mon Feb 28, 2005 1:59 pm    Post subject: Re: Apache updated - php broken... Reply with quote

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
View user's profile Send private message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 511

PostPosted: Mon Feb 28, 2005 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ries
n00b
n00b


Joined: 16 Sep 2004
Posts: 23
Location: Denmark

PostPosted: Mon Feb 28, 2005 6:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
HomeDawg
n00b
n00b


Joined: 30 Aug 2004
Posts: 21

PostPosted: Mon Feb 28, 2005 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ries
n00b
n00b


Joined: 16 Sep 2004
Posts: 23
Location: Denmark

PostPosted: Mon Feb 28, 2005 8:48 pm    Post subject: Reply with quote

Fixed my apache-2.0.52-r3 not building any more problem..
Code:
emerge apr apr-util

_________________
/Ries
Back to top
View user's profile Send private message
hairyfeet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 118
Location: Århus, Denmark

PostPosted: Mon Feb 28, 2005 9:32 pm    Post subject: Reply with quote

FYI bug 83543 is public now.
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Mon Feb 28, 2005 10:41 pm    Post subject: Reply with quote

Please read this document before upgrading Apache to unstable. Do it now or suffer later... :!:
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Tue Mar 01, 2005 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Ladius
n00b
n00b


Joined: 23 Jan 2003
Posts: 39
Location: California, USA

PostPosted: Tue Mar 01, 2005 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message
gentoo_lan
l33t
l33t


Joined: 08 Sep 2004
Posts: 891
Location: Charles Town, WV

PostPosted: Tue Mar 01, 2005 7:20 am    Post subject: Reply with quote

That new unstable apache version should be hard masked until they get php working with it.
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Tue Mar 01, 2005 10:27 am    Post subject: Reply with quote

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.


:roll:
Back to top
View user's profile Send private message
Ladius
n00b
n00b


Joined: 23 Jan 2003
Posts: 39
Location: California, USA

PostPosted: Tue Mar 01, 2005 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
feadin
n00b
n00b


Joined: 14 Jun 2004
Posts: 10

PostPosted: Wed Mar 02, 2005 1:26 am    Post subject: Quick temporary fix Reply with quote

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 :wink:
Back to top
View user's profile Send private message
Ries
n00b
n00b


Joined: 16 Sep 2004
Posts: 23
Location: Denmark

PostPosted: Wed Mar 02, 2005 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
albrow
n00b
n00b


Joined: 07 Jun 2002
Posts: 56
Location: United Kingdom

PostPosted: Wed Mar 02, 2005 1:42 pm    Post subject: Reply with quote

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... :wink:
Back to top
View user's profile Send private message
Ries
n00b
n00b


Joined: 16 Sep 2004
Posts: 23
Location: Denmark

PostPosted: Wed Mar 02, 2005 3:05 pm    Post subject: Reply with quote

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.


:roll:

_________________
/Ries
Back to top
View user's profile Send private message
mye
n00b
n00b


Joined: 07 Oct 2004
Posts: 6

PostPosted: Wed Mar 02, 2005 3:44 pm    Post subject: Reply with quote

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 :P

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
View user's profile Send private message
albrow
n00b
n00b


Joined: 07 Jun 2002
Posts: 56
Location: United Kingdom

PostPosted: Wed Mar 02, 2005 4:06 pm    Post subject: Reply with quote

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 :P

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
View user's profile Send private message
mye
n00b
n00b


Joined: 07 Oct 2004
Posts: 6

PostPosted: Wed Mar 02, 2005 4:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
perseguidor
Apprentice
Apprentice


Joined: 01 Aug 2004
Posts: 278
Location: West Kingdom of Buenos Aires

PostPosted: Wed Mar 02, 2005 5:08 pm    Post subject: About the overwriting of webroot/index.html by default. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum