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

Macbook Pro, Mac OS X (10.6.6), 2.66 GHz Intel Core i7 8GB RAM

Posted on Feb 26, 2011 5:53 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I increase the post_max_size in PHP running on Mac OS X?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.