2 ответа

PetrOrlov
19.05.2019 19:27

make dir -> cd /sitefolder/public_html/testpython/

make file in dir

.htaccess
DirectoryIndex index.py
Options +FollowSymLinks +ExecCGI
# change chmod to 0600

make index.py
# change chmod to rwx------ 700
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# //coding: utf-8
# coding=utf-8
# vim: set fileencoding=utf-8 :

print "Content-Type: text/html\r\n"
print '<h1>test'

PetrOrlov
19.05.2019 19:30

see your /sitefolder/error_log