Lỗi Internal Server Error trong forum xenforo

Thảo luận trong 'Mã nguồn Xenforo - VBB' bắt đầu bởi admin, 20/7/15.

  1. admin
    Tham gia ngày:
    22/5/13
    Bài viết:
    4,895
    Đã được thích:
    1,198
    Điểm thành tích:
    113
    Giới tính:
    Nam
    Lỗi forum xenfo thường gặp là lỗi
    Mã:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@itseovn.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    internal-server-error.png

    Internal Server Error

    Lỗi này rất khó chịu vì nó báo không rõ ràng, và web vẫn chạy bình thường.

    Cách xử lý:
    • Cách 1: Bạn kiểm tra lại .htaccess xem đã đúng chưa, xem có bị chèn thêm code gì không? nên lấy lại code file .htaccess cũ lúc trước khi bị để đối chứng.
    File .htaccess xenforo như sau:
    Mã:
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
    
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
    
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
    
        #    This line may be needed to enable WebDAV editing with PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
    • Cách 2: Kiểm tra lại các add on bằng cách, disable từng add on và kiểm tra xen đã hết lỗi chưa
    • Cách 3: lỗi này phát sinh khi ta thao tác trên forum vbb lâu, hoặc chạy rebuild các add on lâu sẽ xẩy ra lỗi này, và lỗi này do hosting chặn vì thờig ian rebuild quá lâu. Nên lỗi này liên hệ lại hosting tìm cách xử lý, nếu không được bạn yêu cầu đổi hosting khác, đảm bảo sẽ được
     
    Cảm ơn đã xem bài:

    Lỗi Internal Server Error trong forum xenforo

    DienDanRaoVat thích bài này.
  2. lonttz18
    Tham gia ngày:
    27/4/16
    Bài viết:
    5
    Đã được thích:
    0
    Điểm thành tích:
    1
    Giới tính:
    Nam
    Bài viết hay và rất đáng đọc!
     
  3. chinsuboo
    Tham gia ngày:
    18/6/16
    Bài viết:
    24
    Đã được thích:
    1
    Điểm thành tích:
    8
    Giới tính:
    Nam
    Dùng nginx thì khắc phục thế nào vậy bác. Thằng kỹ thuật của em nó cài cho em nginx chứ không phải apache