My cgi script cannot write to Api's cgi-bin folder

I am working on a version of the python cgi script that is supposed to create img files (which will be shown on the web page) in the cgi-bin folder.

But this fails: [Wed Oct 28 16:13:51 2009] [error] [client :: 1] OSError: [Errno 13] Permission denied: 'average /'

[Note] 'average /' is the folder that the cgi script is going to create to save these img files.

I tried to provide + x permission for the cgi script, but it still failed. This happens on both Win and Mac.

Btw, I am working with Apache default settings. I did not change anything after installing Apache.

+3
source share
2 answers

- cgi-bin. - nobody, , , , cgi-bin :

chmod a+rwx cgi-bin

(, Windows cgi-bin, .)

. script, , cgi-bin, Apache CGI script . .

, , , cgi-bin ( -, Alias), Apache script htaccess . " 777 , , , -".

+13

average/ cgi.

EDIT: , python script ( Win, Mac) img?

script , /.

, , Python.

0

Source: https://habr.com/ru/post/1721270/


All Articles