Help - Search - Members - Calendar
Full Version: Apache 2.0 = big whoopsie?
The Planet Forums > Control Panels > Plesk
etantus
I went and autoupdated my RPMs (I hate rpms), and turns out Apache 2.0 is conflicting with Plesk's SuExec wrapper I guess.


Now apache won't start, and consequently, ALL of my sites are down.

Anyone delt with this problem before? Any suggestions? If I have revert to 1.3, how would I go about doing it in a way which Plesk won't be mad at me?

Much thanks,

-Jerome
Ales
The Apache's suexec won't work, you need to replace it witht the one provided by Plesk:

- login to your server using ssh, su to root
- copy the plesk's suexec over the apache one:

cp /usr/sbin/suexec /usr/sbin/suexec.mybackup
cp /usr/sbin/psa-suexec /usr/sbin/suexec

- restart httpd

Of course, you don't need to backup the existing suexec if you don't want to... You won't need it again icon_smile.gif

In any case, httpd should work even with the wrong suexec, only cgi scripts should stop working... Odd. You didn't upgrade the 1.3.x to 2.0.x, did you?
etantus
no, it all started when rackshack reformatted my hard drive.


I couldn't start httpd then, it was telling me my hostname was incorrect. I fixed that. Then, it was showing the "Congratulations you have successfully installed Apache" or whatever. instead of the Plesk Default I then contacted rackshack, they fixed that. Then, I can't even start httpd.


What rackshack told me
QUOTE
It appears that suEXEC is not working properly. This seems to be due to your installation of Apache 2.0. The RPM that you used was not compiled properly. You will either need to revert back to the original version of the software, find an appropriately compiled RPM, or compile Apache yourself from source. Rackshack cannot assist you with this process. The relevant documentation can be found at: http://httpd.apache.org/docs-2.0/suexec.html. Good luck!


root@beta init.d]# httpd
Syntax error on line 5 of /home/httpd/vhosts/gyrlish.com/conf/httpd.include:
Invalid command SuexecUserGroup, perhaps mis-spelled or defined by a module not included in the server configuration

yntax error on line 5 of /home/httpd/vhosts/gyrlish.com/conf/httpd.include:
Invalid command SuexecUserGroup, perhaps mis-spelled or defined by a module not included in the server configuration
[root@beta init.d]# httpd -V
Server version: Apache/2.0.40
Server built: May 20 2003 10:15:29
Servers Module Magic Number: 20020628:0
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@beta init.d]#



Any help anyone can give me will be helpful.

I've tried everything from uninstalling the RPM and going back to 1.3 (both source and rpm)

To completly uninstalling plesk and apache and letting plesk install it.

Im just soo stuck and frustrated, and ANY help suggestions would be greatlly appreciated.

-jerome
etantus
QUOTE
Originally posted by Ales
The Apache's suexec won't work, you need to replace it witht the one provided by Plesk:

- login to your server using ssh, su to root
- copy the plesk's suexec over the apache one:

cp /usr/sbin/suexec /usr/sbin/suexec.mybackup
cp /usr/sbin/psa-suexec /usr/sbin/suexec

- restart httpd

Of course, you don't need to backup the existing suexec if you don't want to... You won't need it again icon_smile.gif

In any case, httpd should work even with the wrong suexec, only cgi scripts should stop working... Odd. You didn't upgrade the 1.3.x to 2.0.x, did you?





I tried doing what you told me, got the same problem, in fact it told me that the suexec is the same as psa-suexec. This is all really strange.
Ales
Well, it seems that the suexec binary is ok... Btw, which OS are you running and which version of PSA?

What happened between "they fixed that. Then, I can't even start httpd"? I suspect a missing link here, the size of a bigfoot. icon_biggrin.gif

Unless you tell us what happened, in the exact order, we can't even begin to diagnose the problem.
etantus
ok here's the whole situation:


I had my drive reformatted. Plesk appeared to be install correctly, but then I noticed that httpd wasn't starting either through plesk or manually. That was because of the hostname problem. Then I changed my hostname, which allowed me to start httpd, but then it was just showing the "Default Apache Install" instead of the "Generated by plesk server admin". I then contacted rackshack support and they "fixed" it. It worked fine until I added more domains, then I came home and httpd wasn't started, and I couldn't start it. I then contacted rackshack and they told me it was my problem.


Thats how I got here and why I am having so much trouble. Thanks!


-Jerome
Ales
You've mentioned you've "autoupdated" your rpms. What do you mean, did you use up2date utility, or...? What version of RedHat and what version of Plesk are you running?
etantus
Im running Redhat 9 with Plesk 6.0.1 (using the autoinstaller program). Apache is 2.0.x I can't remember.


-Jerome
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.