我已经把olduser网站的public_html移动到新用户。 我也把域名joomlasite.com从olduser移到了newuser ; 但是当我去joomlasite.com用新用户的所有权访问它时,看到500 Internal Server Error 。
注意:权限不应该有任何问题,因为使用777和(644/755)权限,我会得到相同的结果。
我甚至加了die('Hello'); 在index.php的顶部,但仍然存在错误。
根据Niall Donegan的评论,我检查了这个文件。 有用的内容是:
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
希望能够理解。
任何解决问题的build议?
我敢打赌,/ home / newuser / domain / joomlasite.com/public_html/中的文件属于root。 它看起来像你正在使用suPHP将运行PHP文件作为拥有文件相同的用户。 min_uid限制是为了确保suPHP不会以root身份或其他系统用户无意中运行。
最快的解决scheme可能会运行以下内容:
chown -R newuser /home/newuser/domains/joomlasite.com/public_html/
错误的第二部分是因为777权限。 解决这个问题可能是:
find /home/newuser/domains/joomlasite.com/public_html/ -type f -exec chmod 644 {} \+
这将findpublic_html目录中的所有文件,并将权限更改为644,这比共享系统上的777更安全! 如果上述命令引发错误,请将+replace为\;
我最近有这个错误 – 什么帮助我只是recursion地chmodding(755)整个public_html目录:
chmod -R 755 /path/to/public_html