Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th December 2007, 11:40
trymbill trymbill is offline
Junior Member
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing Document Root in ISPconfig does not work 100%

Hi everyone!

I have a problem with my ISPconfig. I'm using it for a development server mainly for testing so I'm not afraid of messing around with it

I have a Ubuntu 7.10 running and I set it up with the "Perfect Ubuntu 7.10 setup" and installed ISPconfig straight after. ISPconfig works great ... I've got everything running smoothly but my problem is that the hard drive I'm using doesn't have a lot of space left on it. I do though have another hard drive that has around 200 GB's left so I would like to use that hard drive for my Document Root. So I just want to move the /var/www folder to /media/sda/var/www and I already did so, worked fine. After that I changed the "Document Root" in ISPconfig under Management -> Settings -> Web and I can see both in the Vhosts_ispconfig.conf files that ISPconfig changed the Document Root there.

My problem is though, that Apache seems to skip this change and is still trying to retrieve the files from /var/www ... I've tried restarting Apache, force-reloading but it doesn't seem to work. The HTTPD.conf file in /etc/apache2 is empty so I can't declare the DocumentRoot there ...

How can I make this work? Please, somebody help me!
Reply With Quote
Sponsored Links
  #2  
Old 18th December 2007, 17:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

There are two solutions:

a) Make a symlink from /var/www to /media/sda/var/www

b) Execute the following SQL statements in the ISPConfig database:

update isp_isp_user set status = 'u' where status = '';
update isp_isp_web set status = 'u' where status = '';

and then change a setting of one of your websites in the ispconfig interface and click on save.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 19th December 2007, 17:48
trymbill trymbill is offline
Junior Member
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your reply till ...

... I tried the second option but when I tried to change the "Document Root" under Management -> Settings -> Web ... ISPconfig changes it to "/home/admispconfig/ispconfig/web/multidoc/edit" no matter how often I try

Do you know why it's doing that and how I can fix it? :- /
Reply With Quote
  #4  
Old 19th December 2007, 17:52
trymbill trymbill is offline
Junior Member
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I even tried to make a Symlink from /var/www to /media/sda/var/www but then ISPconfig just changes the Document Root to "/home/www" ... I don't understand why it's doing that? :S
Reply With Quote
  #5  
Old 19th December 2007, 17:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
 
Default

Quote:
Originally Posted by trymbill
I even tried to make a Symlink from /var/www to /media/sda/var/www but then ISPconfig just changes the Document Root to "/home/www" ... I don't understand why it's doing that? :S
Then your new document root has the wrong permissions. Please make sure that the new document root has the exact same owner and permissions then the old one.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ispconfig on port 80 instead of 81 Check Installation/Configuration 11 13th July 2007 13:14
shared IP with third level domain stefan Installation/Configuration 15 13th June 2007 22:55
index.html make eror planet_fox Installation/Configuration 46 28th March 2007 09:10
cacti on suse 10.1 (problems) IKShadow Installation/Configuration 8 28th November 2006 15:09
Apache - Virtual hosts - ISPConfig Hans Server Operation 8 23rd April 2006 16:29


All times are GMT +2. The time now is 05:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.