thumb + cgi?

webgiaguaro / 2007-12-20 17:54:21   

Hi Vaska,
i have two problems:

1) it seems not possible to generate thumbs. i made two attempts: one with a big image (more than 2mb) and one with a small image. you can find both of them under the section projects of my panel: http://www.andreapetrecca.net/ndxz-studio/
i've read previous topic and i asked for gd libraries at my provider. here the specs:

GD Supportenabled
GD Versionbundled (2.0.34 compatible)
FreeType Supportenabled
FreeType Linkagewith freetype
FreeType Version2.1.7
GIF Read Supportenabled
GIF Create Supportenabled
JPG Supportenabled
PNG Supportenabled
WBMP Supportenabled
XBM Supportenabled

2) when i view my site www.andreapetrecca.net/home.php (yes, i insert a splash page changing the name oh the index.php and doing the same into the htacces file) it is not possible to enter in the different section. the error i read says that there can be a problem with the cgi script that doesn't work.
on my remote server there is a specific folder for this: /cgi-bin/
do you think this is a problem?

please help!!!
what should i try to do?

i like very much indexhebit and i would like to use!!!
compliments for the work.

bye.

Vaska A / 2007-12-20 18:31:14   

1) over 2mb won't work probably - too big. I have to wonder if somehow #2 is causing a problem here.

2) did you edit the htaccess file as well?

I think your PHP might be installed via CGI...and this sometimes produces unusual results. I really don't know too much about the whole CGI I road with PHP. I do know that it does work on other hosts who have it...but I also know it's more complicated.

webgiaguaro / 2007-12-20 18:47:01   

1) ok, 2mb too big but... even with a small image it does'nt make the thumb!

2) the only change i made in the htaccess has been to change the name of the index.php file into home.php. for the php...
i don't know what to say, i'm not an expert...

the file .htacces is this:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.+) home.php

my webhost is organized in three folder:
/htdocs
/conf
/cgi-bin

after indexhebit installation in the /conf folder a file called php.ini appeared while the /cgi-bin folder remain empty even if in the first webhost mail (the one with all the datas for right access etc..) there is specified that the /cgi-bin folder is the folder for the pubblication of cgi scripts.

...ideas?
thankyou

Vaska A / 2007-12-20 18:48:56   

I'd ask your webhost about the image problems...the script is used on thousands of sites.

The changes you made are right...are you sure that your server has htaccess? Either way, it's not working...

webgiaguaro / 2007-12-20 18:52:33   

yes it has!
if you need other specific datas regarding access to my site or to my panel ask...
do you think i have to ask to my webhost even about the script problem?
...
:-((((

nooo i want use INDEXHEBIT!!!
i used it in local and it works very well!
aaaaaaaargggggh!

webgiaguaro / 2007-12-20 20:32:42   

IT WORKS!!!
i write to the webhost and they told me that the problem was in the htaccess file:
i had to insert the line "rewrite base"

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.+) home.php

like this.
i go on!
bye and thanks again

Vaska A / 2007-12-21 00:35:31   

And that fixed the problem with the uploading of images too?

Hope so...

webgiaguaro / 2007-12-21 10:09:20   

yes it fixed all.
the problem was that they don't want users change che chmod of the folders.
they prefere scripts that search for real permissions and not for the chmod setting.
this for "security reason".
so, your script is good and works even without setting 777 chmod.

thank you again.
you are making a real good job.
many compliments.

as soon as possible i'll publish my website and i'll add it to the partecipant page
bye

This thread has been closed, thank you.