• 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

/etc/apache2/conf.d/zz010_psa_httpd.conf

pikkuveli

New Pleskian
Hi

I would like to make the following change in this file /etc/apache2/conf.d/zz010_psa_httpd.conf

And change which I would like to make and there is the one following

DocumentRoot /usr/share/psa-horde/
Alias /horde/ /usr/share/psa-horde/
Alias /imp/ /usr/share/psa-horde/imp/
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
<Directory /usr/share/psa-horde>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."

</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:/usr/share/psa-horde/lib:."
</IfModule>

TO

DocumentRoot /usr/share/psa-horde/
Alias /horde/ /usr/share/psa-horde/
Alias /imp/ /usr/share/psa-horde/imp/
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
<Directory /usr/share/psa-horde>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
suPHP_Engine off
AddHandler php5-script .php
AddType text/html .php
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:/usr/share/psa-horde/lib:."
suPHP_Engine off
AddHandler php5-script .php
AddType text/html .php

</IfModule>

How could this be done... Where will I find the file zz010_psa_httpd.conf from, a template

With best regards

Jouni Ikäheimo
 
Plesk regenerates this file on just about every change you make to a domain, so modifying this file won't really work. The change is that you want to set suPHP_Engine off for Horde? Can't you create a separate .conf file in /etc/httpd/conf.d/ to do this? Otherwise you'll need to create a script that makes this change and make sure it is called through Plesk's Event Manager.
 
Ive put custom things like SSL protocol disable, ssl ciphers, etc into /usr/local/psa/admin/conf/httpsd.custom.include - you may be able to use something like that to do what you want.
 
Back
Top