SJ,
Assuming there is no errors in it, you would need to install it in a
directory with Execute premissions from the web server. (put it in your
personal cgi-bin directory ($HOME/cgi-bin) make sure apache has directive to
execute programs from this directory, if you don't have one, put it in the
system cgi-bin directory (/usr/local/httpd/cgi-bin) .
Then you need to change the line that says
$directory = '/usr/local/httpd/cgi-bin';
to a world write able directory (chmod 777) or a directory where user
'nobody' (I think user 'www' on SuSE systems) owns, (probably want to chown
to nobody and give the permissions 700). Do NOT put the cgi-bin directory
as world writeable or owned by user 'nobody' this just looks like a security
hole "waiting to happen", I don't know why the author of the script
"suggested" this $directory to cgi-bin, but I personally would NOT use that
directory to write out log files, sounds like bad news to me.
I personaly would do something like this
% cd ~
% /bin/su
# mkdir .logs
# chown nobody .logs (chmod www .logs (for SuSE IIRC it uses www instead of
nobody, what ever user your web
server runs as, make sure that user owns this directory))
# chmod 700 .logs
# exit
Then you need to set the system execute premisson
# /bin/su
# chmod 755 /usr/local/httpd/cgi-bin/script_name.pl
# exit
After that, try testing it out in your web browser by going to (this assumes
your httpd is running)
http://localhost/cgi-bin/script_name.pl
If it doesn't work it (or apache) will throw an error saying why it didn't
work, also it will throw an error to /usr/local/httpd/logs/error_log, check
that also for more information.
If it did work, you will put want to throw it in maybe a SSI (Server Side
Include) execute command for a .shtml file, so it print out on the bottom of
your web page.
You might want to contact the author of the script and ask him why he is
"suggesting" in his script that it should have write permission to the
cgi-bin directory, I am unclear on this and it appears to be opening up a
whole world of security risks that need not be there.
Jack
----- Original Message -----
From: SJ Black
Hiyas, All -
Here is a script i was given to run a roman numeral webpage counter. I'm not a perl-er, so i don't know if it *should* be able to work in its current state, and if so, i'd so love to be able to make it do so.
I'm clueless about things CGI-ish, obviously. Could someone please help me figure this out?
With many thanks,
Alpha
---------------------------------------------------------------------------- ----
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/