PDA

View Full Version : CGI-BIN errors with new host ?


anthony_kudzin
20-Aug-2007, 01:51 AM
I am using V8.5.1 Business, and under my old Host, had no problems. They are no longer in business, so I have switched to "prontohosts", who seem very fast and efficient, and the account setup looks fine to me. I can ftp to it no problems and move files in/out, All the control panel settings look fine too.

I've been trying to upload my site to the new host and get CGI-BIN path error messages all the time. Here is my setting file.

The message says the path to cgi-bin or the url to the cgi-bin is not correct and to restart the setup wizard....which I've dome a few time now to no avail ?

any help appreciated

HTTPPROXYMODE 0
HTTPPROXYADDRESS
HTTPPROXYPORT 80
HTTPPROXYUSER
HTTPPROXYPASSWORD
FTPPROXYMODE 1
FTPPROXYADDRESS
FTPPROXYPORT 21
FTPPROXYUSER
FTPPROXYPASSWORD
SCRIPTID 2
SCRIPTEXT .pl
SMTPHOST mail.liassis.com
WEBSITEURL www.liassis.com
IGNOREPASSIVEERRORS true
USERELATIVECGIURLS false
PATHTOPERL /usr/bin/perl
USEENHANCEFTP false
FTPCLIENTTIMEOUT 15000
FTPRETRYDELAY 3000
FTPSILENT false
FTPMAXRETRIES 3
FTPCONNECTTIMEOUT 25000
SMTPAUTHREQUIRED true
SMTPUSERNAME sales@liassis.com
SMTPPASSWORD xxxxxx
CATALOGURL http://www.liassis.com/acatalog/
CGIBINURL http://www.liassis.com/cgi-bin/
PATHFROMCGITOCATALOG ../acatalog/
CODEBASE ./
FTPHOST www.liassis.com
FTPUSERNAME xxxxxxxx
FTPPASSWORD xxxxxxxx
PATHTOCGIBIN /public_html/cgi-bin/
USEPASSIVEFTP false
FTPPATHFROMCGITOCATALOG

jont
20-Aug-2007, 06:37 AM
With new hosts it is always worth checking there is an actual cgi-bin folder on the website and at the level you need - even though cgi-bin may be enabled this may not be at the location needed .. FTP to the server and check the folder is there.. if not simply create one and ensure permissions are set to 755

pinbrook
20-Aug-2007, 10:47 AM
Jont is correct, since you have no index file I can see the directory structure. you've got

[DIR] _private/ 19-Aug-2007 11:30 -
[DIR] acatalog/ 19-Aug-2007 21:16 -
[DIR] acatalog_xxx/ 19-Aug-2007 21:02 -
[DIR] bin/ 19-Aug-2007 21:18 -
[DIR] cgi-bin_xxx/ 19-Aug-2007 20:55 -
[DIR] images/ 19-Aug-2007 11:30 -

lockdecoders
20-Aug-2007, 05:51 PM
i am having the same problems. i have a new linux server using sw plesk 8.1 and i cannot upload cgi. i keep getting this fault as in attached file. have spoken to both actinic help and my server supplier and i still have a problem. i am not a proffesional website builder.

jont
20-Aug-2007, 06:20 PM
Peter - may be worth posting your network setting (less the username & password) as the OP ... that error is typically down to either the cgi-bin not being found or an incorrect path. If you post your host hopefully someone else will be using and point you in the right direction.

pinbrook
20-Aug-2007, 08:32 PM
please remove your password from the community, no-one needs to see it.

when you go to network settings, notice there is an export button, use it...

export to txt and copy/paste the settings into a new thread, telling us who the host is, also remove password from the txt file before pasting.

Pls start a new thread, as you are preventing the OP from getting a reply to their question

lockdecoders
20-Aug-2007, 09:06 PM
sorry have started a new thread.

anthony_kudzin
21-Aug-2007, 01:57 PM
Pinbrook / Jont , thanks for the reply.

I initially re-uploaded all my data from my PC site to my new Host. I was hoping this would re-establish the directories, permissions and everything else. I then tested the network settings and started getting cgi-bin not found messages. I disable all firewalls as well.

I then renamed out (adding 'xxx') the directories and tried to set up / test the settings using the Network wizard only. This too kept giving me cgi-bin errors. The network would identify the path to the cgi-bin and then in the next test would fail it ?

After getting nowhere with this I thought there may be a problem with the permissions or name, so I created a new folder, just called 'bin' (755) to keep it simple. This too keept failing on the scripts part of the Network wizard.

By this time (1am...and 2 hours after I started) I copied the scripts over manually, thinking the wizard would find them and pass the test and move on, but it wouldn't budge.

I think there was also a problem on the 'path to perl'. According to the Host cpanel, this is /usr/bin/perl, which is your default as well. so i may be facing that problem next, after resolving this.

I then contacted the host, who responded immediately (2am now !) that everything looked good on the account from his side and to contact Actinic.

Are there any pre-determined steps to relaunching your site on a new host ? Maybe I'm not doing things in the right sequence.

I've attached a listing of my directory structure, and will try to re-establish all the settings when I get home this evening and upload the site again.

Does the host need to do anything on their side e.g. allow scripts to be run / enable perl etc. ? I recall it was pretty easy to set up the site last time, so I didn't anticipate these problems.


Thanks

pinbrook
21-Aug-2007, 03:32 PM
Use the wizard and tell it


CATALOGURL http://www.liassis.com/acatalog/
CGIBINURL http://www.liassis.com/cgi-bin/

let it work out the rest, but make sure permissions are correct first

755 cgi
777 acatalog

anthony_kudzin
21-Aug-2007, 10:21 PM
Hi, I've tried as you suggested. This seems very strange to me. I can open the acatalog directory via the url, but when I change the url to the cgi-bin I get the following

Forbidden
You don't have permission to access /cgi-bin/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

It's as though something is blocking all directories with "cgi-bin" in ?

There must be a set-up error on my host account. I'll go back to them again.

pinbrook
21-Aug-2007, 11:33 PM
Forbidden
You don't have permission to access /cgi-bin/ on this server. thats correct, a cgi-bin is normally forbidden to access.

anthony_kudzin
22-Aug-2007, 10:33 AM
Hello,

My host site support assures me everything is set up fine on the account. I still cannot set up my network via the wizard, it still keeps failing around the CGI scripts part of the process, but seems to find the CGI-BIN and Root directories. I have the catalog set to 777 and the cgi-bin to 755.

Is there another way around this, I've spent hours on it !

Can i generate and upload scripts manually and somehow move on from there. If there anything I can send from Actinic e.g. log files that my help the host trace the problem.

I have also seen reference to certain scripts being banned, could that be related ?

this is very frustrating !


I forgot to mention that I see that there are some scripts in the cgi-bin folder, put there automatically as part of some system setup process. which would indicate the path and directory permissions are OK.

Why would you then get CGI script error messages.

There was also a reference to a POST string to scripts being on - could somebody explain what that means please.

wjcampbe
22-Aug-2007, 11:08 AM
Using the same ftp programme you checked the folders with, can you check the individual file permissions within the cgi-bin folder. These should also be 755).

[hopefully with your ftp programme you can select multiple files and check them all at one time]

anthony_kudzin
22-Aug-2007, 04:18 PM
Hello Bill, the directory is 755, some files are 755 and some are 644.

Is there something in these script files that relate to my old host id perhaps ?

Can I delete them all , upload and Actinic recreates them ?

Are there any settings on the Host side around running scripts ?

RuralWeb
22-Aug-2007, 07:58 PM
Is there another way around this, I've spent hours on it Move to a host that is knon to support actinic - setting up actinic with a host should take no more than 10 minutes IMO. Do a search on the forum and you will find enough info to pick one

pinbrook
23-Aug-2007, 10:12 AM
the directory is 755, some files are 755 and some are 644.
all actinic pl files in the cgi-bin must be 755, do your upload, correctthe permissions - job done

once the permissions are changed they should retain the correct perms

wjcampbe
23-Aug-2007, 03:54 PM
Thanks Jo :)

I am having connection problems at the moment - not avoiding my responsibilities - hope to resume normal service soon.

anthony_kudzin
28-Aug-2007, 10:47 PM
Hi,

I can FTP and see the CGI-BIN directory, but still get the following error when trying to setup the site settings on my new host. Any ideas what it might be ?

I can also see a test .pl file being loaded when running the wizard. surely if there were page not found errors it would not be able to write to the cgi-bin directory ?

I have also attached my exported file settings incase somebody can see anything...

wjcampbe
29-Aug-2007, 05:19 AM
What are the permission settings on the folder? and the individual files?

All should be 755 or rwxr-xr-x

NVL
29-Aug-2007, 04:48 PM
I just upgraded our server to Centos5 and took us up to PHP5 whilst at it, we are having similar problems...

The site uploads, if we try to use the cgi-bin (normal location) the site has HTTP errors, if we create a folder in the public files under httpdocs/ called cgi for example the site will pass the "test" in advanced network settings but will hang at upload with a merge error.

The scripts are not executing for Actinic however a test script with the extension .pl runs fine.

Ideas anyone? :confused:

anthony_kudzin
29-Aug-2007, 06:11 PM
Hi bill,

files are 755 for cgi-bin. Its more fundamental. It must be the way the host has their systems setup and/or use of IIS etc. I see on the Actinic FAQ site that there are many different configuration settings for different hosts. Support told me to mail them the mail2hst.txt file to review. I expect I'll have to change to another host !

vts
30-Aug-2007, 12:24 PM
i am still getting below errors ...


The directory specified as the path from the CGI-BIN to the acatalog directory does not exist on the web server. Check the path. Also see the on-line help for "Path from FTP server to Catalog".

The script does not have permission to write to the web site directory

CGI-BIN Working Directory: "D:/Swsoft/vhost/mydomainname.co.uk/cgi-bin"


my network config export settings
===========================================
HTTPPROXYMODE 0
HTTPPROXYADDRESS
HTTPPROXYPORT 80
HTTPPROXYUSER
HTTPPROXYPASSWORD
FTPPROXYMODE 0
FTPPROXYADDRESS
FTPPROXYPORT 21
FTPPROXYUSER
FTPPROXYPASSWORD
SCRIPTID 1
SCRIPTEXT .pl
SMTPHOST smtp.mydomainname.com
WEBSITEURL http://www.mydomainname.co.uk
IGNOREPASSIVEERRORS true
USERELATIVECGIURLS true
PATHTOPERL cerl\n
CATALOGURL http://www.mydomainname.co.uk/acatalog/
CGIBINURL http://www.mydomainname.co.uk/cgi-bin/
PATHFROMCGITOCATALOG ../acatalog/
CODEBASE ./
FTPHOST zzzzz.co.uk
FTPUSERNAME user
FTPPASSWORD passwd
PATHTOCGIBIN /httpdocs/cgi-bin/
USEPASSIVEFTP true
FTPPATHFROMCGITOCATALOG

===========================================


My server is windows plesk .. any help will be appreciated ..thanks

Toby B
04-Sep-2007, 12:26 PM
Hi Steve,

Here are some settings for our Plesk server. It might be worth adapting them with your settings. Though I'm not sure if every Plesk server has the same directory structure…

HTTPPROXYMODE 0
HTTPPROXYADDRESS
HTTPPROXYPORT 80
HTTPPROXYUSER
HTTPPROXYPASSWORD
FTPPROXYMODE 0
FTPPROXYADDRESS
FTPPROXYPORT 21
FTPPROXYUSER
FTPPROXYPASSWORD
SCRIPTID 1
SCRIPTEXT .pl
SMTPHOST localhost
WEBSITEURL http://www.domain.com/
IGNOREPASSIVEERRORS true
USERELATIVECGIURLS false
PATHTOPERL /usr/bin/perl
USEENHANCEFTP true
FTPCLIENTTIMEOUT 15000
FTPRETRYDELAY 3000
FTPSILENT false
FTPMAXRETRIES 3
FTPCONNECTTIMEOUT 25000
SMTPAUTHREQUIRED false
SMTPUSERNAME
SMTPPASSWORD
CATALOGURL http://www.domain.com/acatalog/
CGIBINURL http://www.domain.com/cgi-bin/
PATHFROMCGITOCATALOG ../httpdocs/acatalog/
CODEBASE ./
FTPHOST
FTPUSERNAME
FTPPASSWORD
PATHTOCGIBIN /cgi-bin/
USEPASSIVEFTP true
FTPPATHFROMCGITOCATALOG /httpdocs/acatalog/

You can copy and paste this in a text file and import it.

If this fails support will need your FTP details so we can examine the server.

http://www.actinic.co.uk/support/register.htm

Cheapprices4u
24-Sep-2007, 07:51 AM
can i just add i recently got some new hosting
already have one account with them workign fine

if i change permissions in my ftp programme it sometimes misbehaves
if i go in to file amanger on the siteadmin/cpanel and change them it seems to sort itself out

hope it gives you some help

G

Paul Bulpit
07-Dec-2007, 04:30 PM
What are the permission settings on the folder? and the individual files?

All should be 755 or rwxrw-rw-

Quick question before I have to bother you with my current problems:

I don't understand the 755/777 business but mine are all set to rwxr-xr-x - which is correct?

Thanks, Paul

Duncan Rounding
07-Dec-2007, 04:34 PM
These attatchments should help.

I would expect it to be rwx-rx-rx which is 755 for cgi-bin and acatalog
Sometimes acatalog is set to 777 which is: rwx-rwx-rwx

What I think you have for rwxr-xr-x is 761 (or even 4751)


User: has the first three binary bits (400 - Read, 200 - Write, 100 - Execute)
Group: has the second three binary bits (40 - Read, 20 - Write, 10 - Execute)
Others: has the third three binary bits (4 - Read, 2 - Write, 1 - Execute)

You just ad them up.

There are also another three bits (which form 4000, 2000 & 1000).
User: Set UID - 4000
Group: Set GID - 2000
Others: Sticky - 1000

again just add them on.

Paul Bulpit
07-Dec-2007, 04:43 PM
Thanks Duncan, I had the gist of it - but the point is, Bill's post further up says:

rwx rw- rw-

whereas my unaltered files, and your second attachment, both say:

rwx r-x r-x

So which is correct, (you and I) or (Bill)?

I am not in a position to say that Bill's post is erroneous, I need you to say that as you have known him longer!

Duncan Rounding
07-Dec-2007, 04:50 PM
I think Bill maybe wrong in this case (very rare). What Bill says would be 766. I don't think there would be any reason for the Group or Others to be able to write - but they would need to Execute.

Gets confusing doesn't it with all these rs and ws, bits and numbers.

Paul Bulpit
07-Dec-2007, 05:02 PM
I would expect it to be rwx-rx-rx which is 755 for cgi-bin and acatalog.

755 is the recommendation I was trying to achieve (except rwx-rx-rx adds up to 7 3 3!)

Edit: Oh, I see now, you meant rwx - r(-)x - r(-)x, sorry!



Thanks a lot, get there in the end!