cpanel无法安装laravel的脚本

问题描述 投票:0回答:0

我有一个

laravel
网站的脚本。我想安装它,但我无法安装。下面是我的目录结构

所有的装置都在

../public_html/demos/ebook/public/...
。因此,当我点击 URL
https://my-sub-domain.com/ebook/public/installer/configuration
时,它确实会显示配置页面,但是当我填写所有必需的内容并单击下一步时,它会给我
Error 500
.

脚本的文档说

Note:- You should configure your web server's document/web root to be the public directory.

我试过这个解决方案但它对我不起作用。

../ebook/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

../ebook/public/.htaccess

<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 laravel .htaccess
© www.soinside.com 2019 - 2024. All rights reserved.