Old 26th February 2008, 03:12
VinceDee VinceDee is offline
Junior Member
Join Date: Feb 2006
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
Question Possible to change website ID?

Is it possible to change the web[WEBID] of a site from within ISPConfig without having to resort to manually editing conf files?

ie, web15_example.com could be changed to web6_example.com

Also, is it possible to renumber a newer WEBID to a previously used number? I deleted several of the first websites I made, now I'd like to change the WEBID numbers of some newer sites to those earlier numbers. (and if you must know why, it's because I have an older Drupal website from an older ispconfig server that has many references to /var/www/web6 and I'd like to be able to just upload the site back into a web6 directory, rather than find and change all those pointers)


Reply With Quote
Sponsored Links
Old 26th February 2008, 07:44
VinceDee VinceDee is offline
Junior Member
Join Date: Feb 2006
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts

I went ahead and took the plunge anyway and tried to do it myself, manually. What I did:

Rename the /var/www/web15 directory to /var/www/web6.

rm the www.example.com symlink in the /var/www directory (it's broken now that the web15 directory no longer exists). Recreate the same symlink in the /var/www directory using ln -s to point to the new /var/www/web6 directory.

Rename the /var/www/web6/user/web15_www.example.com directory to /var/www/web6/user/web6_www.example.com

Renaming the directory also broke the /var/www/web15/Maildir symlink. Delete the Maildir symlink and recreate it using ln -s in the /var/www/web6 directory, pointing it to /var/www/web6/user/web15_www.example.com/

Edit /etc/apache2/vhosts/Vhosts_ispconfig.conf file and change all references for the old /var/www/web15 directory to /var/www/web6 in the virtual host config for the specific virtual host I wanted to change (www.example.com).

Restart apache2: /etc/init.d/apache2 restart

The website appears to be working the same as it was before all the renaming (though it was mostly broken already because it needs php4 and not php5 to run properly, but that's another issue).

Being a relative newb, I have very little idea of whether anything I did was the right thing, but it seems to have worked. The site still shows up in ISPConfig, too. CAUTION: DON'T ATTEMPT TO DO THIS UNLESS SOMEONE WHO KNOWS BETTER CHIMES IN AND SAYS THAT WHAT I DID WAS OKAY. No telling what I screwed up on my test server messing around with it like this.

Reply With Quote
Old 26th February 2008, 08:27
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

What you did is definately not recommended and you will most liekly get problems in future!

Did you change all references in the ISPConfig database too? Did you change all ownerships? Did you change the mail configuration?
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote


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
cannot receive emails after made website online llamy General 20 27th December 2007 02:14
change website name aqua General 5 16th May 2007 17:08
change website client kaspars Installation/Configuration 1 13th March 2007 17:55
Change website in /var/www from web9 to web29 rmenzies Installation/Configuration 3 7th February 2007 19:25
Domain Change in website Jose Gosalbez Installation/Configuration 15 19th July 2006 13:38

All times are GMT +2. The time now is 09:31.

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