You are not logged in.
#1 2007-01-10 12:36:11
- tang
- Member
Server not generating thumbnails
Hi. I liked a lot sgal but when I tried to install it in 110mb.com I took a lot of errors:
Code:
Step 1 of 2: Test Server Attempting to find out if your server is capable of running singapore. No changes are made at this time. Testing PHP version PHP version is 5.1.6. Testing PHP configuration PHP is running in 'safe mode' (safe_mode). Singapore may still function correctly but safe mode operation is not supported. Session save path does not exist or is not writable (session.save_path). Singapore will function but you may not be able to use the admin interface. Transparent session id support disabled (use_trans_sid). Singapore will function but will require cookies for the admin interface to function. File uploading enabled. Upload directory directory does not exist or is not writable (upload_tmp_dir). Singapore will function but you may not be able to upload images via the admin interface. Remote file handling disabled (allow_url_fopen). Singapore will function but you will not be able to generate thumbnails for remotely hosted files. Testing for config file Config file found. Testing for GD Found GD: Version bundled (2.0.28 compatible) . Testing for ImageMagick Warning: exec() has been disabled for security reasons in /www/110mb.com/t/a/n/g/_/_/_/_/tang/htdocs/install/install.inc.php on line 83 Warning: exec() has been disabled for security reasons in /www/110mb.com/t/a/n/g/_/_/_/_/tang/htdocs/install/install.inc.php on line 84 ImageMagick not found but that doesn't mean it's not there. If it really is not available you may be able to install it yourself (even without shell access to the server). Oops! One or more problems were encountered. You may want to fix them and retry this step.
But the biggest problem is that the host is not creating the thumbnails. My galleries are only showing the image full size. I put on singapore.ini to use gd2.
I dunno whatīs happening... Iīm a complete noob about php scripts and server... T_T
When I try to use /tools/generate.php I took these errors:
Code:
Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 8390 is not allowed to access /www/110mb.com/t/a/n/g/_/_/_/_/tang/htdocs/galleries/2004/AVEX_2004/_thumbs owned by uid 2001 in /www/110mb.com/t/a/n/g/_/_/_/_/tang/htdocs/includes/thumbnail.class.php on line 215 Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /www/110mb.com/t/a/n/g/_/_/_/_/tang/htdocs/includes/thumbnail.class.php on line 215
I already tried to use the ftp hack but no sucess.
If you guys need to take a look at the phpinfo here is:
http://tang.110mb.com/install/install.php?step=phpinfo
And yes, I CHMOD /data and /galleries and all files on them to 0777.
Note: I already tried to use this topic to help me but still no thumbnails: http://www.sgal.org/forum/viewtopic.php?id=842
The result is my gallerie will not show any sub-galleries, sgal will have only the main page.
Note 2: Sorry my poor english... ![]()
Last edited by tang (2007-01-10 12:52:08)
Offline
#2 2007-01-10 12:59:08
- pavian
- Moderator

Re: Server not generating thumbnails
Safe mode is not officially supported. Sorry.
Try a different free webhoster: http://www.funpic.org/
Offline
#3 2007-01-10 13:21:29
- tang
- Member
Re: Server not generating thumbnails
pavian wrote:
Safe mode is not officially supported. Sorry.
Try a different free webhoster: http://www.funpic.org/
Err...
Isnīt there another way?... ![]()
Offline
#5 2007-01-12 17:10:32
- davidS
- Member
Re: Server not generating thumbnails
Hi,
I am webmaster for a ballroom dance club and want to create a photo gallery for them. So many of your referenced websites use Singapore customized for their site (and look so good) that I really want to make it work on mine. :-)
But I face a similar problem to tang's. The club's site runs in safe mode.
Does anyone know if this workaround will not (or may not) work? I really would appreciate any help.
I have the club's website mirrored on my Mac G4 w os-10.3 (NOT in safe mode). GD-2.0 is available on the club site but not on my Mac. My plan is to install GD on my Mac, create all thumbnails on the Mac with Singapore, and upload the singapore folder to the website using FTP.
Any thoughts on this would be greatly appreciated. Thanks, David
Offline
#6 2007-01-12 19:41:54
- pavian
- Moderator

Re: Server not generating thumbnails
Hmm hmm the problem is actually that we have no expert on safe_mode and the php-manual is quite short about it. On some servers the safe_mode-hack (see singapore.ini) works like a charm, on some it does not. In the above example you see one where it does not work correctly. The list of forbidden things on that server seems to really really long...
Offline
#7 2007-01-12 22:24:30
- Paul
- Member
Re: Server not generating thumbnails
In general, yes, you should be able to create the thumbnails locally and upload them to your webserver. Obviously this is going to be a hassle, but it can be done ![]()
Last edited by Paul (2007-01-12 22:25:45)
Offline
#8 2007-01-13 14:18:30
- davidS
- Member
Re: Server not generating thumbnails
pavian and Paul, Thanks for your thoughts. This experiment should be an adventure. (In 25 years of Macintosh use, this is my first compile and install). I have not found binaries for GD so I will compile it using a how-to sheet from http://www.paginar.net/matias/articles/ … o.old.html
Once all is running as I imagine it, creating thumbnails locally and uploading them should be painless. (I use an FTP client that will do automatic syncronization of directories on two servers).
Once again, thanks!
Offline
#9 2007-01-14 05:07:52
- davidS
- Member
Re: Server not generating thumbnails
The above method did work. I am now running singapore on our website server that runs PHP in safe-mode. I created the thumbnails and did all admin tasks using an identical image of singapore running on Apache on a Mac G4 (not in safe mode). And I used FTP to replace the gallery directory on the website with gallery from the Mac.
Now the website runs singapore.
(And incidently the two systems back each other up).
Thanks again for your support. ![]()
Offline
#11 2007-01-24 04:38:44
- tang
- Member
Re: Server not generating thumbnails
Huum... Then How can I run the script in my pc localy without pain of installing a Apache and configuring it?... Is there a way???
Offline
#12 2007-01-24 07:22:06
- pavian
- Moderator

Re: Server not generating thumbnails
No.
But I have heard: xampp by http://www.apachefriends.org is a nice distrbution.
Offline
#13 2007-01-24 09:16:23
- bartik
- Member
Re: Server not generating thumbnails
I have generated the thumbnails (and downsized the original photos to 800x600) on windows using IrfanView in scripting mode (any similar graphics converter should work). Then uploaded to my server and everything is fine. Don't forget to upload the thumbnails last so they get a newer timestamp as the images, otherwise singapore will try to generate the tumbnails anew. Or use touch on thumbnails if you have shell access. The only minor hassle was to find out the size of the thumbnails. Since I use only the modern template I generated the 50x50, 80x80 and 100x100 thumbs. Maybe when using a different template, you will need differntly sized thumbnails. On the sidenote when uploading per ftp don't forget to set the right permissions and setting the owner under which php runs is also an advantage.
Last edited by bartik (2007-01-24 09:19:20)
Offline
#14 2007-01-25 05:44:14
- tang
- Member
Re: Server not generating thumbnails
Hi everyone.
I tried here XAMPP and it worked out great~!
I generated all thumbnails that I needed and now I'm uploading them. ^^ Thnks a lot you all~!!
Is there a way to make irfanview work with scripts, or are you saying using the batch resize?
Last edited by tang (2007-01-25 05:45:37)
Offline
#15 2007-01-25 06:53:33
- pavian
- Moderator

Re: Server not generating thumbnails
tang wrote:
Is there a way to make irfanview work with scripts, or are you saying using the batch resize?
That is what he is saying :-)
Offline