It's SELinux permission problem.

I've set corret context provilege at httpd process and now work.

Tks


Il 31/03/2017 16:59, Carlos Costa ha scritto:
hosts listed in this file are have access denied.
If this is the problem, just remove the host from the file or remove the entire file.

Also, all web2py files must belong to the specified user in the apache virtual user.

2017-03-30 7:02 GMT-03:00 Nicola Gramola <nicola.gram...@gmail.com <mailto:nicola.gram...@gmail.com>>:

    Hello.

    I've installed web2py with Apache 2.4 and mod_wsgi in a RedHat
    distribution.
    When I try to conect /admin system rease error
    [Errno 13] Permission denied:
    '/var/lib/web2py/applications/admin/private/hosts.deny'
    The hosts file have all permissions

    Thanks


    Virtual Host conf

    <VirtualHost *:443 >
    ...
    WSGIDaemonProcess web2py user=apache group=apache
    display-name=%{GROUP}

    WSGIProcessGroup web2py

    WSGIScriptAlias / /var/lib/web2py/wsgihandler.py

      <Directory /var/lib/web2py>
    AllowOverride None
        Require all granted
        <Files wsgihandler.py>
          Require all granted
    </Files>
    </Directory>

AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) /var/lib/web2py/applications/$1/static/$2

      <Directory /var/lib/web2py/applications/*/static/>
        Require all granted
    </Directory>
    ...
    </VirtualHost>

-- Resources:
    - http://web2py.com
    - http://web2py.com/book (Documentation)
    - http://github.com/web2py/web2py
    <http://github.com/web2py/web2py> (Source code)
    - https://code.google.com/p/web2py/issues/list
    <https://code.google.com/p/web2py/issues/list> (Report Issues)
    ---
    You received this message because you are subscribed to the Google
    Groups "web2py-users" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to web2py+unsubscr...@googlegroups.com
    <mailto:web2py+unsubscr...@googlegroups.com>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.




--


Carlos J. Costa
Cientista da Computação  | BS Computer Science
Esp. Gestão em Telecom   | PgC Telecom Mangement
<º))><
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com <mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
 * Nicola Gramola (°> Above all, be cool!
 - linux addicted - keep calm and clear cache - keep it simple
 - Linux Counter: 324870 http://linuxcounter.net
 - AViLUG - AViCoderDojo: http://www.avilug.it/ - Calendario attività: 
http://www.avilug.it/doku.php/calendario

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to