Apache run python script

Install python and run python scripts with apache on your CentOS WebPanel server. Install python yum install python Check python version python -V Create a test script cd /home/USERNAME/public_html mkdir cgi-bin nano cgi-bin/test.py Now add the following python test script in the file: /home/USERNAME/public_html/cgi-bin/test.py #!/usr/bin/python # enable debugging import cgitb cgitb.enable() print “Content-Type: text/plain\r\n\r\n” print […]

Read More