duncanb7
asked on
Set permission right to run all linux directory for all CGI/perl file
Dear Experts,
I would like to set permission right to all linux directory for executing all
CGI/perl file such as example.cgi . Why my all php script I can run it at
all directory ? That must be set for permission by my hosting system adminstrator
in httpd.conf file, Right ?
Now how to do the same for perl script file as php script which is able to run at
all my linux directory ?
Now I'm just able to run cgi/perl file at my public_html /cgi-bin/ only, Why ?
The issue is not related to chmod 755 that can not solve it since I tried it before and not
working.
Is it related to httpd.conf or alias setting ? please advise
Now if I run cig/perl script at other than /cgi-bin directory it will report error
such as follows
Please advise
Duncan
Example.cgi
I would like to set permission right to all linux directory for executing all
CGI/perl file such as example.cgi . Why my all php script I can run it at
all directory ? That must be set for permission by my hosting system adminstrator
in httpd.conf file, Right ?
Now how to do the same for perl script file as php script which is able to run at
all my linux directory ?
Now I'm just able to run cgi/perl file at my public_html /cgi-bin/ only, Why ?
The issue is not related to chmod 755 that can not solve it since I tried it before and not
working.
Is it related to httpd.conf or alias setting ? please advise
Now if I run cig/perl script at other than /cgi-bin directory it will report error
such as follows
Forbidden
You don't have permission to access /data/pl/example.cgi on this server.
Please advise
Duncan
Example.cgi
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
use strict;
use warnings;
print "hi NAME\n";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your reply