0
01i
Guest
Hi,
I have a domain set up as following
...../tablewarfare.com/www <- live site htdocs
...../tablewarfare.com/code <- code for the live site
...../tablewarfare.com/boards <- message boards accessable from live and dev
...../tablewarfare.com/devel/www <- dev site htdocs
...../tablewarfare.com/devel/code <- dev site code source
The apache config for the devel subdomain includes the following
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/tablewarfare.com/devel/www/:/tmp/
</IfModule>
This prevents access to the /boards/ directory via a symlink and prevents me from including documents from the code folder.
this KB http://kb.odin.com/en/432 tells me to create a vhost.conf file in ...../tablewarfare.com/subdomains/devel/conf/ and followed that to http://download1.swsoft.com/Plesk/Plesk8.1/Doc/plesk-8.1-unix-administrators-guide/17359.htm
I create the file with the following contents
php_admin_value open_basedir none
and then ran the script suggested:
/plesk_installation_directory/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name>
that script told me it was out of date and to run httpdmng instead, so I tried that.
I have run
httpdmng --reconfigure-domain devel.tablewarfare.com
httpdmng --reconfigure-domain tablewarfare.com
httpdmng --reconfigure-all
I have also manually restarted apache, and rebooted the webserver
The basedirectory restriction is still in place.
The KB article I found is only for Plesks 8 and 9.
How do I add some manual vhost directives for apache2 on plesk 10.1
I have a domain set up as following
...../tablewarfare.com/www <- live site htdocs
...../tablewarfare.com/code <- code for the live site
...../tablewarfare.com/boards <- message boards accessable from live and dev
...../tablewarfare.com/devel/www <- dev site htdocs
...../tablewarfare.com/devel/code <- dev site code source
The apache config for the devel subdomain includes the following
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/tablewarfare.com/devel/www/:/tmp/
</IfModule>
This prevents access to the /boards/ directory via a symlink and prevents me from including documents from the code folder.
this KB http://kb.odin.com/en/432 tells me to create a vhost.conf file in ...../tablewarfare.com/subdomains/devel/conf/ and followed that to http://download1.swsoft.com/Plesk/Plesk8.1/Doc/plesk-8.1-unix-administrators-guide/17359.htm
I create the file with the following contents
php_admin_value open_basedir none
and then ran the script suggested:
/plesk_installation_directory/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name>
that script told me it was out of date and to run httpdmng instead, so I tried that.
I have run
httpdmng --reconfigure-domain devel.tablewarfare.com
httpdmng --reconfigure-domain tablewarfare.com
httpdmng --reconfigure-all
I have also manually restarted apache, and rebooted the webserver
The basedirectory restriction is still in place.
The KB article I found is only for Plesks 8 and 9.
How do I add some manual vhost directives for apache2 on plesk 10.1