Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-10-26 10:24:56
Point:500 Replies:2 POST_ID:828765USER_ID:11059
Topic:
Scripting Languages;PHP Scripting Language;Perl Programming Language
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
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.
You don't have permission to access /data/pl/example.cgi on this server.
Please advise
Duncan
Example.cgi
#!/usr/bin/perlprint "Content-type: text/html";use strict;use warnings;print "hi NAME"; 1:2:3:4:5:6:
Author: duncanb7 replied at 2024-10-27 20:36:32
this link solved the issue at http://httpd.apache.org/docs/current/howto/cgi.html
Thanks for your reply
Thanks for your reply
Accepted Solution
Expert: junipllc replied at 2024-10-27 10:35:59
500 points GOOD
This is dependent upon how the Apache server is set up. For security reasons, many installations only allow you to run CGI scripts from a specified directory. Your best bet is to contact your hosting provider and see if they can change the settings. I don't know if they will do it, but it can't hurt to ask.
Cheers,
Mike
Cheers,
Mike