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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th March 2013, 03:09
corbis corbis is offline
Junior Member
 
Join Date: Mar 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Need to change ISPconfig base directory for document root of all users during install

Hello all,

I appologize if this has already been covered in other threads, but I googled and searched the forums to no avail, so here goes!

I am about to install ISPConfig 3, went through the howtoforge tutorial, and am at the point where i am running php -q install.php

What i want to know is, how do i specify where the document root will be for all users?

I know it defaults to /var/www/..... but i do not want it to go there, instead i want it in /home/www/....

The reason is i have already carved up /home as a separate file system outside of the primary root volume and /var is inside the root volume (/var/log is also a tertiary file system on a separate LV itself).

Can someone enlighten me here? Should i just use the expert install?

Thanks in advance!

--Corbis
Reply With Quote
Sponsored Links
  #2  
Old 13th March 2013, 08:56
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,407
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Quote:
I know it defaults to /var/www/..... but i do not want it to go there, instead i want it in /home/www/....
Thats a bad idea to change this path as it will cause suexec to stop working, so you will not be able to fully use your websites afterwards. The suxec path is compiled into the apache binaries of the linux distribution, so it makes no sense to change that in ispconfiga s it woll break your system.

Quote:
The reason is i have already carved up /home as a separate file system outside of the primary root volume and /var is inside the root volume (/var/log is also a tertiary file system on a separate LV itself).
The solution for this is a bit different and not a change of the path. Instead you mount the path /home/www as /var/www with mount bind in /etc/fstab.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
razor7 (17th July 2014)
  #3  
Old 14th March 2013, 16:45
corbis corbis is offline
Junior Member
 
Join Date: Mar 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply Till.

How would this be affected if I shutdown into single user mode, and symlinked /var/www to /home/www?
Reply With Quote
  #4  
Old 17th July 2014, 18:37
razor7 razor7 is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 6
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
Thats a bad idea to change this path as it will cause suexec to stop working, so you will not be able to fully use your websites afterwards. The suxec path is compiled into the apache binaries of the linux distribution, so it makes no sense to change that in ispconfiga s it woll break your system.



The solution for this is a bit different and not a change of the path. Instead you mount the path /home/www as /var/www with mount bind in /etc/fstab.
Thanks a lot! That really solved me a lot of issues and configurations.

I have all my Ubuntu Server 14.04 data in a RAID1 array, so simply associating the paths in fstab it worked just right. Even I hadn't to configute my apps (redmine, mysql data folder, etc) because I mounted the data folders pointing to the array volume path! great solution and very efficient!
Reply With Quote
Reply

Bookmarks

Tags
change document root, install, ispconfig

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
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 00:15
Flash Player (version 10.0r22) did not load bobwdn HOWTO-Related Questions 10 11th September 2011 11:08
ISPConfig 2 Upgrade pineapple General 53 23rd June 2010 16:25
Update failed, lost client information (not the files) joosimol Installation/Configuration 10 25th January 2010 15:27
/boot is 100% full Sohail Khawaja HOWTO-Related Questions 6 6th January 2010 20:32


All times are GMT +2. The time now is 11:42.


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