in reply to Re^2: system call in cgi/perl script on linux
in thread system call in cgi/perl script on linux
ps -ef | grep httpd # this will show you the user id of the web server
ls -al /my/path
# httpd group (you can find out from the /etc/password # and /etc/group files chgrp -R httpd /my/path chmod -R g+rx /my/path
su - httpd # set uid to httpd user, assuming that you are the # root user and no password is required # run your cgi script from the command line. # you don't need to use a browser to test the cgi script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: system call in cgi/perl script on linux
by Anonymous Monk on Jun 18, 2004 at 04:24 UTC |