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

0 Members and 1 Guest are viewing this topic.

Offline
*
Change php.ini for specific domains.
« 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:

Quote
/home/domain1/public_html

Also I have a subdomain placed here

Quote
/home/domain1/public_html/subdomain/

If I add php.ini to

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

Code: [Select]
suPHP_ConfigPath /home/domain1/public_html
But after that my subdomain stop working and I could see a message like this

Quote
/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?..
« Last Edit: January 09, 2017, 06:48:16 PM by Pegasus »

Offline
*
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.