Pregunta

On a shared Apache server that has mod_fcgid (not mod_wsgi), I'd like to write simple web apps in Python instead of using PHP.

I've done a lot of reading and testing, but no solution worked because of the restrictions of a shared server ("pip: command not found", "[me] is not in the sudoers file", "easy_install [app]: unable to open /usr/local/include/python2.6/pyconfig.h", etc.)

Is mod_fcgid just not the right solution to write Python apps on a shared server so am losing my time and should just move to a hoster that supports Python from the start?

Thank you.

¿Fue útil?

Solución

Python can use any package/module it finds in sys.path/$PYTHONPATH. Simply install to an alternate location and make sure it's specified in those.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top