Wells-it.com - Web Hosting

cgi help

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 323 posts

Joined: Feb 2005

I am trying to move one of my sites to my newly purchased server, but the problem is that the cgi wont work. I have updated the nameservers and uploaded all the files but the cgi is not working. am i missing something. Yes cgi is installed.

Help.

Mark Hensler's picture

He has: 4,044 posts

Joined: Aug 2000

Is the path to perl the same (first line of the cgi files, usually like: #!/usr/bin/perl)?
Do the cgi files have execute permission (rwxr-xr-x)?

Mark Hensler ["Max Albert"] [Email]
If there is no answer on Google, then there is no question.

They have: 323 posts

Joined: Feb 2005

oh yes, to give them execute permission do i change the files to 777?

They have: 323 posts

Joined: Feb 2005

I have found out that cgi files need to be chmod to 755, but what do the directories need to be chmod to? I am having trouble and need some help.

CptAwesome's picture
Sponsor

He has: 370 posts

Joined: Dec 2004

directories depends on the server's user/group permissions. if Apache and FTP have the same permissions, 700 will work, if they are in the same group 770 will, and if neither 777. Files which need to be edited need to be chmoded to 600/660/666 (again, depending on owner/group.)

<? echo implode('',explode('|','A|W|E|S|O|M|E')); ?>

http://www.free-online-web-tools.com