[resolved] You don't have permission to access /cgi-bin/... |
|
Hello,
I have just installed the nusphere in my local machine. I have cgi script which i wanted to execute in my local machine. I have kept wooden dir in nscgi-bin foler. When I am trying to exeute the wooden dir files.. i get You don't have permission to access /cgi-bin/wooden on this server. How do i solve this problem. since i am executing files on local machine how do i set permission locally. 1) In the release not i found the following content about Nusphere 2) i have installed nusphere in my local computer and using the same for development. 3) my cgi code is in source form.. here is example use CGI::Carp qw(fatalsToBrowser); $test = $ENV{'HTTP_USER_AGENT'}; $test =~ s/\"//g; $test =~ s/\)//g; $test =~ s/\(//g; $test =~ s/\;//g; $test =~ s/\'//g; $test =~ s/\///g; $test =~ s/ //g; $test =~ s/\.//g; It's not showing even .html page in dir, if i tried instead of .p or .cgi CD Contents =========== The NuSphere Technology Platform installation CD contains the following components: - Apache 1.3.29 with mod_perl and mod_ssl - PHP 4.3.4 - Perl 5.8.0 - CVS 1.11.6 - Sendmail (NusphereMail) - Administration Web Site - phpPgAdmin 3.1 UltraSQL/PostgreSQL Data Dictionary - phpMyAdmin 2.5.4 MySQL Data Dictionary - Sample Applications - Professional Applications install files - Portal and Search Engine install files - WEBMIN 0.93 (UNIX only) Please help. Please. Best Regards. Laxman Kande ---------------- laxman@aims-tech.com |
||||||||||||
|
Site Admin
|
below is a sample script hellocgi.pl that should work:
Code below (cgisamp.pl) shows how to use CGI module:
|
||||||||||||||||
|
Site Admin
|
regarding access rights, take a look at cgi-bin configuration settings to see
if they are somewhat like this:
|
||||||||||||||
|
|
yes. This the same thing i have in httpd.conf
|
||||||||||||
|
Site Admin
|
what happens if you run your script from a console (command prompt) ?
|
||||||||||||
|
|
it prints content of the file
|
||||||||||||
|
Site Admin
|
run perl yourscriptfilename
and let me know what it showed in the console |
||||||||||||
|
|
I done c:\myperlfiles>perl hello.pl
it shows content of the file <html> etc |
||||||||||||
|
Site Admin
|
Well...
actually it is the result of running perl script, not the content. Content as you stated before starts with #!perl. what happens if you put hello.pl into cgi-bin directory and run it using apache ? like below http://localhost/cgi-bin/hello.pl |
||||||||||||
|
|
Latest version works, thanks.
|
||||||||||||
|
[resolved] You don't have permission to access /cgi-bin/... |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by