Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 15th August 2012, 19:18
Croydon Croydon is offline
ISPConfig Developer
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts
Default Problem when deleting websites

There seems to be a problem in current svn version (don't know about earlier versions) when deleting websites.

rm: Entfernen von „/var/www/clients/client1/web2/web“ nicht möglich: Keine Berechtigung

and same message with all the folders in the web2 dir.

ls -ld /var/www/clients/client1/web2/web
drwx--x--- 2 web2 client1 4096 15. Aug 17:56 /var/www/clients/client1/web2/web

It seems even root cannot delete this, I tried a rm -r and rm -rf but same error.

After a few tests I realized that the web1 and web2 directories have the immutable bit set (chattr +i web2), so it can online be deleted if I do a chattr -i web2 first.
It seems that this step is missing on deleting a web (maybe on renaming or moving, too), so a web does not get deleted, including its vhost file.

This is no problem as long as no one tries to recreate a web with the same domain later on. If you try this you mess up your installation as the new web is not created correctly (logfile path missing, wrong vhost file).
Marius Cramer

pixcept KG
Reply With Quote
Sponsored Links
Old 15th August 2012, 21:38
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

Yes, the current version has a feature called "web folder protection" which can be set under system > server config. Seems as if I missed to unprotect the folders before they get deleted. I added this to the bugtracker.
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
problem with remote fonction versatile Developers' Forum 1 15th March 2012 09:52
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 11:49
Problem with Websites Creations in ISP Config Ex-IT59 Installation/Configuration 5 2nd January 2011 16:39
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
problem with deleting hadisaadeh Installation/Configuration 1 22nd December 2005 10:48

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

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