Re: [users@httpd] Permission to enable CGI Scripts to do an I/O on the file system

2017-08-11 Thread Marat Khalili
> So, there's no way of creating a log file in the default directory or some > special directory ? Apache usually logs stderr of CGI scripts to its error log, you can use this. If you give any file or directory the permissions you observe on your /tmp file (something like writeable by group www

Re: [users@httpd] Permission to enable CGI Scripts to do an I/O on the file system

2017-08-11 Thread Kiorp Pilu
Hello Marat, Thanks for the comment. Yes, I am in the linux environment on a cluster. Tested your idea. 1. The script works, but no output file is written on the cluster i.e. earlier I can't see anything in the console of my browser, now I see that the script executes successfully read off from t

Re: [users@httpd] Permission to enable CGI Scripts to do an I/O on the file system

2017-08-10 Thread Marat Khalili
You didn't specify system, so I assume it's a standard Linux installation. CGI scripts by default run with permissions of the web server, which are intentionally limited. However, you can create new files and directories in /tmp, possibly using tempfile module. If you want more than just a temp

[users@httpd] Permission to enable CGI Scripts to do an I/O on the file system

2017-08-10 Thread Kiorp Pilu
Hello, I have written a python script that will spit out a log file. This python script will be executed as a CGI script. I am able to run the python program, but not able to make it write to an output file. How can I enable Apache web server to do so ? Thanks, Dann