Erro interno do Directadmin 500 após descompactar o joomla para um novo usuário com o mesmo domínio [closed]

1

Mudei o public_html de um site do Joomla de olduser para newuser . Também movi o domínio joomlasite.com de olduser para newuser ; mas quando vou para joomlasite.com para visitá-lo com a propriedade de newuser , 500 Internal Server Error é visto.

Nota: Não deve haver nenhum problema com as permissões porque, com as permissões 777 e (644/755), obtenho o mesmo resultado.

Eu até adicionei die('Hello'); no topo de index.php , mas o erro ainda existe.

De acordo com o comentário de Niall Donegan, verifiquei o arquivo. Os conteúdos que foram úteis são:

SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/administrator/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/administrator/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/administrator/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/administrator/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:350: UID of script "/home/newuser/domains/joomlasite.com/public_html/index.php" is smaller than min_uid
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php
SoftException in Application.cpp:249: File "/home/newuser/domains/joomlasite.com/public_html/index.php" is writeable by group
Premature end of script headers: index.php

Espero que seja claro para entender.

Alguma sugestão para resolver o problema?

    
por smhnaji 24.02.2012 / 16:07

2 respostas

1

Minha aposta é que os arquivos em que os arquivos em /home/newuser/domains/joomlasite.com/public_html/ são de propriedade de root. Parece que você está usando o suPHP, que executará os arquivos PHP como o mesmo usuário que possui os arquivos. A restrição min_uid está lá para garantir que o suPHP não seja executado como root ou outro usuário do sistema inadvertidamente.

A correção mais rápida provavelmente será executar o seguinte:

chown -R newuser /home/newuser/domains/joomlasite.com/public_html/

A segunda parte do erro é por causa das permissões 777. A correção para isso provavelmente seria:

find /home/newuser/domains/joomlasite.com/public_html/ -type f -exec chmod 644 {} \+

Isso localizará todos os arquivos no diretório public_html e alterará as permissões para 644, o que é muito mais seguro que o 777 em um sistema compartilhado !! Se o comando acima lançar um erro, substitua o + por \;

    
por 25.02.2012 / 00:52
1

Recentemente tive esse erro - o que me ajudou foi simplesmente chmodding (755) todo o diretório public_html recursivamente:

chmod -R 755 /path/to/public_html

    
por 04.06.2014 / 00:23