Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache & PHP hangs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gareth
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 234
Location: UK

PostPosted: Mon Dec 20, 2004 1:43 pm    Post subject: Apache & PHP hangs Reply with quote

Yesterday, I re-emerged 'mod_php' (due to a problem that turned out not to be php related at all), and ever since then I can't use apache.
When I run the '/etc/init.d/apache2' script to start it, I get the OK, but can't access any web pages. There is only one instance of apache running whereas normally there are a few threads.
If I start it on the command line without the '-D PHP4' option, then I get multiple threads, and can access static html pages.
The only thing I changed before the re-emerge was to set some USE flags - namely 'nls' and 'session'. I therefore removed those, and emerged again. Still no luck I'm afraid. Also, some 'etc-update' along the line may have updated some 'rc' or 'ini' files, but I can't remember!
Does anyone know of any configuration option that will cause this?
Any help or suggestion would be most appreciated.

Regards,

Gareth
Back to top
View user's profile Send private message
macawgumbo
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 165

PostPosted: Mon Dec 20, 2004 2:20 pm    Post subject: Reply with quote

Here's a decent plan of action:

1. Type in:
Code:
emerge -davu world

2. Look at system packages and what use flags are being checked (Note: this will update any and all packages on your system to latest version)
3. If you are not sure, find something that might be related, or just want an updated system type yes. Otherwise, type no.
4. If you want to change any USE Flags, before step 1 would have been a good time. Remember to
Code:
env-update
afterwards.
5. Do an
Code:
etc-update
and you should be set to go.
6. Go back through and check all apache configuration files and the php configuration file. (Maybe directories got reset to defaults or something)
7. If no luck, repost here and wait for reply, or use another suggestion below.
Back to top
View user's profile Send private message
gareth
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 234
Location: UK

PostPosted: Mon Dec 20, 2004 3:12 pm    Post subject: Reply with quote

FIXED IT!!!!!!!!!!!!!!!!!!!!

After running apache with the '-X' option (so that it stays running in the foreground) and getting nowhere, I noticed it was exiting to the command prompt after loading the php module. A quick 'ps ax' showed that it was still running, and had to be 'kill'ed. I then ran the 'php' interpreter on the command line, and got the following clue:-
Code:
PHP Warning:  [Turck MMCache] This build of "Turck MMCache" was compiled for PHP version 4.3.9. Rebuild it for your PHP version (4.3.10) or download precompiled binaries.
 in Unknown on line 0
PHP Fatal error:  Unable to start Turck MMCache module in Unknown on line 0
I therefore re-emerge 'turck-mmcache' and it now works fine!!
Anyway, thanks for your help.

Regards,

Gareth
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
Page 1 of 1

 
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