更新时间:2023-02-26 22:10:20
首先请确保您的共享主机运行php
> = v5.4.第二次尝试按照以下步骤操作:
First make sure that your shared host runs php
>= v5.4. Second try to follow this steps:
public_html/
或www/
之外创建一个文件夹.例如:project/
project/
文件夹public/
文件夹的内容复制到public_html/
或www/
(.htaccess也必须存在) 在public/内部,找到index.php文件并更改以下路径:
public_html/
or www/
. Ex: project/
project/
folderpublic/
folder into your public_html/
or www/
(the .htaccess must be there too)
Inside public/ locate the index.php file and change the following paths:
a. autoload.php
require __DIR__.'/../bootstrap/autoload.php';
进入
require __DIR__.'/../project/bootstrap/autoload.php';
b. start.php
$app = require_once __DIR__.'/../bootstrap/start.php';
进入
$app = require_once __DIR__.'/../project/bootstrap/start.php';`
毕竟应该可以工作.