Author Topic: Change php.ini for specific domains.  (Read 4474 times)

0 Members and 1 Guest are viewing this topic.

Change php.ini for specific domains.
« on: January 09, 2017, 06:45:43 PM »
I am trying to figure out how to use unique php.ini for specific domains.

For now I have a website which placed here:


Also I have a subdomain placed here


If I add php.ini to

Code: [Select]
The system using it only for this folder but not to all subfolders.
So I fix that adding this string into my .htaccess file

Code: [Select]
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:

Could you explain for me how to use one php.ini to my domain1 recursively and let my subdomain work properly?..
« Last Edit: January 09, 2017, 06:48:16 PM by Pegasus »

Re: Change php.ini for specific domains.
« Reply #1 on: January 19, 2017, 04:03:34 AM »
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.