Running Python

  • | 2856 points

    Hi. I've just "upgraded" to Laragon Lite from XAMPP and I'm really enjoying the experience.

    I have installed Python using Tools > Quick Add but when I try to visit a Python page in the browser it just displays the code.

    Looking at the httpd.conf file there is no AddHandler directive. Do I need to add one? Something like

    AddHandler cgi-script .cgi .py ?


  • | 2856 points

    Yey! I have fixed it.

    I had to edit the httpd.conf file, uncommenting the AddHandler line and adding .py to the list of allowed extensions.

    I'm not sure if I need .cgi but I'm leaving that.

    (How do I mark this as solved?)

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.