php.ini php.ini
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

php.ini

Started by hoksibish, March 15, 2012, 04:02:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hoksibish

I have a new install and only have one wierd thing going on.  i installed 1.5.18 running PHP 5.3.5.  It is on a hosted server.   we get errors saying exceeded file size allowed in php.ini. the php.ini has been changed to 10mb max_uplaod and max_post has been set to 8mb.  we only get that error when files are over 2mb.  which was the orginal setting.  httpd has been restarted 3 times and the actual host was rebooted as well.  anyone have any other thoughts??

thanks in advance

hoks

Stramm

give it more memory (memory_limit) and keep in mind that the ~2mb files you're talking about are probably compressed ones (jpg or similar). If you're working with them (resizing -> thumbs/ intermediates) they need a lot more memory. That's depending on the size x|y and the color depth.

hoksibish

i will look into that thanks..

hoksibish

also phpinfo shows 2mb.... even though php.ini is 10mb.  if it was memory why would error stat file exceeded allowed?

Stramm

have you checked apache conf for limits?

hoksibish

i will look.  but i am still curious as to why cpg shows 2mg on phpinfo even though the actuall ini shows 10mb.  any thoughts as to why cpg isnt reading the updated php.ini...

thanks in advance

Αndré

That's not related to Coppermine. Depending on your web server, it may be possible that there's more than 1 php.ini file. So you need to find the correct one to increase the limits. E.g. in my local testbed running XAMPP there are two php.ini files. The memory_limit doesn't matter at this point.

hoksibish

that is a valid point.  on the hosting side  it is a shared environment and that the hoster had set the global php.ini to 10M, and restarted apache, however when you look at the phpinfo it still shows 2mb.  the hoster is running cpanel, if you look at phpinfo there shows 10M.  crazy huh...

Αndré

There's something wrong with the server setup. Coppermine uses the standard PHP function phpinfo to display the current settings. Please contact your hosting provider.

hoksibish

we will reboot the box tonight and see if something maybe cached...  thanks for the posts  will let you all know.