Назад | Перейти на главную страницу

Внутренняя ошибка Directadmin 500 после разархивирования joomla новому пользователю с тем же доменом

Я переместил public_html сайта Joomla из olduser к newuser. Я также переместил домен joomlasite.com из olduser к newuser; но когда я иду в joomlasite.com посетить его с собственностью newuser, 500 Internal Server Error виден.

Примечание. Проблем с разрешениями быть не должно, потому что с разрешениями 777 и (644/755) я получаю одинаковый результат.

Я даже добавил die('Hello'); на вершине 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/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

Надеюсь, это будет понятно.

Есть предложения по решению проблемы?

Недавно у меня была эта ошибка - мне помогло просто chmodding (755) рекурсивно весь каталог public_html:

chmod -R 755 /path/to/public_html

Я уверен, что файлы в файлах в /home/newuser/domains/joomlasite.com/public_html/ принадлежат пользователю root. Похоже, вы используете suPHP, который будет запускать файлы PHP от имени того же пользователя, который владеет файлами. Ограничение min_uid предназначено для того, чтобы suPHP случайно не запускался от имени пользователя root или другого системного пользователя.

Самым быстрым решением, вероятно, будет выполнение следующего:

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

Вторая часть ошибки - из-за разрешений 777. Исправление для этого, вероятно, будет следующим:

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

Это найдет все файлы в каталоге public_html и изменит права доступа на 644, что намного безопаснее, чем 777 в общей системе !! Если приведенная выше команда вызывает ошибку, замените + на \;