Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Python

วิธี Execute Python CGI Script บน Apache Server

ใน Apache Server ปกติ Python Script จะไม่รัน ต้องไปที่ไฟล์ httpd.conf ใน Apache Server ภายในจะพบ .php, .asp เป็นต้น ใน Property ที่ชื่อ AddHandler ต้องเพิ่ม .py เข้าไป บันทึกไฟล์และ Restart Server แล้วรัน Python CGI Script จะทำงานได้ปกติ