Page 1 of 1

Install problem (permission issue - answered)

Posted: Tue Jul 28, 2009 5:56 pm
by moremore5
everytime i try to install in putty with ./rinstall
i got a error

TradeExpert.net installer

Please input your
domain.com: mydomain.to
licence key: some_license_key

New installation / Reinstalation
System: Linux
Release: 2.6.18-92.el5
Version: #1 SMP Tue Jun 10 18:49:47 EDT 2008
Machine: i686
User ID: 502
Group ID: 503
Ping path: /bin/ping
Tar path: /bin/tar
Sendmail path: /usr/sbin/sendmail
Current directory: /home/mydomain/domains/mydomain.to/public_html/cgi-bin/te
TE directory: te/
CGI-BIN directory: cgi-bin/
Fetching location: http://mydomain.to/cgi-bin/te/te-chk.cgi
Redirection URL: http://www.mydomain.to/cgi-bin/te/te-chk.cgi
Fetching location: http://www.mydomain.to/cgi-bin/te/te-chk.cgi
Error[500]: Cannot access "http://www.mydomain.to/cgi-bin/te/te-chk.cgi"

do you know why this happens? i have Crontab, SSH login, CGI Access & GD enabled.

Re: install problem

Posted: Thu Jul 30, 2009 10:10 am
by texpert
Hard to say what the problem is without taking a look, but it sounds like a permission issue. Create a "test.cgi" file in perl for example and upload it to: /cgi-bin/te/test.cgi

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Test cgi\n";

Next, try to access it through the web yourdomain.com/cgi-bin/te/test.cgi
Probably test.cgi won't work and at that point contact your admin and show him test.cgi

regards,
Jim

Re: install problem

Posted: Sun Aug 02, 2009 8:12 am
by moremore5
i have send you pm with my login data. your testfile works in browser.
but i could not solve the problem, seems that cgi-bin works fine.

Re: install problem

Posted: Mon Aug 03, 2009 2:49 pm
by texpert
Well, you have created test.cgi in /cgi-bin/test.cgi ,i told u to create it under "cgi-bin/te/test.cgi". If you would, you would probably notice that the problem is in the permissions set on the "te" directory. Your "cgi-bin/te" directory is owned by root. You should never install any scripts under the root user. In the private message you've sent me the correct user, but since "te" dir is owned by root, i don't have permissions to do anything. I suggest you to remove cgi-bin/te/ as root and when you're done, login as that user you've sent to me in the private message and follow the installation procedure again.

Let me know how it goes ;)