What is the best way to create a php.ini
I want to change the sites ability to upload a file larger then 8M
Should I just create a blank file php.ini, place teh following in it and upload to root?
upload_max_filesize = 20M
What is the best way to create a php.ini
I want to change the sites ability to upload a file larger then 8M
Should I just create a blank file php.ini, place teh following in it and upload to root?
upload_max_filesize = 20M
Hi Salmon
Yes, that is correct. Upload it to public_html or any subdirectory that you want those settings to apply to.
If you want it to work for the entire site, you can do this:
Add the following line to the .htaccess file:
suPHP_ConfigPath /home/cpuser/path/to/php.ini
Then the php.ini will be used by all of that account's scripts / subdirs by default.
It prevents the need for many php.ini files.
Send your friends and site visitors to GlowHost and get $125 plus bonus!
GlowHost Affiliate Program | Read our Blog | Follow us on X |