Lỗi HTTP 500 mong giúp đỡ

Thảo luận trong 'Troubleshoot & Other Questions' bắt đầu bởi jackychiem, 10/6/13.

1votes
5/5, 1 vote

  1. jackychiem

    jackychiem New Member

    Bài viết:
    15
    Likes :
    0
    Screen-shot-2013-06-10-at-104956-AM

    Site em hiện đang bị hiện tượng này, tối qua chạy vẫn ổn. Em có điều chỉnh file Htaccess lại default rồi nhưng vẫn bị. Bác nào rành về cái này giúp em với. Nếu Guest xem thì vẫn bình thường. Login vào nó báo lỗi này
    acc test : testuser pass: 123456
     
    Đang tải...
  2. congnghevps

    congnghevps Member

    Bài viết:
    268
    Likes :
    97
    Chào bạn, bạn dùng webserver Nginx hay Apache, bạn sử dụng php handler nào ? :D

    Bạn điều chỉnh gì trong .htacess mà đẫn đến tình trạng trên vậy :D
     
  3. jackychiem

    jackychiem New Member

    Bài viết:
    15
    Likes :
    0
    nội dụng file .htaccess nè bác
    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 500 default
     
    <IfModule mod_rewrite.c>
    #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>
     
     
    ###Start Kloxo PHP config Area
    ###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
     
    <Ifmodule mod_php4.c>
        php_value error_log "/home/vuonrauxanh/__processed_stats/vuonrauxanh.vn.phplog"
        php_value upload_max_filesize 2M
        php_value max_execution_time  30
        php_value max_input_time  60
        php_value memory_limit  32M
        php_value post_max_size  8M
        php_flag register_globals  off
        php_flag display_errors  off
        php_flag file_uploads  on
        php_flag log_errors  off
        php_flag output_buffering  off
        php_flag register_argc_argv  on
        php_flag magic_quotes_gpc  off
        php_flag magic_quotes_runtime  off
        php_flag magic_quotes_sybase  off
        php_flag mysql.allow_persistent  off
        php_flag register_long_arrays  on
        php_flag allow_url_fopen  on
        php_flag cgi.force_redirect  on
        php_flag enable_dl  on
    </Ifmodule>
     
    <Ifmodule mod_php5.c>
        php_value error_log "/home/vuonrauxanh/__processed_stats/vuonrauxanh.vn.phplog"
        php_value upload_max_filesize 2M
        php_value max_execution_time  30
        php_value max_input_time  60
        php_value memory_limit  32M
        php_value post_max_size  8M
        php_flag register_globals  off
        php_flag display_errors  off
        php_flag file_uploads  on
        php_flag log_errors  off
        php_flag output_buffering  off
        php_flag register_argc_argv  on
        php_flag magic_quotes_gpc  off
        php_flag magic_quotes_runtime  off
        php_flag magic_quotes_sybase  off
        php_flag mysql.allow_persistent  off
        php_flag register_long_arrays  on
        php_flag allow_url_fopen  on
        php_flag cgi.force_redirect  on
        php_flag enable_dl  on
    </Ifmodule>
     
    ###End Kloxo PHP config Area
    Em hông chỉnh gì hết, đang chạy bình thường tự dưng bị mới đau bác
     
  4. congnghevps

    congnghevps Member

    Bài viết:
    268
    Likes :
    97
    Rồi, kiểu này là bạn sử dụng hosting control panel là Kloxo, với Kloxo thì webserver mặc định là Apache, hiện giờ mình thấy Kloxo ít ra bản mới và support không tốt, bạn nên cân nhắc chuyển sang hosting control panel khác. Ngoài ra bạn có thể cung cấp file error log hoặc access log của Apache được không, nhìn vào trong file log có thể biết là các request bị 500 có đặt điểm gì, từ đó giải quyết vấn đề :)
     
  5. jackychiem

    jackychiem New Member

    Bài viết:
    15
    Likes :
    0
    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 500 default
     
    <IfModule mod_rewrite.c>
    #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>
    Sau khi dùng .htaccess như vầy thì nó hiện thông báo như sau :

    Fatal error: Class 'EWRmedio_ReportHandler_Media' not found in /home/vuonrauxanh/vuonrauxanh.vn/library/XenForo/Model/Report.php on line 524

    Nhưng mình lại không sử dụng plugin xenmedio :(
     
  6. jackychiem

    jackychiem New Member

    Bài viết:
    15
    Likes :
    0
    Log file nè bạn ui
     

    Các file đính kèm:

  7. congnghevps

    congnghevps Member

    Bài viết:
    268
    Likes :
    97
    Mình login bình thường mà nhỉ, bạn xóa cache trên máy tính bạn đi rồi login lại thử, mình thử login với user của bạn send hoàn toàn không gặp lỗi gì cả. Nhưng xem qua log có nhiều file không tìm thấy, bạn nên coi lại path đi nhé. :)
     
  8. jackychiem

    jackychiem New Member

    Bài viết:
    15
    Likes :
    0
    Em log bằng acc admin vẫn báo lỗi

    Fatal error: Class 'EWRmedio_ReportHandler_Media' not found in/home/vuonrauxanh/vuonrauxanh.vn/library/XenForo/Model/Report.php on line 524

    giờ chả biết dò delete nó ở đâu đây
     
  9. jackychiem

    jackychiem New Member

    Bài viết:
    15
    Likes :
    0
    Em đã fix xong, lỗi của EWRmedio , giờ em vẫn chưa biết cách gỡ triệt đễ add on này
     
  10. samsungglx2s

    samsungglx2s New Member

    Bài viết:
    3
    Likes :
    1
    # 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 500 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 /

    # 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 ^.*$ /forum/index.php [NC,L] // chú ý chổ này nhé ten.com/forum
    </IfModule>
     
comments powered by Disqus

Chia sẻ trang này

Đang tải...