• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Bug in "Customizable httpd.include per domain and subdomain"

W

worryboy

Guest
You wrote in your handbook

chapter
"Customizable httpd.include per domain and subdomain"

if any of tis files exist by the time the main configuration file is generated, Plesk inserts the ....

but
it dosent have any effect if i will overwrite an existing value

E.g

Plesk standard value
Code:
php_admin_value open_basedir "/home/httpd/vhosts/xxx.com/httpsdocs:/tmp"

the faulty is in my meaning tha plesk overwrites this values "after" inserting my specific value...

did u have any hints ?
or resolutions ?


i wll change it to

Code:
php_admin_value open_basedir none
 
Maybe you should do some reading on configuring apache :)

Try using the following definition:

Code:
<Directory /home/httpd/vhosts/<yourdomain>/httpdocs/>
  <IfModule mod_php4.c>
    php_admin_value open_basedir none
  </IfModule>
</Directory>

That should do it :)
 
Originally posted by Whistler
Maybe you should do some reading on configuring apache :)

:p

Originally posted by Whistler
Try using the following definition:

Code:
<Directory /home/httpd/vhosts/<yourdomain>/httpdocs/>
  <IfModule mod_php4.c>
    php_admin_value open_basedir none
  </IfModule>
</Directory>

That should do it :)

seems like my decision ;)

it dosent work ... trust me

greetz
 
Just delete "php_admin_value open_basedir" and restart apahce.
 
Originally posted by smtalk
Just delete "php_admin_value open_basedir" and restart apahce.

no ..
maby u missunderstood some thing

the value "php_admin_value open_basedir " ist defined by default in plesk

if i delete this in my custom conf file , the default value take effect.

if i delete this value in the original conf "httpd.include" you are right, but plesk overrides this after an action. so its no posibility ...
 
You may add "php_admin_value open_basedir none" to vhost.conf file.
This must solve your problems.
 
Sib is right. Always make a vhost.conf for the site that needs special attention/directives, works everytime, and isn't modified by PSA and overrides PSAs defaults for a specific site.
 
Dont forget to run this after you create a new vhost.conf file for a site:
# /usr/local/psa/admin/bin/websrvmng -a -v
# service httpd restart
 
Back
Top