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 17th December 2010, 04:10
qiubosu qiubosu is offline
Senior Member
 
Join Date: Jan 2010
Posts: 140
Thanks: 2
Thanked 0 Times in 0 Posts
Default not configure the shared drupal codebase as an actual website, but in /var/www

in ISPConfig 3 control panel, Website basedir is /var/www. setup site-1.com (its document root is /var/www/site-1.com/web) and site-2.com (its document root is /var/www/site-2.com/web) sites. install the shared drupal codebase in /var/www and the drupal site installation is fine, but after installation, when browsing to http://localhost, there is a prompt pop up with the below message (browser is firefox):

You have chosen to open
which is a: ~ file
from http://localhost

What should Firefox do with this fine?
Open with (radio button)
Save File (radio button)
Do this automatically for files like this from now on. (check box)

why that? how to fix it?

Before I tried to install the shared drupal code base in the domain directory, e.g. /var/www/site-1.com/web, after installation, the browsing to http://www.site-1.com is fine.

what is the difference between the above two installation? apache conf files, vhost file, setup in ISPConfig 3 control panel or ...... ?
Reply With Quote
Sponsored Links
  #2  
Old 17th December 2010, 09:26
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

The directory /var/www may not contain any website code. Access and processing of code in /var/www is disabled as it would be a huge security risk. If access to /var/www would be enabled then it uld be easy to access the private data of all websites on your server, so do not try to put any code there or to remove the access restrictions from that directory in the apache configuration. All websites have to be in the subdirectories like /var/www/site-2.com/web/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th December 2010, 10:22
qiubosu qiubosu is offline
Senior Member
 
Join Date: Jan 2010
Posts: 140
Thanks: 2
Thanked 0 Times in 0 Posts
Default

thanks till,

in ISPConfig 3 contral panel, how it handle the security issue to prevent access and processing of code in /var/www. how to enable to access /var/www? where to find the access restrictions for /var/www in the apache configuration.
Reply With Quote
  #4  
Old 17th December 2010, 10:29
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

Its all in the different files in /etc/apache2/sites-available/, especially the ispconfig.conf file. I can only warn you to do any changes there, it is a security risk if the server is connected to the internet in any way and you allow access to /var/www directly.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 17th December 2010, 10:36
qiubosu qiubosu is offline
Senior Member
 
Join Date: Jan 2010
Posts: 140
Thanks: 2
Thanked 0 Times in 0 Posts
Default

hi till, if install the drupal shared codebase under /var/www/site-1.com/web, can update the website basedir in ispconfig 3 control panel from /var/www to /var/www/site-1.com/web?
Reply With Quote
  #6  
Old 17th December 2010, 10:38
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:
Originally Posted by qiubosu View Post
hi till, if install the drupal shared codebase under /var/www/site-1.com/web, can update the website basedir in ispconfig 3 control panel from /var/www to /var/www/site-1.com/web?
This makes no sense.

If you want to install a shared drupal, then install it into a normal website and when you install the next website, then add the directory of of the first website to the open basedir of the second one to be able to access the files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 17th December 2010, 10:46
qiubosu qiubosu is offline
Senior Member
 
Join Date: Jan 2010
Posts: 140
Thanks: 2
Thanked 0 Times in 0 Posts
Default

thanks till,

the default setup in ispconfig 3 can access phpmyadmin login page from all these URLs http://localhost/phpmyadmin, http://(www.)site-1.com/phpmyadmin, http://(www.)site-2.com/phpmyadmin, http://mail.site-1.com/phpmyadmin, http://mail.site-2.com/phpmyadmin, http://{local or public IP address}/phpmyadmin. is it good in this way? is there any security risk to not limit the access to phpmyadmin interface?
Reply With Quote
  #8  
Old 17th December 2010, 10:47
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:
is there any security risk to not limit the access to phpmyadmin interface?
no, as phpmyadmin is not installed in /var/www
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 17th December 2010, 10:48
qiubosu qiubosu is offline
Senior Member
 
Join Date: Jan 2010
Posts: 140
Thanks: 2
Thanked 0 Times in 0 Posts
Default

is it included in the open_basedir, so it can be accessed from all those URLs?
Reply With Quote
  #10  
Old 17th December 2010, 11:01
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

If phpmyadmin is configured as alias in your setup, then it might be possible. If not, then it can be accessed only trough the default vhost. The default vhost can be reached by a IP which is not assigned to any webiste.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
can install drupal core site (for multisites) under websites basedir, e.g. /var/www? qiubosu Installation/Configuration 0 12th December 2010 23:06
Companion Script #2 for The Perfect Server - Fedora 13 x86_64 [ISPConfig 3]" MrCompTech Tips/Tricks/Mods 0 10th July 2010 05:11
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 11:06.


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