Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Perl in CGI

by monoxide (Beadle)
on Oct 28, 2004 at 12:19 UTC ( #403364=note: print w/replies, xml ) Need Help??


in reply to Perl in CGI

Thanks guys, it was the permissions. Stupid me... Oh well i'm new to perl and it didnt even occur to me. I have used mainly php in the past and that doesn't require permissions.

Replies are listed 'Best First'.
Re^2: Perl in CGI
by gellyfish (Monsignor) on Oct 28, 2004 at 12:45 UTC

    Er, yes it does, just not the executable permission:

    [jonathan@orpheus html]$ GET http://localhost/index.php <html> <body>Test</body></html> [jonathan@orpheus html]$ chmod 600 index.php [jonathan@orpheus html]$ GET http://localhost/index.php <br /> <b>Warning</b>: Unknown(/var/www/html/index.php): failed to open stre +am: Permission denied in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Warning</b>: (null)(): Failed opening '/var/www/html/index.php' fo +r inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in <b>U +nknown</b> on line <b>0</b><br />
    Eugh.

    /J\

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2021-03-03 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (88 votes). Check out past polls.

    Notices?