LAMP setup

Kári Hreinsson karihre at gmail.com
Tue Mar 8 22:15:58 MST 2016


Hello,

Perhaps it is the typo:
<Directory /var/www/pythonsite.com/pubic_py>
which I guess should read public_py?

Python sites are rarely written and deployed in this manner however.
Normally you would use a web framework such as Django or Flask, you would
then either use apache/mod_wsgi or use gunicorn as the backend (app)
webserver with nginx sitting in the front. This is however just my take on
this, as I haven't professionally done this for a while.

Django is very well documented, you might want to look into that as a
starting point with Python webprogramming.

Have fun!
Kari



On Tue, Mar 8, 2016 at 10:05 PM, Stephen M <smelheim85 at gmail.com> wrote:

> Hi to learn LAMP with python to gain another job market skill.  I have
> everything setup and it works when I'm just displaying a HTML site.
> When I'm trying with python it doesn't work.
>
> I'm using python3 because that is what most blogs were saying to use.
> I have enabled the cgi and mpm_prefork modules.  My script is
> executable.  I am getting a 500 error and when I go to my site it just
> goes to the parent folder first.  I'm trying to understand this so I
> can move on.
>
> Would some assist me in figuring out what I'm doing incorrectly?
> Thank you in advance.
>
> --
> Stephen Melheim
> 602-400-7707
> SMelheim85 at gmail.com
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160308/b77b2858/attachment.html>


More information about the PLUG-discuss mailing list