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 24th January 2012, 20:20
olimortimer olimortimer is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 57
Thanks: 12
Thanked 2 Times in 1 Post
Default Accessing files outside of /web/

Apologies if this is a simple thing to do, but I've been searching around and can't find and answer (or in the Manual).

I'm developing an application in Codeigniter, and want to be able to share the applications and system folder amongst different domains.

To do this, firstly I want to put the directories up one level to the /web directory, but it doesn't seem to let me access it through PHP then.

Is there a permission change I need to make somewhere, and how do this on 1 domain and multi domains?

Many thanks!
Reply With Quote
Sponsored Links
  #2  
Old 25th January 2012, 11:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

You can not access files outside of the web directory as thats outside of the apache vhost. But what you can do is e.g. using symlinks inside the web directory or apache aliases to point to directories outside of the web dir. You should be aware that this can make your system insecure and its not recommended. Beside that, if you share folders between websites you will have to use mod_php instead of the recommended php-fcgi with suexec. mod_php is not as secure as well.
__________________
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:
olimortimer (25th January 2012)
  #3  
Old 25th January 2012, 13:00
olimortimer olimortimer is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 57
Thanks: 12
Thanked 2 Times in 1 Post
Default

Thanks Till.

Bit confused though, as isn't it supposed to be more secure by having config files etc outside of the browsable web directory?
Reply With Quote
  #4  
Old 25th January 2012, 14:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

Quote:
isn't it supposed to be more secure by having config files etc outside of the browsable web directory?
Thats something different then what you asked above, your origial question was about "share the applications and system folder amongst different domains". You can have config files outside of the web directory by modifying the open_basedir path so that php can open / include them. But sharing files and folders between webs or making php scripts outside of the web dir to be callable by a url is insecure.
__________________
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:
olimortimer (25th January 2012)
  #5  
Old 25th January 2012, 16:08
olimortimer olimortimer is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 57
Thanks: 12
Thanked 2 Times in 1 Post
Default

Sorry, think there's a bit of confusion - I'm not wanting to have scripts outside the web dir accessible from a URL, just accessible by scripts inside the web directory.

For example, each client has an index page in their web directory, which loads the correct config file (and app / system files) from outside their web directory. This would allow me to update one set of app / system files in the event of bug fixes etc;

/cms/application
--/client1-config.php
--/client2-config.php
/cms/system
-- /systemfiles.php

/client1/web
--/index.php
/client2/web
--/index.php

Where would I update the open_basedir path for each client? I'm guessing in their own php.ini file? Where would I find the client specific php.ini?
Reply With Quote
  #6  
Old 25th January 2012, 16:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

Quote:
Where would I update the open_basedir path for each client?
options tab of website settings.

Quote:
Where would I find the client specific php.ini?
options tab of website settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 25th January 2012, 19:55
olimortimer olimortimer is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 57
Thanks: 12
Thanked 2 Times in 1 Post
 
Default

Quote:
Originally Posted by till View Post
options tab of website settings.



options tab of website settings.
Brilliant, thank you. Sorry for the "noob" questions.
Reply With Quote
Reply

Bookmarks

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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Debian 5.0 'hangs' GHz Installation/Configuration 5 1st October 2009 12:57
Apache wont serve my files anymore:( wotIsCmd Server Operation 2 17th July 2009 20:24
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 18:53


All times are GMT +2. The time now is 00:22.


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