Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: CGI script only works if named index.pl

by hippo (Bishop)
on May 27, 2022 at 22:07 UTC ( #11144237=note: print w/replies, xml ) Need Help??


in reply to CGI script only works if named index.pl

Both the index.pl and about.pl have exactly the same owner and file permissions

Do they have exactly the same SELinux contexts?


🦛

  • Comment on Re: CGI script only works if named index.pl

Replies are listed 'Best First'.
Re^2: CGI script only works if named index.pl
by almsdealer (Acolyte) on May 27, 2022 at 23:04 UTC

    Ok, I read up on selinux and file contexts, and I think the about.pl file had the wrong context due to me originally creating it in another folder and copying it into cgi-bin. Thank you, I was absolutely stumped!

Re^2: CGI script only works if named index.pl
by almsdealer (Acolyte) on May 27, 2022 at 22:47 UTC
    total 8 -rwxr-xr-x. 1 root root unconfined_u:object_r:httpd_sys_content_t:s0 + 143 May 27 15:49 about.pl -rwxr-xr-x. 1 root root unconfined_u:object_r:httpd_sys_script_exec_t: +s0 167 May 27 09:12 index.pl

    It doesn't look like it!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144237]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2023-01-27 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?