• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

vhost.conf

kingsquare

New Pleskian
I've tried to setup extra php_admin flags via a vhost.conf file for just one domain... but the file doesnt seem to be included? Am i doing something wrong?
Code:
<IfModule sapi_apache2.c>
        php_admin_value safe_mode Off
        php_admin_value open_basedir  "/usr/share/pear:/var/lib/php/session:/var/www/vhosts/example.com/httpdocs:/tmp"
        php_admin_value upload_tmp_dir /tmp
</IfModule>

And in http.include i see the extra line:
Code:
Include /var/www/vhosts/example.com/conf/vhost.conf

So that seems to go ok, but with a phpinfo(); command i dont see the extra open_basedir parameters nor the change in safe_mode... ?

As you might be wondering why: egroupware... (CentOs 4.3)

[edit]

Sigh... got it fixed now...
Code:
<Directory /var/www/vhosts/example.com/httpdocs>
        <IfModule sapi_apache2.c>
                php_admin_value mbstring.func_overload 7
                php_admin_value open_basedir  "/usr/share/pear:/var/lib/php/session:/var/www/vhosts/example.com/:/tmp"
                php_admin_value upload_tmp_dir /tmp
        </IfModule>
</Directory>
is the _entire_ contents of vhost.conf

and thát works!
 
Back
Top