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

subdomain never use custom php.ini file.

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by ToolBox, Dec 8, 2011.

  1. ToolBox

    ToolBox Basic Pleskian

    23
    57%
    Joined:
    Jul 10, 2005
    Messages:
    36
    Likes Received:
    0
    subdomain never use custom php.ini file.

    main domain use custom php.ini file.

    phpinfo(); report (main domain)
    Loaded Configuration File /var/www/vhosts/maindomain.com/etc/php.ini

    phpinfo(); report (subdomain)
    Loaded Configuration File /etc/php.ini

    This problem occurs on CentOS6.
    CentOS5 system does not .

    Can you fix this?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
  3. ToolBox

    ToolBox Basic Pleskian

    23
    57%
    Joined:
    Jul 10, 2005
    Messages:
    36
    Likes Received:
    0
    Yes I Know that.

    ofcourse i know that.


    1-1. make new domain (testdomain.com).
    1-2. make info.php file to httpdocs.
    [​IMG]
    1-3. access to http://www.testdomain.com/info.php
    [​IMG]

    This main domain using /var/www/vhosts/testdomain.com/etc/php.ini


    2-1 make new subdomain test on testdomain.com.
    2-2 make info.php file to httpdocs.test.
    [​IMG]
    2-3 access to http://test.testdomain.com/info.php
    [​IMG]

    This subdomain using /etc/php.ini

    why subdomain use /etc/php.ini ?
     
    Last edited: Dec 8, 2011
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Custom PHP settings for subdomain will be specified in /var/www/vhosts/sub1.plesk101.domain.ru/conf/13234095380.66395100_httpd.include, for example. When you set a parameter to Default value, PHP will use the parameter's value from the server-wide PHP configuration.
     
  5. ToolBox

    ToolBox Basic Pleskian

    23
    57%
    Joined:
    Jul 10, 2005
    Messages:
    36
    Likes Received:
    0
    No.

    This is not such a problem.

    The /var/www/vhosts/test.testdomain.com/conf/xxx.include was fine like below.

    SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/test.testdomain.com/etc/php.ini

    <IfModule mod_fcgid.c>
    FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/test.testdomain.com/et
    c/php.ini
    </IfModule>



    Just now, i turn off the selinux .

    it work fine.......

    I don't know why. but it was caused by selinux, i think.

    you told me
     Plesk shipped with psa-selinux package. This package modifies the SELinux predefined policies configurations
    to allow Plesk to perform its actions.
    but....

    psa-selinux has small bugs or something......

    What would be better selinux not available yet?
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
Loading...