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

Plesk Domain php configuration

Discussion in 'Plesk for Linux - 8.x and Older' started by ugs, Mar 12, 2008.

  1. ugs

    ugs Guest

    0
     
    Hello,

    for a Domain in Plesk 8.3.0 Zend Optimizer is to be installed.

    I have the files in the Hosting account unpacked. Now the Zend Extension must be still loaded.

    The following must be registered in php.ini:
    zend_optimizer.optimization_level=15
    zend_extension=/srv/www/vhosts/domain/httpdocs/zend/data/5_1_x_comp/ZendOptimizer.so

    How can I provide its own php configuration for the Domain? What do I have to make in Plesk?

    Thank you for your answers.
     
  2. DaDomainMasta

    DaDomainMasta Guest

    0
     
    actually nothing to be done with Plesk, it cannot handle separate configuration for each domain. some settings can be added in .htaccess, check http://ru2.php.net/ini_set
     
  3. ugs

    ugs Guest

    0
     
    Hello,

    I provided a .htaccess file with the following PHP data:

    php_value zend_optimizer.optimization_level=15
    php_value zend_extension=/srv/www/vhosts/domain/httpdocs/zend/data/5_1_x_comp/ZendOptimizer.so

    If I call the Domain, I receive a server error 500. I could not find a message in the Logs. Can someone help me?

    Thank you for your answers.
     
  4. ziba@

    ziba@ Guest

    0
     
    Hi,

    php_value can only be used with PHP_INI_ALL and PHP_INI_PERDIR type directives.
    I am not sure which type zend_optimizer.optimization_level is and can not say exactly whether it can be change with php_value or no.

    However you can try defining it using php_admin_value which does not have such restrictions. But you should enter php_admin_value in domain vhost.conf file as php_admin_value can not be set in .htaccess files:
    http://us2.php.net/configuration.changes

    Here is howto on including directives in vhost.conf:
    http://download1.parallels.com/Ples...plesk-8.3-unix-administrators-guide/17359.htm

    Hope this helps.
     
Loading...