
20th August 2007, 05:23
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
how to change the default web directory "/var/www"
hi, i have been running ispconfig for about a month...
but i got a problema now, when i was installing ispconfig, i was thinking that the user's web directories will be /home/, so i give /home the biggest partition!.... so i have to change the default web directory /var/www now...
how can i change it??
i was thinking that,
Code:
move all the content of /var/www to a temp directory
creat a directory named www at /home
move all the content of the temp directory to /home/www
remove the /var/www directoy and then
ln -s /var/www /home/www/
is it OK? will it cause any problem?? thanks.
Last edited by junmin; 20th August 2007 at 05:27.
|

20th August 2007, 10:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
I recommend the following procedure.
1) the httpd, postfix, pop3,imap and ispconfig service.
2) Move /var/www to /home/www
3) Symlink /var/www to /home/www
4) start ISPConfig:
/etc/init.d/ispconfig_server start
and change the document root under management > server > settings on the web tab.
then execute the following sql statement in the database to update all websites:
update isp_isp_web set status = 'u' where status = '';
Now wait a few minutes until ISPConfig has changed the website config for all sites and start http, pop3, imap and mail daemon again.
|

10th November 2007, 22:15
|
|
ISPConfig Developer
|
|
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 5 Times in 5 Posts
|
|
Hmmm... I was trying to change the document root in the web interface for a similar reason, but it did not use the new one I specified, and displayed and used the old one again.
So I changed the document root in the database directly too.
|

11th November 2007, 15:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
As you installed your ISPConfig version, did you import the SQL dump manually?
|

11th November 2007, 22:01
|
|
ISPConfig Developer
|
|
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 5 Times in 5 Posts
|
|
Quote:
|
Originally Posted by till
As you installed your ISPConfig version, did you import the SQL dump manually?
|
Oh I really don't remember because I'm using it for a long time now.
Anyway, I was just thinking people might not often change their root directory, so maybe a bug has appeared in that piece of code at some time, and went unnoticed so far.
|

12th November 2007, 08:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
The problem that you described is normally caused by inserting the sql dump manually during installation as ISPConfig will not be able to save or read any config settings from the management > server settings part.
|

12th November 2007, 16:05
|
|
ISPConfig Developer
|
|
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 5 Times in 5 Posts
|
|
So what exactly is the difference when I insert it manually?
Doesn't the ISPconfig installation routine just do a "mysql ... < dump.sql" or alike?
|

12th November 2007, 16:10
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Quote:
|
Originally Posted by jmroth
So what exactly is the difference when I insert it manually?
|
Your installation is incomplete and all server variables are set to defaults and not to the correct values for your system.
Quote:
Doesn't the ISPconfig installation routine just do a "mysql ... < dump.sql" or alike?
|
No, the ISPConfig installer creates records dynamically based on your server configuration. These records are not in the SQL dump.
|

12th November 2007, 16:15
|
|
ISPConfig Developer
|
|
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 5 Times in 5 Posts
|
|
How can I actually find out if I imported the SQL dump or let the installer create the stuff?
What should be missing?
|

12th November 2007, 16:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Check if you have a record in the table isp_isp_server with doc_id = 1.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 22:24.
|
Recent comments
22 hours 31 min ago
22 hours 37 min ago
1 day 3 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 23 hours ago
2 days 3 hours ago
2 days 4 hours ago