Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd December 2012, 11:40
bkilinc bkilinc is offline
Junior Member
 
Join Date: Mar 2012
Posts: 29
Thanks: 8
Thanked 2 Times in 2 Posts
Default creating directories outside of web folder

while everything is good my main problem with ISPConfig is, I cannot create directories on outside of webfolder. I need to place data files outside of web folder, which should not be accessed on web.

I can understand that this is a security issue. But there must an option for reseller to define website directory structure. In current implemantation, there is no meaning to show outside of web folder to client, he/she can do nothing on it.

Is it possible to write a plugin for this, which hooks to events ?
Reply With Quote
Sponsored Links
  #2  
Old 3rd December 2012, 14:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

You can create folders outside of the web folder in ispconfig. The only thing you have to do is to add the path that you want to use in the open_basedir setting of the website.

If you want to allow this by default for all new websites, just add the oath in the openbaesdir default setting under System > server config.

Starting with ispconfig 3.0.5, there is even a default folder for such data preconfigured, it is named /var/www/domain.tld/private
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd December 2012, 15:36
bkilinc bkilinc is offline
Junior Member
 
Join Date: Mar 2012
Posts: 29
Thanks: 8
Thanked 2 Times in 2 Posts
Default not working, I guess

I have added config directory and my open_basedir is as follows

[website_path]/web:[website_path]/tmp:[website_path]/config:/var/www/[website_domain]/web:/srv/www/[website_domain]/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin

it did not create config directory. Also user cannot create the directory with ftp or ssh as parent directory belongs to root.
Reply With Quote
  #4  
Old 3rd December 2012, 15:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
not working, I guess
Works fine here in all my sites.

Quote:
[website_path]/web:[website_path]/tmp:[website_path]/config:/var/www/[website_domain]/web:/srv/www/[website_domain]/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
Thats ok for new sites, for existing sites you have to edit it on the options tab of the site.

Quote:
Also user cannot create the directory with ftp or ssh as parent directory belongs to root.
ISPConfig 3.0.4.6: Then you use the wrong secutoty mode. Change the secuity mode to High under System > Server config.
ISPConfig 3.0.5: A private directory exists by default, no need to create that direcrory manually.
__________________
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:
bkilinc (3rd December 2012)
  #5  
Old 3rd December 2012, 15:55
bkilinc bkilinc is offline
Junior Member
 
Join Date: Mar 2012
Posts: 29
Thanks: 8
Thanked 2 Times in 2 Posts
 
Default thanks

thanks for the reply.

Right now I cannot test it. because some functions does not work in high security mode. So for the current security mode that I selected intentionaly, I still have problems. But I will try to move on to high security mode, but I cannot do it immediately.
Reply With Quote
Reply

Bookmarks

Tags
website directory

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
Error show pages in server qb7 General 1 31st October 2011 09:09
Wrong permissions on web folder awd.pt Installation/Configuration 15 20th September 2011 14:37
bash script for finding and replacement in any web page code (.htm file) vl72 Programming/Scripts 0 19th February 2011 15:12
Creating Custom Web Directories pcburner HOWTO-Related Questions 1 2nd April 2008 13:22
create eMail Folder right after creating an user? LeoLinux Installation/Configuration 9 15th April 2007 15:57


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


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