[SOLVED] Gallery2 makes apache crashing
|
EvolutionCrazy
Joined: 2006-10-17
Posts: 9 |
Posted: Tue, 2006-10-17 19:12
|
|
When i try to access to the index it just crash apache!!! i can see in error_log just this: tried with and without eaccelerator: still crashing! i have no idea what can i do... but i've PLENTY of others php applications running there just fine (phpbb, joomla, e107, ipb and so on) i've googled.. founded plenty of results about this problem with gallery2, but no solutions! disabling mysql module fixed the problem: no more apache crashes, but obviously the gallery was not working without myslq (and maybe apache do not crash just becouse some of the instructions weren't called...) like this thread: |
|

Posts: 32509
you're using php 5.0.4. the 5.0.x series had lots of serious bugs, a lot of them lead to fatal errors.
that doesn't say these php versions don't work at all, but we've seen tons of issues with them, but for some they work.
i suggest you upgrade your box to use a better php version, php 5.1.6 can be recommended.
eaccelerator certainly won't help to gain stability. not to say it's not stable, but opcode caches won't help, they only have the potential to make the whole thing less reliable (as long as the original box wasn't failing because it always was running at an extreme high load).
@your php settings:
- a memory limit o 32M should be fine.
although, you're using GD which can be very memory intensive.
- disabled functions: putenv, exec. putenv is used in g2, so it will generate some warnings, but probably those are suppressed. should certainly not lead to segfaults. exec is disabled, thus you can't use imagemagick, netpbm or other binary based g2 modules. that's ok.
@apache modules:
mod_security -> see documentation -> known issues -> apache modukes -> mod_security. known to produce problems.
Posts: 9
i'm using an RPM distribution of php... for now there's no ETA on when the repository will move to 5.1.x
as i've said tried without eaccelerator but that doesn't helped!
the box is a dual processor box... running with an average load of 0.1... 2gb of ram... and so on...
the problem is not the load
i know about disabled functions.... i don't want any of those working in my web environment, and yes, i use only GD, no problem about memory... 64mb for a single apache thread aren't a problem for now....
i disabled most of the mod_sec rules for the gallery directory... but i cannot see a reason why modsec would make my apache child crashing... at the maximum it should print a 500error... nothing more... but this is not my case...
i'll evaluate to move to php5.1... but using the most recent version scares me a little...
i still cannot undestand how a phpscript can make an apache + php5 webserver crashing...
thank for your help,
greets ;)
PS: i've read of a lot of ppl with php 5.0.x with gallery2 making their apache crashing... but that's not under the known issues... :S
PS2:
this looks interesting:
http://bugs.php.net/bug.php?id=34692
i'll try in these days on a test box the 5.1.5 version... i hope it will not break others things...
Posts: 32509
> i still cannot undestand how a phpscript can make an apache + php5 webserver crashing...
PHP has bugs that can do that. and fatal php errors (memory exceeded) achieve the same.
and using php 5.1.2, ... 5.1.6 is a lot less scary than using php 5.0.x, believe me.
@php bug:
heh, providing such a huge reproduce script is not really helping if once wants to convince the php devs that it's really a bug.
anyway, good that the bug filer verified everything himself.
i don't necessarily see the connection to your case though. the installer of g2 doesn't have a lot of code in common with the actual g2 application.
@known issues:
yep, adding a note about php 5.0.x might be worth it. can you do that please?
Posts: 9
uhm...
so migth be that the phpbug i linked is not the that can fix my problem? ouch :S
i installed that gallery months ago on another server with php 4.4.2 + mysql 4.1...
now i need to move them to the new box... so i've done a tar and a mysqldump... and just moved and unpacked them in the new location...
this evening i'll try to run the installer on the new server... just to see if also that (the installer) will drive my apache to crash... :S
i'll do some more test ASAP... after those, i'll write on known issues
thank you for your help
greets
Posts: 9
ok
apoligies...
i'm a dumb :S
tried a clean install: working ok... so... tried to check the old installations:
apache was crashing (still weird) due to the wrong
in config...
after fixing:
no more segfault!!!!
only some errors popped out (about mkdir error)...
then done a chown -R and chmod -R on the gallery data dir... and everything started working again!!! :D
sorry again for the wrong supposition :D