HostOnNet Blog

photopost gallery bulk upload error

Looking for Linux Server Admin or WordPress Expert? We can help.

On photopost gallery at http://gallery.bizhat.com/ , when uploading many files at a time, it just show a blank page.

I checked the web server error log and found following error.

[root@server32 httpd]# tail /var/log/httpd/error_log
[Mon Aug 20 15:31:40 2007] [error] [client 59.93.22.186] PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 44 bytes) in /home/bizhat/gallery/pp-inc.php on line 1245, referer: http://gallery.bizhat.com/bulkupload.php?ppaction=addphotos&do=preview&photopath=645&upuser=Nokia&notify=no&defcat=2037&numprocess=10&deftitle=&defdesc=&keywords=&updir=%2Fhome%2Fbizhat%2Fgallery%2Fuploads%2F101374%2F&processall=no&dthumbs=yes
[root@server32 httpd]#

This is due to allowed memory for a php process is reached and process get killed.

Solution is increase memory in php.ini

[root@server32 httpd]# php -i|grep memory
memory_limit =  16M
[root@server32 httpd]#

To do this, edit /etc/php.ini

vi /etc/php.ini

FIND

memory_limit = 16M

Replace With

memory_limit = 64M

Now restart Apache

service httpd restart

Posted in Installation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.