M
MaRiOs
Guest
Im using a php script installed on a specific domain and i need in the domain the option open_basedir to be turned to "none"
this option is found on :
/home/httpd/vhosts/domainname/conf/
in the httpd.include file.
its the :
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/domainname/httpsdocs:/tmp"
</IfModule>
the httpd.include sais that :
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /home/httpd/vhosts/grserver.gr/conf/vhost.conf
# /home/httpd/vhosts/grserver.gr/conf/vhost_ssl.conf
# /home/httpd/vhosts/grserver.gr/subdomains/<subdomain-name>/conf/vhost.conf
so if i create a file vhost.conf
and put inside this :
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir none
</IfModule>
the php wont take this change.
I tried to copy the whole httpd.include file into vhost.conf and every thing f**cked up hehe.
so whats the right structur of a vhost.conf file ?
all iwant is to add this <IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir none
</IfModule>
and make it work.
this option is found on :
/home/httpd/vhosts/domainname/conf/
in the httpd.include file.
its the :
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/domainname/httpsdocs:/tmp"
</IfModule>
the httpd.include sais that :
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /home/httpd/vhosts/grserver.gr/conf/vhost.conf
# /home/httpd/vhosts/grserver.gr/conf/vhost_ssl.conf
# /home/httpd/vhosts/grserver.gr/subdomains/<subdomain-name>/conf/vhost.conf
so if i create a file vhost.conf
and put inside this :
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir none
</IfModule>
the php wont take this change.
I tried to copy the whole httpd.include file into vhost.conf and every thing f**cked up hehe.
so whats the right structur of a vhost.conf file ?
all iwant is to add this <IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir none
</IfModule>
and make it work.