<VirtualHost *:80>
ServerName superhost.gr
ServerAdmin nikos@superhost.gr
WSGIDaemonProcess public_html user=nikos group=nikos processes=1 threads=5
WSGIScriptAlias / /home/nikos/public_html/webapp.py
ProxyPass / http://superhost.gr:5000/
ProxyPassReverse / http://superhost:5000/
<Directory /home/nikos/public_html>
WSGIProcessGroup public_html
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
AddHandler wsgi-script .wsgi .py
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
Hello, 3 days now i;m facing the same problem i have installed python36u-mod_wsgi module because mod_wsgi coudl not be isntalled.I reinstalled anything from scratch but still my wsgi webapp.py application wont run.Please help me out. The above is httpd-vhosts.conf as i have configured it.I'am running on centOS 7 with python36u installed and Apache Web Server.--
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 modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
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.
[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 a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/qUrloVGZRDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
[nikos@superhost public_html]$ ls -lasd /home/nikos 4 drwxr-x--- 15 nikos nikos 4096 Aug 30 13:10 /home/nikos
Yes, because i was moving from another webhost company there some lines with groups inside httpd.conf starting with Suexec that i removed by hand now 5 mins ago.
Perhaps SuLinux prevtns accessing to /home/nikos. How can i entirely disable it?
[root@superhost public_html]# ls -lasd ../ 4 drwxr-xr-x 15 nikos nikos 4096 Aug 30 13:10 ../
Still:
You don't have permission to access / on this server.
[root@superhost public_html]# ls -lasd /home/nikos 4 drwxr-xr-x 15 nikos nikos 4096 Aug 30 13:10 /home/nikos
[root@superhost public_html]# ls -lasd /home/nikos/public_html/ 4 drwxr-xr-x 7 nikos nikos 4096 Aug 30 12:34 /home/nikos/public_html/
[root@superhost public_html]# ll webapp.py -rwxr-xr-x 1 nikos nikos 13681 Aug 30 13:46 webapp.py [root@superhost public_html]#
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/qUrloVGZRDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
<VirtualHost *:80>
ServerName superhost.gr
ServerAdmin ni...@superhost.gr
DocumentRoot /var/www/flask_app
AddHandler wsgi-script .wsgi .py
WSGIDaemonProcess flask_app user=root group=root processes=1 threads=5
WSGIScriptAlias /flask_app /var/www/flask_app/webapp.py
<Directory /var/www/flask_app>
WSGIProcessGroup flask_app
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
AllowOverride None
Require all granted
</Directory>
ErrorLog /home/nikos/public_html/logs/error.log
CustomLog /home/nikos/public_html/logs/requests.log combined
</VirtualHost>Still Forbidden.
Should the user be nikos or root? and the ownership of the files? or perhaps Apache?
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/qUrloVGZRDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
Here is when i try to run it.
Does it matter because iam under root? Does it have to be 'nikos' user?
[root@superhost flask_app]# pwd /var/www/flask_app
[root@superhost flask_app]# python3 somename.py * Serving Flask app "somename" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: on * Running on http://superhost.gr:5000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 196-393-755
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/qUrloVGZRDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
On 31 Aug 2018, at 6:27 pm, Νίκος @ SuperHost <nikos.at....@gmail.com> wrote:I thought python3 some_name.py was used to start the wsgi process for the Apache to take over no?
httpd.conf => https://pastebin.com/LWTiPMkD
Accessing at as => http://superhost.gr/ gives forbidden while only works as http://superhost.gr:5000
Also i want to show you this structure in case it helps. Perhpas php7.2 and cgi-bin gives us trouble?
[root@superhost nikos]# ll total 140 lrwxrwxrwx 1 root root 32 Aug 18 01:37 cgi-bin -> /home/nikos/public_html/cgi-bin/ drwxr-xr-x 5 nikos nikos 4096 Aug 30 19:17 etc drwxr-xr-x 2 nikos nikos 4096 May 21 09:28 fcgi-bin drwxr-xr-x 2 nikos nikos 4096 May 19 20:58 homes drwxr-x--- 2 nikos nikos 4096 Aug 18 01:34 logs drwx------ 9 nikos nikos 4096 Aug 29 13:24 Maildir drwxr-xr-x 7 nikos nikos 4096 Aug 31 14:50 public_html -rwxr-xr-x 1 nikos nikos 1647 Aug 21 12:40 ssl.ca -rwx------ 1 nikos nikos 2264 Aug 21 12:40 ssl.cert -rwx------ 1 nikos nikos 3911 Aug 21 12:40 ssl.combined -rwx------ 1 nikos nikos 5586 Aug 21 12:40 ssl.everything -rwx------ 1 nikos nikos 1675 Aug 21 12:40 ssl.key drwxr-x--- 2 nikos nikos 86016 Aug 31 13:34 tmp drwx------ 2 nikos nikos 4096 Aug 18 01:34 virtualmin-backup [root@superhost nikos]# ll cgi-bin/ total 4 -rwxr-xr-x 1 nikos nikos 231 Aug 29 17:54 php7.2.cgi [root@superhost nikos]#
LoadModule wsgi_module modules/mod_wsgi.soOn 1 Sep 2018, at 5:03 pm, Νίκος Βέργος <nikos.at....@gmail.com> wrote:is it possbile a line like that is missing and should be appllied to httpd-vhosts.conf ?LoadModule wsgi_module modules/mod_wsgi.so
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/qUrloVGZRDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
LoadModule wsgi_module modules/mod_wsgi.soInclude /etc/httpd/conf/httpd-vhosts.conf
Iam using python36u-mod_wsgi though? is the loadmodule still the same?
-- Unit httpd.service has begun starting up. Sep 03 11:02:49 mail.superhost.gr httpd[16243]: httpd: Syntax error on line 1 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_wsgi.so into server: /etc/httpd/modules/mod_wsgi.so: cannot open shared object file: No such file Sep 03 11:02:49 mail.superhost.gr systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Sep 03 11:02:49 mail.superhost.gr kill[16245]: kill: cannot find process "" Sep 03 11:02:49 mail.superhost.gr systemd[1]: httpd.service: control process exited, code=exited status=1 Sep 03 11:02:49 mail.superhost.gr systemd[1]: Failed to start The Apache HTTP Server.
LoadModule wsgi_module modules/mod_wsgi.so Include /etc/httpd/conf/httpd-vhosts.conf
I Removed both mod_wsgi and python36u-mod_wsgi as well. I installed yum install httpd-devel to get rid of the 'apsx' issue. Here is the results of the express install.
python-36m-x86_64-linux-gnu.so" WSGIPythonHome "/usr"