HostOnNet Blog

photopost gallery bulk upload error

On photopost gallery at , 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] 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:
[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


memory_limit = 16M

Replace With

memory_limit = 64M

Now restart Apache

service httpd restart

Posted in Installation