Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upload size limit: apache or php?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
larryn
n00b
n00b


Joined: 06 Oct 2002
Posts: 11

PostPosted: Sun Feb 09, 2003 5:29 pm    Post subject: Upload size limit: apache or php? Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Feb 10, 2003 10:30 pm    Post subject: php vs mod_php Reply with quote

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
View user's profile Send private message
larryn
n00b
n00b


Joined: 06 Oct 2002
Posts: 11

PostPosted: Tue Feb 11, 2003 3:42 am    Post subject: Re: php vs mod_php Reply with quote

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
View user's profile Send private message
azambuja
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 257
Location: Porto Alegre, RS, Brazil

PostPosted: Sun Jan 11, 2004 8:28 pm    Post subject: Re: php vs mod_php Reply with quote

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
View user's profile Send private message
bryon
Apprentice
Apprentice


Joined: 14 Feb 2003
Posts: 163

PostPosted: Mon Jan 12, 2004 6:17 am    Post subject: already answred Reply with quote

it is a php_module.

This questions has already been answered, next time do two things

1. Search first
2. Use better Subject headings

Answer > https://forums.gentoo.org/viewtopic.php?t=92882&highlight=
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum