where is the home directory for vhosts
I used ISPConfig since 2.2.4 and now I installed the last version in a new server.
The vhosts home directory for the Older version is /home/www/<host-names>/web
now the latest version point to:
could be the difference is irrilevant, but I suppose the previous is more secure.
Infact the new directory structure *doesn't requires* the use of open_basedir because /var/www is the root.
I don't know what happened before or if I configured something around to use /home/www or if there is something changed with the latest 2.2.10.
Could you help me?!?
Thanks in anticipation...
You may use any homedir with ISPConfig, you can set it when you use the expert installation mode.
If you update a existing ISPConfig, the homedir is not changed at all, only the preset for new installations has been changed from /home/www to /var/www because it is the default in most linux distributions.
what about open_basedir?
I don't remember if I installed the previous version of ISPConfig using expert mode, but when I put within /home/www/ a folder with TYPO3 to share it with several sites I was forced to add some code in apache configuration (via web, ISPConfig admin panel) to grant the access to the folder.
Now using /var/www it is not the same and the access is free.
I suppose this happens because /var/www however is browsable and I think this is not good.
Then I ask you, thanking for your patience, how can I move my sites from /var/www to /home/www.
First I think to modify some lines in /etc/apache2/apache2.conf
changing the directory from /var/www to /home/www
but I don't know where ISPConfig is configured: maybe the only parameter I saw is stored in the table
isp_server, field: server_path_httpd_root (now is set to: /var/www)
If I change apache2.conf and modify the field and restart ISPConfig it is all OK?!?
Finally could be nice add an option within the admin control panel to set this...
thank you very much...
Dont change this folder! /var/www is the correct location.
Anyway, ISPConfig is not mady that you put any CMS directly in /var/www or /home/www, you must install the cms in a subdirectory like /var/www/web[ID]/web/
Could be that I can put my CMS within a folder as suggested,
but the best way is to use an area out of each domain to be shared beetwen the sites actived.
"My apache2.conf is modified, so /var/www is not browsable. Think this is a good suggestion. No index.<valid ext> = no access"
Which changes you made in apache2.conf?!?
Thank you again...
are you sure?!?
I verified my configuration:
-Indexes was yet configured.... are you sure?!?
Sorry, I thought I remembered well, but apparently I did not. Just reviewed my personal installation guide and it says:
Something doesn't work as expected. I added the line you suggested and restarted ispconfig server and apache server with no results.
To be true this is a symlink that starts from my directory:
lrwxrwxrwx 1 root root 25 2007-03-14 12:54 typo3_src -> /var/www/typo3_src-4.0.5/
this points to /var/www/typo3_src-4.0.5
I have another server with the previous version. There until added the following lines I can't use the /var/www/typo3_src-4.0.5/ contents (admin cpanel, ISP site->base):
php_admin_flag engine on
php_admin_flag safe mode off
php_admin_value open_basedir '/home/www/site.domain.it/web/:/tmp:/home/www/typo3_src'
In the new server this *not happens* and it is clear that /var/www is opened for all sites inside it...
Wainting for comments, thanx
|All times are GMT +2. The time now is 18:55.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.