• 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

output_handler

U

user_2007

Guest
I need to set the output_handler to ob_gzhandler in the main php.ini to get some scripts to work. Is there a better way to do this, or does anyone know if this could cause problems within default plesk operations.
 
Do you need this on all domains? Otherwise you can also set this in a domain's vhost.conf or maybe even through .htaccess?
 
Yes

I would very much like for this to work on all domains. But if this puts plesk at any risk I'd rather use the htaccess file as you say. Would this be done using the phpflag? like this:
Code:
php_flag output_handler = ob_gzhandler

Oh, and I don't understand what you mean by vhost.conf, that file doesn't seem to exist in my sytem. Do you mean the apache config file at /var/www/vhost/<vhost>/conf/httpd.include?
 
There is no vhost.conf by default, but you can create a vhost.conf file (vhost_ssl.conf for https) in a domain's conf dir and put any domain specific apache config in there. After creating the vhost.conf file you need to run /usr/local/psa/admin/websrvmng -a -v so vhost.conf will be included in the domain's httpd.include file.

If you want to set an option for all domains you could edit /etc/php.ini, but I like to create a separate .conf file in /etc/httpd/conf.d/ myself, which gets included in the main config automatically.
 
Thank you Breun, this information has been very useful to me.
 
Back
Top