SoftException no Application.cpp: 566: Diretório “/ var / www / html /” é gravável por grupo

0

Eu instalei o "SuPHP" ontem, e sempre que estou reiniciando o "Apache", estou recebendo um erro abaixo: -

 * Restarting web server apache2                                                                                                                              [fail] 
 * The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/000-default.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

Meu conteúdo de arquivo dentro de /etc/apache2/sites-enabled/000-default.conf é: -

<VirtualHost *:80>
    # The ServerName directive sets the request scheme, hostname and port that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    #ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    <IfModule mod_suphp.c>
        <Directory /var/www/html>
            suPHP_UserGroup rocky rocky
        </Directory>
    </IfModule>

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Agora, Minha permissão, usuário e grupo para "/ var / www / html" é: -

root@rocky:/var/www# ll
total 12
drwxr-xr-x  3 rocky rocky 4096 Oct 29 05:38 ./
drwxr-xr-x 14 root  root  4096 Oct 29 05:38 ../
drwxr-xr-x  8 rocky rocky 4096 Nov  1 15:29 html/

Pouca informação que gostaria de fornecer.

Um conteúdo anterior de /var/www estava sendo executado em root , mudei owner id e Group id para meu grupo de usuários normal, ou seja, rocky (usuário) e rocky (grupo).

Então, isso: - 1). Eu não tenho que executar ou navegar no diretório como usuário root. 2). Ao navegar para http://localhost , não recebo o erro Forbidden . 3). Eu não tenho que executar meu editor como usuário root.

O que eu fiz?

  1. Eu já verifiquei, a permissão e as pastas, elas são 755 e executadas pelo usuário e o grupo rocky que é o usuário atual (por exemplo, eu) - Sem sucesso
  2. Tentei alterar o diretório de volta para root , user id e group id . - Sem sucesso
  3. editei o suPHP_UserGroup rocky rocky para suPHP_UserGroup root root .

Estou faltando alguma coisa, meu servidor não está funcionando, com erro abaixo. gentilmente ajuda.

     * Restarting web server apache2                                                                                                                              [fail] 
     * The apache2 configtest failed.
    Output of config test was:
    AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/000-default.conf:
    Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed.
    The Apache error log may have more information.

E o log informa: - SoftException in Application.cpp:566: Directory "/var/www/html/" is writeable by group

Por favor, ajude. Obrigado

    
por HrithikRoshan 02.11.2015 / 06:00

2 respostas

0

Ok, para remover um usuário de um grupo, use o seguinte comando no terminal

sudo deluser username group

depois, ao adicionar um usuário a um grupo, você usa os seguintes comandos:

sudo usermod -a -G group username

Não sei ao certo o que você usou para adicionar e criar seu usuário como você não especificou na pergunta, então remova o usuário e recrie-o com os comandos que forneci. Se isso não funcionar, mostre como você criou o seu usuário.

Você também pode instalar o gnome-system-tool para gerenciar seus usuários e grupos visualmente assim:

sudo apt-get install gnome-system-tools
    
por RiaanV 02.11.2015 / 06:41
0

Consegui isso corrigido, removendo este irritante suPHP . Eu não preciso mais, pois leva mais tempo para consertar e tem muito menos suporte.

Obrigado

    
por HrithikRoshan 02.11.2015 / 12:46