LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2005, 03:16 PM   #1
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Rep: Reputation: 15
whats the best way of doing this?


I have Suse 9.3 pro whos's doc root is /srv/www/htdocs

I want to run virtualmin, who wants the doc root to be /home What do I do to change this, whats the easiest way of going about this? The main problem is php a lot of my sites as well as clients and future clients will run with php, and it doesnt work back in the /home directories.
 
Old 12-20-2005, 09:08 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Just an idea from:
http://www.swelltech.com/support/vir...ex.html#apache

Did you try recompiling with --with-suexec-docroot=/home ?
 
Old 12-20-2005, 11:18 PM   #3
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Im not sure how to recompile it? I read that, thats where I got the above post from, could someone explain or give me the commands to recompile it? or point me in the right direction.
 
Old 12-21-2005, 12:25 AM   #4
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Original Poster
Rep: Reputation: 15
I've got a directory on my HD named /usr/src/packages/SOURCES that has a bunch of apache files in it, so I dont know if that helps or not.
 
Old 12-21-2005, 11:20 AM   #5
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Warning, this is a general procedure NOT the exact methods, but it should help you out.

1. Install the SRC.RPM.
# rpm -ivh filename.src.rpm

2. Locate the .SPEC file it installed. Probably somewhere in /usr/src/packages/SPECS (I don't know exactly, I have not done this in SuSE, just look through /usr/src/packages/). It will have the same basic name as the SRC.RPM file.

3. Edit the .SPEC file where it says
--with-suexec-docroot=/home \
Change to:
--with-suexec-docroot=/srv/www/htdocs \

4. Recompile the .SPEC file with 'rpmbuild'
# rpmbuild -bb /usr/src/packages/SPECS/filename.SPEC

5. IF it builds it should be located somewhere in /usr/src/packages/RPMS (I don't know exactly, I have not done this in SuSE, just look through /usr/src/packages/).

5.a. If it does not build then you need to determine what is wrong and install any additional packages or software and go back to Step 4.

The steps should be very similar to the above, but probably not exactly. Most of my experience is from Redhat/Fedora. Suse and Fedora are very similar in their RPM building methods, but it is recommended to make backup of anything you modify and verify the commands you run BEFORE you run them.
 
  


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
Whats Best For Me? andy_play Linux - Newbie 4 11-09-2005 06:26 PM
whats up with this?? A.D.D. Linux - Newbie 4 10-08-2004 01:47 AM
Whats the name of my PC AndreL Linux - Newbie 3 03-23-2004 06:36 PM
whats my ip? Longinus Linux - Networking 2 02-14-2004 02:05 PM
whats going on? Mr Marmmalade Linux - Newbie 3 02-15-2003 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 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