How do I increase the post_max_size in PHP running on Mac OS X?
Hi
I am working on a script to upload files to a site that I am serving from my local webserver, i.e. my Mac. I am getting an error message on uploads stating that I need to increase post maxsize and upload maxfilesize to 10000M.
So far I have done the following:
1. Created an .htaccess file with the following text and put it in the root folder of the webserver:
php_value memory_limit 4294967296
php_value post maxsize 1073741824
php_value upload maxfilesize 524288000
2. Changed both the overall httpd.conf and my user.conf files to AllowOverride: All
3. Restarted the webserver (by restarting web sharing in system preferences - I am presuming this is the way to do it)
And still I get the error message. I also read somewhere that I could change a php.ini file. I found a php.ini.default file and changed both values to 1000000000. I had read somewhere that this is better than the format 100M. By still get the error.
I should add that I am getting this error even when I am trying to upload very small files, i.e. 20KB, so this suggests that there may be another issue.
I would be grateful for any help in resolving this issue
Thanks
Nick
I am working on a script to upload files to a site that I am serving from my local webserver, i.e. my Mac. I am getting an error message on uploads stating that I need to increase post maxsize and upload maxfilesize to 10000M.
So far I have done the following:
1. Created an .htaccess file with the following text and put it in the root folder of the webserver:
php_value memory_limit 4294967296
php_value post maxsize 1073741824
php_value upload maxfilesize 524288000
2. Changed both the overall httpd.conf and my user.conf files to AllowOverride: All
3. Restarted the webserver (by restarting web sharing in system preferences - I am presuming this is the way to do it)
And still I get the error message. I also read somewhere that I could change a php.ini file. I found a php.ini.default file and changed both values to 1000000000. I had read somewhere that this is better than the format 100M. By still get the error.
I should add that I am getting this error even when I am trying to upload very small files, i.e. 20KB, so this suggests that there may be another issue.
I would be grateful for any help in resolving this issue
Thanks
Nick
Macbook Pro, Mac OS X (10.6.6), 2.66 GHz Intel Core i7 8GB RAM