LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-11-2008, 08:03 PM   #1
whc
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Rep: Reputation: 0
Question Virtualmin errors on SUEXEC


Hello Everyone:

I am having a heck of a time trying to find a resolve for this. And I have resorted to asking for help. I know you all here are more knowledgeable than myself on this subject. So I ask you to look at this error below and give me any input on how to resolve it.

I have a Fedora 10 server running fully current MySQL, PHP, PERL, etc. I have installed the Webmin control panel with no issues. But when I attempt to configure VirtualMin GPL i get this error below. I know it has something to do with APACHE. But I am unable to get support from Virtualmin. So I need to ask you for assistance.

The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

The base directory should be /home but I have even tried to recompile httpd but that failed also.

I appericate your knowledge and hope that you can help.

Richard
 
Old 12-12-2008, 03:40 AM   #2
Chalkin
LQ Newbie
 
Registered: Dec 2008
Distribution: OpenSuse 10.3
Posts: 2

Rep: Reputation: 0
I'm having exactly the same problem.

I have got a Suse 10.3 virtual server from Server4you.de They installed apache and everything else. Yesterday I installed Webmin which worked fine. Afterwards i installed Virtualmin GPL.
When i check the configuration which you have to, i get following error message:
The Suexec command on your system is configured to only run scripts under /srv/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

I googled a little and found that i need to recompile Suexec with base dir /home
well, i did like they wrote to (donīt know the line for it anymore)
but it did no change, i still get the same error!

now i would need some help too
 
Old 12-12-2008, 04:42 AM   #3
Chalkin
LQ Newbie
 
Registered: Dec 2008
Distribution: OpenSuse 10.3
Posts: 2

Rep: Reputation: 0
this time i recompiled not only suexec but also apache.
i did it like this little how to tells to do so:

http://docu.sbsbavaria.de/73.html

here you go with a little translation of the stuff you need to do:
Apache Download Page
http://httpd.apache.org/download.cgi...e.easy-webs.de

download httpd-2.2.10.tar.gz via
wget URL TO Downloadfile
tar xfz [filename]

Now do the rest:

IMPORTANT: When you type in --with-suexec-docroot=/home \ watch out to use /home


./configure --with-suexec-caller=wwwrun \
--with-suexec-docroot=/home \
--with-suexec-gidmin=96 \
--with-suexec-uidmin=96 \
--with-suexec-logfile=/var/log/apache2/suexec.log
make all
cd support
make suexec
cp suexec /usr/sbin/suexec2
cd /usr/sbin/
chown root:root suexec2
chmod u+s suexec2
rcapache2 restart

/var/log/apache2/suexec.log beobachten.

The Compile Information of suexec you get with:

suexec[2] -V


Just do all of that, and you fixed this errormessage
 
Old 12-12-2008, 07:38 PM   #4
whc
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
THANK YOU SOOOOOO MUCH! You have helped me where others were unable. Have a Happy Holiday Season!
 
Old 12-12-2008, 09:04 PM   #5
SwellJoe
LQ Newbie
 
Registered: Jun 2007
Posts: 14

Rep: Reputation: 0
Quote:
But I am unable to get support from Virtualmin.
I'm wondering why you feel you're unable to get support from Virtualmin? Did you follow the advice found at our support page about getting help? ( http://www.virtualmin.com/support.html )

A search of our site definitely reveals several threads about this exact error and topic in our forums, and if the answers found that way were insufficient, I'm sure asking a good question asking for further clarification would result in some sort of response.

Lest anyone be misled, Virtualmin happily supports Virtualmin GPL in our forums. Nothing wrong with asking here, of course...but we're happy to help over on the Virtualmin forums, as well.
 
Old 02-09-2009, 10:07 AM   #6
johnny59
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Thumbs up VirtualMin and Fedora Core 10 (FC10)

This is a modification for Fedora Core 10.

This time I recompiled not only suexec but also apache.
I did it like this little how to tells to do so:

Apache Download Page
http://httpd.apache.org/download.cgi

download httpd-2.2.11.tar.gz via
apache URL (http://httpd.apache.org)
TO Downloadfile
wget http://apache.mirror.rafal.ca/httpd/httpd-2.2.11.tar.gz
tar xfz httpd-2.2.11.tar.gz

Now do the rest:

IMPORTANT: When you type in --with-suexec-docroot=/home \ watch out to use /home


./configure --with-suexec-caller=apache \
--with-suexec-docroot=/home \
--with-suexec-gidmin=100 \
--with-suexec-uidmin=500 \
--with-suexec-logfile=/var/log/httpd/suexec.log

make all
cd support
make suexec
cp suexec /usr/sbin/suexec2
cd /usr/sbin/
chown root:apache suexec2
chmod u+s suexec2
cp suexec suexec1
cp suexec2 suexec

/var/log/apache2/suexec.log

The Compile Information of suexec you get with:
suexec1 -V
suexec2 -V

Just do all of that, and you fixed this errormessage

restart apache
 
Old 03-18-2009, 06:51 PM   #7
Vito Botta
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Chalkin,

I just registered to say THANKS
I was getting a slightly different error but your solution did work for me too. Thanks!
 
Old 07-21-2009, 11:33 PM   #8
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Rep: Reputation: 15
Quote:
Originally Posted by SwellJoe View Post
I'm wondering why you feel you're unable to get support from Virtualmin? Did you follow the advice found at our support page about getting help? ( http://www.virtualmin.com/support.html )

A search of our site definitely reveals several threads about this exact error and topic in our forums, and if the answers found that way were insufficient, I'm sure asking a good question asking for further clarification would result in some sort of response.

Lest anyone be misled, Virtualmin happily supports Virtualmin GPL in our forums. Nothing wrong with asking here, of course...but we're happy to help over on the Virtualmin forums, as well.
I disagree, I signed up for thosee forums and couldn't post anything. I also did a search and failed to find anything as enlightening as this post.
 
Old 07-23-2009, 01:21 AM   #9
SwellJoe
LQ Newbie
 
Registered: Jun 2007
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by section31 View Post
I disagree, I signed up for thosee forums and couldn't post anything. I also did a search and failed to find anything as enlightening as this post.
That doesn't make any sense. We don't moderate the forums.

Did you validate your email address after signing up? You won't have an active account until your email address has been confirmed. Just like pretty much all forums.
 
Old 07-23-2009, 10:43 PM   #10
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Rep: Reputation: 15
Quote:
Originally Posted by SwellJoe View Post
That doesn't make any sense. We don't moderate the forums.

Did you validate your email address after signing up? You won't have an active account until your email address has been confirmed. Just like pretty much all forums.

I guess you're right. I must have not activated it or something. I'm in now. hah sorry
 
Old 10-09-2009, 03:17 AM   #11
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Rep: Reputation: 30
Quote:
Originally Posted by Chalkin View Post
this time i recompiled not only suexec but also apache.
i did it like this little how to tells to do so:

http://docu.sbsbavaria.de/73.html

here you go with a little translation of the stuff you need to do:
Apache Download Page
http://httpd.apache.org/download.cgi...e.easy-webs.de

download httpd-2.2.10.tar.gz via
wget URL TO Downloadfile
tar xfz [filename]

Now do the rest:

IMPORTANT: When you type in --with-suexec-docroot=/home \ watch out to use /home


./configure --with-suexec-caller=wwwrun \
--with-suexec-docroot=/home \
--with-suexec-gidmin=96 \
--with-suexec-uidmin=96 \
--with-suexec-logfile=/var/log/apache2/suexec.log
make all
cd support
make suexec
cp suexec /usr/sbin/suexec2
cd /usr/sbin/
chown root:root suexec2
chmod u+s suexec2
rcapache2 restart

/var/log/apache2/suexec.log beobachten.

The Compile Information of suexec you get with:

suexec[2] -V


Just do all of that, and you fixed this errormessage
I have the same problem too. I follow your instruction but when I reach "rcapache2 restart", error message appear "bash: rcapache2: command not found". I compile httpd in CentOS 5.3.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailmen Problems in Virtualmin with CentOS 4.6 pbeane Linux - Server 2 04-01-2008 03:07 PM
PHP Not Working - CentOS 4.6 w/ Virtualmin pbeane Linux - Server 1 02-20-2008 09:59 PM
Virtualmin Configuration Equin Linux - Software 1 08-18-2005 06:01 PM
VirtualMin and POP3 w/PostFix superhack Linux - Networking 0 04-19-2004 10:06 PM
virtualmin - perl error? lok1 Linux - Software 1 11-25-2003 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration