Welcome, Guest
Please Login or Register.
Lost Password?
suexec doc_root incorrect - best way to reinstall (1 viewing)
Post Reply

TOPIC: suexec doc_root incorrect - best way to reinstall

#15173
pixel_paul (User)
Posts: 36
graphgraph
suexec doc_root incorrect - best way to reinstall 2008/07/28 08:12  
Hi,

I'm looking at this: /usr/sbin/suexec -V

-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"

and doc_root is incorrect.

How can I go about safely reinstalling apache to get that set to /home?

I have CentOS 5.2 and VM pro.

Cheers,

Paul
  The administrator has disabled public write access.
#15176
andreychek (Moderator)
Posts: 636
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/28 11:16  
Howdy,

Do you recall how you installed Virtualmin, was it with the install.sh script, or did you use the RPM's or perhaps a tarball?

I have a suspicion that you may have the CentOS version of Apache (or suexec) rather than the Virtualmin one. You can tell by running this:

rpm -qf /usr/sbin/suexec

What is the output of that command?
-Eric
  The administrator has disabled public write access.
#15188
pixel_paul (User)
Posts: 36
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/28 23:07  
Hi Eric,

Yes, I am using the CentOS version of Apache. The reason for this was that I had set the server up already before I installed Virtualmin.

Is there a way of recompiling with the Virtualmin version of Apache?

Cheers,

Paul
  The administrator has disabled public write access.
#15189
andreychek (Moderator)
Posts: 636
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/29 04:20  
Hey Paul,

One more thing (it'll help decide the best way to resolve things) -- did you install via the install.sh, or did you use the RPM/tarball in order to install Virtualmin?

Thanks!
-Eric
  The administrator has disabled public write access.
#15190
pixel_paul (User)
Posts: 36
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/29 04:40  
I upgraded from Virtualmin GPL...unfortunately I can't remember how I actually did the upgrade to Virtualmin Pro.

I can only imagine that it was done via the install.sh script....

Cheers,
Paul
  The administrator has disabled public write access.
#15257
andreychek (Moderator)
Posts: 636
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/30 17:27  
Hi Paul,

Okay, so it definitely looks as if you need the Virtualmin version of Apache. They have Suexec pointing at /home rather than /var/www.

Joe tells me that the Virtualmin and CentOS Apache packages are identical, with the exception of where suexec_docroot points.

So how would you go about changing your Apache version to use the Virtualmin repository?

There's a few different ways to go about it, but the ultimate goal would be to install the following packages from here:

Repository:
http://YOUR_LICENCE_KEY:YOUR_SERIAL_NUM@software.virtualmin.com/centos/5.2/i386/

Packages:

httpd, httpd-manual, httpd-devel, mod_ssl, and mod_fcgid packages

One way to do it would be to manually download them all, then use RPM to install them in place of your current versions.

I'd still make a solid backup of my config files in /etc and such (or heck, the entire system) before making any changes :-)
-Eric
  The administrator has disabled public write access.
#15259
pixel_paul (User)
Posts: 36
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/30 23:14  
Hi Eric,

Thank you for all this assistance on this. I will look at doing this early next week, so will post back any problems/success stories :)

Cheers,

Paul
  The administrator has disabled public write access.
#15265
andreychek (Moderator)
Posts: 636
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/31 04:23  
Sure thing... if it gives you a hard time trying to install those, just yell! RPM may balk since the Virtualmin Apache version is a tad older, you might have to install them with the --oldpackage option or so.
-Eric
  The administrator has disabled public write access.
#15278
Joe (Admin)
Posts: 4117
graph
Re:suexec doc_root incorrect - best way to reinstall 2008/07/31 11:28  
--oldpackage shouldn't be necessary. Epoch, FTW!

yum can also install them, if the virtualmin repo is available.
  The administrator has disabled public write access.
#17018
pixel_paul (User)
Posts: 36
graphgraph
Re:suexec doc_root incorrect - best way to reinstall 2008/10/13 01:24  
Well, as usual certain things took longer than expected and am now back to trying to change this.

My question is this - if i update the httpd package etc to the virtualmin version, will my virtual servers list be overwritten? I have just tested this using a virtualmin gpl version and it seems that I may lose my virtual servers...which i dont want to do!

Cheers,

Paul
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.