We can create separate php.ini configuration for each domains. For this we have to put a php.ini file to /home/user/public_html/
Idea from Dan Thompson
25-06-2011(Saturday)
" suPHP_ConfigPath /home/username/public_html " set this line in your .htacess file will make all the addon domains and sub folders values make effect the values you have described in /home/username/public_html/php.ini file
Suppose if you want to increase the upload file size to 64MB please do the following steps
Edit your php.ini file with the following details
First : upload_max_filesize = 64M -> default it will be 8MB
Second: post_max_size = 64M
Third : max_execution_time = 300 -> default value will be 30
With the custom php.ini's you also need to remember they aren't recursive like .htaccess files.
ReplyDeleteFor example, if you put a .htaccess file in /home/user/public_html/ the directives in that file would take effect on all directories under /home/user/public_html/ as well as /home/user/public_html/
But with php.ini files, the php.ini applies only to the directory you've placed it in, so it may be that you need to use multiple php.ini files to get the desired result.
One of the most common php.ini uses is a memory limit passed in a users Wordpress admin area, they'll get it when trying to activate plugins or upgrading their blogs, so for those you can place the custom php.ini in their wp-admin folder and increase the max_memory (or whatever it is!) value.
Thank you very much !!!
ReplyDelete