Web Hosting Talk







View Full Version : Can`t chmod. Is it Front Page?


Vikingboy69
03-05-2001, 06:29 PM
Hello

I got a RAQ3 some days ago and the set up worked fine. I installed Newspro and it was installed without any problems.

The problem started when I enabled the front-page extension. When running the newspro cgi-file I get this message: "CGIWrap Error: Execution of this script not permitted". I connected with the FTP and to see what was wrong and all the directories had _vti_cnf directories (Front Page?). I tried to chmod the newspro-files but get the error message "operation not permitted". I then disabled the Front Page extension (site settings) but the _vti_cnf directories are still there (can`t be deleted) and I still can`t chmod.

I`m a newbie to this, so if you have any ideas what I must do to get the cgi and chmod working again, please take it slow.

Thanks
Carsten

grizz
03-05-2001, 07:41 PM
try running the script in your browser using the following command:

http://www.domain.com/cgiwrapDir/cgiwrapd/script_dir/script.cgi

replace domain.com with your domain
replace script_dir with the diectory(ies) to the script
replace script.cgi with the script name


This will tell you where the problem is occuring.

Also, are you trying to chmod and delete directories as the site admin or the server admin. Try doing either of these with FP Ext turned off and log in via ftp as the site admin.

hope that helps.

grizz

Vikingboy69
03-05-2001, 08:16 PM
The FP Ext. is turned of and I am logging is as both Admin and Site Admin. All of the directories have drwxrwxr-x extensions and I can`t do anything because I do not have "permission". This is probably the reason why the cgi-script is not working. What can I do?

I will from now on NEVER touch a Front Page product!

Carsten

Cael
03-05-2001, 09:04 PM
Front page cause a lot of trouble... It is sucks... for me...

But for a newbie, it rocks...

grizz
03-06-2001, 02:50 AM
i've had this happen a couple time on the raq3. Try going into the control panel as the server admin, edit the site admin of the site your having problems with and change the password, save the changes then change it back and save again.

Then give it a try through ftp.

If that doesn't work for you, if you have a local back up of the site, delete the virtual site and recreate it, you shouldn't have to hassle with the dns entries as they should still be there.

hope that works for ya.

grizz

Vikingboy69
03-06-2001, 03:54 PM
Thanks for the feedback grizz, but the server still rejects the commands. The problem is that I can`t delete the virtual server, since this is the server (primary account) and it can`t be deleted

If I FTP the account I can`t delete all the files since I am not allowed (no permission) to delete the _vti_cnf directories (and its` files). I get the 550 error message both when I try to delete the files and chmod them.

Ideas?

Thanks
Carsten

SI-Chris
03-08-2001, 12:54 AM
Try using telnet to log onto the box, then type su to switch to super user (and enter your password again), then switch to the folder containing the script (cd /home/sites/www.yoursite.com/web), then issue the chmod command (chmod 755 yourfile.cgi).

HotChilli
03-08-2001, 09:25 AM
You should be able to delete the user for the main account and then re-create the user, making the user a siteadmin also.

Then it should make everything like it was before.

HotChilli

Vikingboy69
03-08-2001, 01:16 PM
Thanks for the feedback. The restirction may be located in the httpd file. I tried to execute one of the cgi-files and got this message: "CGIWrap Error: Execution of this script not permitted. Execution of (httpd) is not permitted for the following reason: User not Privlidged".

what should the httpd look like?

HotChilli
03-08-2001, 02:43 PM
Try this:

log in via telnet and then type su, then your password.

Then change to the directory that your cgi-script is in.

ie. (cd /home/sites/yoursite/cgibin)

Then issue the command chown (cgifile) (username)

cgifile should be the name of the cgi script (ie. blah.cgi)
username should be your username (preferably the siteadmin)

Good luck.

HotChilli
03-08-2001, 02:44 PM
By the way..

I had this problem on my Raq - I can't remember exactly how I solved it, but I definately didnt edit any files!