如何修复laravel内部服务器错误500

时间:2019-02-19 17:00:13

标签: php laravel .htaccess

在主机上部署我的网站一个月后,现在我可以正常工作了

内部服务器错误 服务器遇到内部错误或配置错误,无法完成您的请求。 此外,尝试使用ErrorDocument处理请求时遇到了500 Internal Server Error错误。

 <IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>


# php -- BEGIN cPanel-generated handler, do not edit
# Définissez le package « ea-php72 » comme langage de programmation « PHP » par défaut.
<IfModule mime_module>
  AddType application/x-httpd-ea-php72 .php .php7 .phtml
  AddType  application/x-httpd-php         .php
  AddType  application/x-httpd-php-source  .phps
</IfModule>
# php -- END cPanel-generated handler, do not edit

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors On
   php_value max_execution_time 30
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 520M
   php_value post_max_size 8M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 8M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

0 个答案:

没有答案