• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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