Apache run python script

Install python & python3 and run python scripts with apache on your CentOS WebPanel server. Install python yum install python Install python3 yum install python3 Check python version python -V Check python3 version python3 -V Create a test script cd /home/USERNAME/public_html mkdir cgi-bin nano cgi-bin/test.py Python2 test script in the file: /home/USERNAME/public_html/cgi-bin/test.py #!/usr/bin/python # enable […]

Read More