View previous topic :: View next topic |
Author |
Message |
larryn n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Oct 2002 Posts: 11
|
Posted: Sun Feb 09, 2003 5:29 pm Post subject: Upload size limit: apache or php? |
|
|
My box has apache-1.3.27-r1 and php-4.3.0-r2 installed. I did make sure in php.ini has
upload_max_filesize = 4M
post_max_size = 2M
but whenever I upload an image to Gallery, I can only upload any file that is <= 75kb. I don't think it's Gallery settings. Any hints?
Here is the error from apache log file
Request content-length of 114960 is larger than the configured limit of 75000
TIA |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Feb 10, 2003 10:30 pm Post subject: php vs mod_php |
|
|
My guess is that you edited /etc/php4/php.ini instead of /etc/apache/conf/php.ini
How to see the options you've set in mod_php and php which are two different and distinct things:
1. For mod_php
Create test.php in you htdocs dir with the followling line
<?php phpinfo(); ?>
2. for php, run the follwoing from the command line and then look at the webpage it creates.
php -i > /home/httpd/htdocs/test2.php
I hope these were the clues you were looking for.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
larryn n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Oct 2002 Posts: 11
|
Posted: Tue Feb 11, 2003 3:42 am Post subject: Re: php vs mod_php |
|
|
kashani wrote: | My guess is that you edited /etc/php4/php.ini instead of /etc/apache/conf/php.ini
How to see the options you've set in mod_php and php which are two different and distinct things:
1. For mod_php
Create test.php in you htdocs dir with the followling line
<?php phpinfo(); ?>
2. for php, run the follwoing from the command line and then look at the webpage it creates.
php -i > /home/httpd/htdocs/test2.php
I hope these were the clues you were looking for.
kashani |
Thanks for the tips but that was not the problem. I edited the right php.ini .
Fix? Use directive LimitRequestBody your_file_size_here in your .conf file. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
azambuja Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/c8b4a5613db00d6e58503.jpg)
Joined: 12 Jul 2002 Posts: 257 Location: Porto Alegre, RS, Brazil
|
Posted: Sun Jan 11, 2004 8:28 pm Post subject: Re: php vs mod_php |
|
|
larryn wrote: |
Fix? Use directive LimitRequestBody your_file_size_here in your .conf file. |
in what .conf file?
thanx/cheers _________________ "Slip inside the eye of your mind, don't you know you might find, a better place to play" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bryon Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/15658554344004c79a534f7.jpg)
Joined: 14 Feb 2003 Posts: 163
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|