Home Hosting Domains IT Services Support Contact Us
MyAccount PortalClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloads

Knowledgebase
You are here: MyAccount Portal > Knowledgebase > Web Development & Coding > Can I set different php.ini files for different sub directories?

Can I set different php.ini files for different sub directories?

Yes, you are able to set individual php.ini files for different directories.

The normal setting enables a php.ini file under /home/username/public_html will apply to all sub directories underneath it, however, this becomes void if create a php.ini file under a sub directory. This would then override the global php.ini file.

Example:

/home/username/public_html/php.ini
/home/username/public_html/sitefolder2/php.ini

sitefolder2's php.ini file would override the public_html php.ini file. If sitefolder2 didn't have a php.ini file, then it would use public_html's php.ini file.

If you have any issues applying this to your site, please lodge a support ticket.



Was this answer helpful?

Add to Favourites
Print this Article

Also Read


Network Status Client Area Knowledgebase Datacentre  
 
Terms of ServicePrivacy PolicyCustomer Security