• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

python import and from cause 500 internal server error CGI

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,

Currently my python code has able to be accessed from ubuntu terminal,

but when I call it via CGI / url address it cause 500 internal server error,

here's my code :



this located on : /var/www/html/cgi-enabled/cgi.py

And I also put some test on python with html (test.py):



This would be run if me delete the entire import and from code (for test.py).

This is my CGI settings :


this located on : /etc/apache2/conf-available/cgi-enabled.conf

my python version is : 3.8.2.

And this tutorial where I learnt to setup apache and python : tutorial-apache-python

please someone help me

Thanks
 
gong tji
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

please ignore this thread, I've made mistake,

my actual topic is : python-permission-denied

Sorry for inconvenience

Thanks.
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic