• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

subdomain never use custom php.ini file.

ToolBox

Basic Pleskian
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?
 
Yes I Know that.

ofcourse i know that.


1-1. make new domain (testdomain.com).
1-2. make info.php file to httpdocs.
a36e3acc84dccb987e421041561bff0fa534784255fe2aa2448532e45e82aae45g.jpg

1-3. access to http://www.testdomain.com/info.php
d6988ac22e002383f4ea2b1932220be1ce8214e9f28db5a26f673d57d8b7b1e85g.jpg


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.
4033c41843920c2e0a48692b481e09f1d97b73ff0a6d1acc6c4ffb23673746695g.jpg

2-3 access to http://test.testdomain.com/info.php
05b99aa81ebd546c51286a768fd065bd9ce3261a4449aea17f13964ba49e55fc5g.jpg


This subdomain using /etc/php.ini

why subdomain use /etc/php.ini ?
 
Last edited:
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.
 
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?
 
Back
Top