在cpanel中托管Laravel 5服务器错误500
在cpanel中托管Laravel 5服务器错误500,laravel,.htaccess,laravel-5,cpanel,web-hosting,Laravel,.htaccess,Laravel 5,Cpanel,Web Hosting,我已经将我的laravel项目文件夹上载到cpanel主机中。我在这里遵循了许多示例,但仍然得到了著名的500内部错误。这就是我所做的: 我在我的laravel项目中分离了公用文件夹,并将其放入了我的公用html文件夹中。我已将laravel项目的其余部分放入myapp文件夹 在我的public_html文件夹中,我更改了以下行: require __DIR__.’/../myapp/vendor/autoload.php’; /* |—————————–
require __DIR__.'/../myapp/vendor/autoload.php'; /* |-------------------------------------------------------------------------- | Turn On The Lights |-------------------------------------------------------------------------- | | We need to illuminate PHP development, so let us turn on the lights. | This bootstraps the framework and gets it ready for use, then it | will load up this application so that we can run it and send | the responses back to the browser and delight our users. | */ $app = require_once __DIR__.'/../myapp/bootstrap/app.php';
APP_NAME=Driveostle APP_ENV=local APP_KEY=base64:xxx APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://www.driveostle.ma
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # 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] # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] </IfModule>
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=7.0.0", "fideloper/proxy": "~3.3", "intervention/image": "^2.4", "laravel/framework": "5.5.*", "laravel/tinker": "~1.0", "mews/purifier": "^2.0" }, ...
存储/logs/laravel.log
storage/logs/laravel.log
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule>
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@driveostle.ma to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=7.0.0", "fideloper/proxy": "~3.3", "intervention/image": "^2.4", "laravel/framework": "5.5.*", "laravel/tinker": "~1.0", "mews/purifier": "^2.0" }, ...