Showing posts with label Gallery. Show all posts
Showing posts with label Gallery. Show all posts

Wednesday, July 7, 2010

Unable to move albums for Gallery

I was trying to move albums by clicking "move album" link and the pop-up windows show nothing at least for Internet Explorer. there was no change of website name or any other configuration change. The first thing I did was to take a look at the log file at

# less /var/log/httpd/error_log
*Click F so that you can see the log in real time

You will see an error
[client 192.168.1.2] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted.....

To solve the issue,
# vim /etc/php.ini

memory_limit = 32M

Restart httpd
# service httpd restart

Sunday, June 13, 2010

Changing IP Address or Server Name for Gallery configuration file

I was searching how to change the IP Address / Server Name for the  Open Source Gallery software. Finally realise how to change with command line
# vim /var/www/html/gallery/config.php
sdsdsd

.......
$gallery->app->photoAlbumURL = "http://linuxtoolkit.blogspot.com/gallery";
$gallery->app->albumDirURL = "http://linuxtoolkit.blogspot.com/gallery";
.......

Wednesday, March 31, 2010

Encountering LimitRequestBody and memory_limit for Gallery

When you are uploading file, you may encounter this error:
"You may need to set LimitRequestBody 16777216 and memory_limit = 64M in /etc/php.ini and /etc/httpd/conf.d/php.conf on your Gallery server"

To solve the issue, change the /etc/php.ini file to
vim /etc/php.ini
upload_max_filesize = 128M 

Edit the following as well for /etc/httpd/conf.d/php.conf
vim /etc/httpd/conf.d/php.conf
<Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 33554432 </Files>

Tuesday, March 23, 2010

Encountering "This account is locked due too much wrong login attempts" from Gallery

If you are using Gallery,

"This account is locked due too much wrong login attempts. Wait for automatic unlock"

To remove the error, just remove the file "logins.dat" from the albums folder, all logged login attempts will deleted.