1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

output_handler

Discussion in 'Plesk for Linux - 8.x and Older' started by user_2007, Apr 24, 2007.

  1. user_2007

    user_2007 Guest

    0
     
    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.
     
  2. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    Do you need this on all domains? Otherwise you can also set this in a domain's vhost.conf or maybe even through .htaccess?
     
  3. user_2007

    user_2007 Guest

    0
     
    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?
     
  4. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    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.
     
  5. user_2007

    user_2007 Guest

    0
     
    Thank you Breun, this information has been very useful to me.
     
Loading...