cancel
Showing results for 
Search instead for 
Did you mean: 

Tearing my hair out!

N/A

Tearing my hair out!

I'm trying to use ThumbEasy (v2) on my website which is a PHP script.
The script requires that the images I want thumbs of, are in a directory inside the script directory.

E.g. If my thumbeasy script lives in /cgi-bin/scripts then the pics must be in /cgi-bin/scripts/pics.

That's all fine, but when I try to get the thumbs, it doesn't work - it acts as if it can't find the files.

If I try to access the files directly through the URL that the script would use to look for the files I get the following :

CCGI Error: Script Execution Failed

Which is what I'd expect as what I'm looking at is a .jpg file!

So, my question is - why can't I seemingly place NON-CGI files under the /cgi-bin directory and have it just look at them as if they weren't CGI? Do I have to do something silly to make this work?

I can't place the image files on my http://www.username.force9.co.uk space as the script can't get the images unless it's on the same filesystem.

I really don't know what else to do with this, I've tried using symlinks and that just doesn't work, I can't execute CGI on my normal F9 space so I've had to throw it all on the CGI server (all CGI-reliant content).

I know this may all seem like a stupid question but I'm at my wits' end.
7 REPLIES
Community Veteran
Posts: 4,729
Registered: 04-04-2007

Tearing my hair out!

If it’s a PHP script it must not be in the `cgi-bin` directory, move it out and use `fixphpperms.sh` to set the permissions.

http://www.f9.net.uk/support/webspace/cgi/cgi_guide_new.shtml#9

Chilly
N/A

Tearing my hair out!

Cheers for that, made my day! Smiley
N/A

Tearing my hair out!

Now I've got my site all working except for one thing.
I'm using a Perl script called CGIProxy (v2.0.1), when I reference it directly I get an 'Internal Server error' (500), the script itself is a copy of one I've had on another webserver and this works fine.

The reason for CGIProxy is because I want to offer certain users the ability to surf anonymously from the site. It worked on my old server (one I was using previously) but it complains on the F9 CCGI server.

Does anyone have an alternative to CGIProxy that works on F9 or do I need to change the script myself to make it work or has anyone any suggestions I could try?

http://www.jmarshall.com/tools/cgiproxy/ (Am using version 2.0.1)

Cheers.
Community Veteran
Posts: 4,729
Registered: 04-04-2007

Tearing my hair out!

Could I suggest that’s not the best usage of shared hosting facilities.
And not an activity Force9 would encourage on their servers.

Chilly
N/A

Tearing my hair out!

Fair comment, I'd rather not give up on it as it makes my working day easier (as I work at a school, the internet is heavily filtered and sometimes legit stuff like 'download.microsoft.com' is filtered yet the people who control the filtering won't release it, even though I'm part of the IT Dept and *need* to download patches from time to time), however if it's really a no-no then I'll happily delete the files and will have to find some other way to achieve the same objective.
Community Veteran
Posts: 4,729
Registered: 04-04-2007

Tearing my hair out!

Try google’s translation tools.

http://www.google.co.uk/language_tools?hl=en

Its great fun to as it make a mess of the text.

Chilly
N/A

Re: Tearing my hair out!

Quote
I'm trying to use ThumbEasy (v2) on my website which is a PHP script.
The script requires that the images I want thumbs of, are in a directory inside the script directory.

E.g. If my thumbeasy script lives in /cgi-bin/scripts then the pics must be in /cgi-bin/scripts/pics.

That's all fine, but when I try to get the thumbs, it doesn't work - it acts as if it can't find the files.

If I try to access the files directly through the URL that the script would use to look for the files I get the following :

CCGI Error: Script Execution Failed

Which is what I'd expect as what I'm looking at is a .jpg file!

So, my question is - why can't I seemingly place NON-CGI files under the /cgi-bin directory and have it just look at them as if they weren't CGI? Do I have to do something silly to make this work?

I can't place the image files on my http://www.username.force9.co.uk space as the script can't get the images unless it's on the same filesystem.

I really don't know what else to do with this, I've tried using symlinks and that just doesn't work, I can't execute CGI on my normal F9 space so I've had to throw it all on the CGI server (all CGI-reliant content).

I know this may all seem like a stupid question but I'm at my wits' end.

:arrow: :arrow: :arrow:
If you want a fully customizable photo album powered by a single php file within a dir full of jpg files AND with auto thumbnail creation, then use this one Download Zip or check out my Demo
:arrow: :arrow: :arrow:
[/url]