A few things. The first is that mod_wsgi-express is intended for running a distinct Apache instance to you main Apache instance. It mentions port 8000 because that is the port it will use by default. So it isn't modifying your main Apache installation and you can't take over port 80 when using it unless you disable your main Apache instance and then do various configuration to have it run on port 80 as explained in:
https://pypi.org/project/mod_wsgi/ <https://pypi.org/project/mod_wsgi/> The second is that mod_wsgi-express is showing an error that something is already using port 8000, so you can't use that port either. Finally, if you are installing 'python36u-mod_wsgi.x86_64' you shouldn't even need to install mod_wsgi-express separately as you have. Just configure your main Apache to host your WSGI application using mod_wsgi and don't use mod_wsgi-express. See the Flask docs for an example. You will be using a different system mod_wsgi package is all. > On 30 Aug 2018, at 7:08 pm, [email protected] wrote: > > Hello the flask vevelopmnet web server listens on http://superhost.gr:5000 > and runs but in does not listen to http://superhost.gr:80 which is being > managed by Apache. > It seem like Apache is not aware of mod_wsgi application. Here: > > > > [root@superhost ~]# yum list installed | grep python36 > python36u.x86_64 3.6.5-1.ius.centos7 @ius > > python36u-devel.x86_64 3.6.5-1.ius.centos7 @ius > > python36u-libs.x86_64 3.6.5-1.ius.centos7 @ius > > python36u-mod_wsgi.x86_64 4.6.2-1.ius.centos7 @ius > > python36u-pip.noarch 9.0.1-1.ius.centos7 @ius > > python36u-setuptools.noarch 39.0.1-1.ius.centos7 @ius > > and > > [root@superhost public_html]# mod_wsgi-express start-server webapp.py > [nikos@superhost public_html]$ mod_wsgi-express start-server webapp.py > Server URL : http://localhost:8000/ > Server Root : /tmp/mod_wsgi-localhost:8000:1021 > Server Conf : /tmp/mod_wsgi-localhost:8000:1021/httpd.conf > Error Log File : /tmp/mod_wsgi-localhost:8000:1021/error_log (warn) > Request Capacity : 5 (1 process * 5 threads) > Request Timeout : 60 (seconds) > Startup Timeout : 15 (seconds) > Queue Backlog : 100 (connections) > Queue Timeout : 45 (seconds) > Server Capacity : 20 (event/worker), 20 (prefork) > Server Backlog : 500 (connections) > Locale Setting : en_US.UTF-8 > (98)Address already in use: AH00072: make_sock: could not bind to address > [::]:8000 > (98)Address already in use: AH00072: make_sock: could not bind to address > 0.0.0.0:8000 > no listening sockets available, shutting down > AH00015: Unable to open logs > [nikos@superhost public_html]$ > > All i want to do is wehn my flask webapp.py run is intead of being run by the > development server on port 5000 to be run by Aapche on port 80. > I dont know why epxress module mentiones port 8000 ..... > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
