[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?


Στις Πέμ, 30 Αυγ 2018 στις 1:09 μ.μ., ο/η Graham Dumpleton <
[email protected]> έγραψε:

> Which is possibly because your home directory /home/nikos is not
> accessible to the Apache user, or SELinux prevents Apache from hosting
> files from there.
>
> It is usually a better idea to place the project under a directory such as
> /var/www/projects.
>
> What do you get when you run:
>
>     ls -lasd /home/nikos
>
> Graham
>
> On 30 Aug 2018, at 8:05 pm, Νίκος @ SuperHost <
> [email protected]> wrote:
>
> ok, i have un-installed python36u-mod_wsgi and just installes yum install
> mod_wsgi
>
> then i used the configuration i mentioned in my 1st post and i still get
> this error whn i http://superhost.gr
>
> Forbidden: You don't have permission to access / on this server.
> Why Apache since i have configured it correctly wont take over ?
> Then only way i cna see my webpage is only if i http://superhost.gr:5000
>
> I need the latter to send data on Apache's port 80. Why isnt this
> happening?
>
>
>
> Στις Πέμ, 30 Αυγ 2018 στις 12:34 μ.μ., ο/η Graham Dumpleton <
> [email protected]> έγραψε:
>
>> 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/
>>
>> 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 <http://superhost.gr/> 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].
>> 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.
>>
>>
>>
>> --
>> 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
>> [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.
>>
>
> --
> 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.
>
>
> --
> 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
> [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.
>

-- 
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.

Reply via email to