Control Web Panel
WebPanel => CentOS 6 Problems => Topic started by: Pegasus on January 09, 2017, 06:45:43 PM
-
Hello.
I am trying to figure out how to use unique php.ini for specific domains.
For now I have a website which placed here:
/home/domain1/public_html
Also I have a subdomain placed here
/home/domain1/public_html/subdomain/
If I add php.ini to
/home/domain1/public_html/
The system using it only for this folder but not to all subfolders.
So I fix that adding this string into my .htaccess file
suPHP_ConfigPath /home/domain1/public_html
But after that my subdomain stop working and I could see a message like this
/home/domain1/public_html/.htaccess: suPHP_ConfigPath not allowed here, referer: http://subdomain.domain1.com/
Could you explain for me how to use one php.ini to my domain1 recursively and let my subdomain work properly?..
-
I fixed the problem adding subdomain to /public_html_subdomain/ folder
But I am not sure is that correct to put subdomains files into /public_html_subdomain/ instead of standard path which is /puclic_html/subdomain/.
Thank you for any clarification.