Open dyzdyz010 opened 6 years ago
没有安装成功,还有错误
@upuil 没有安装成功,还有错误
是的,PHP 的文件和路径权限有问题,有时间我改下
如果设置为这个DocumentRoot /var/www/flarum
路径的话,直接打开的就是 Apache的测试页面,设置为DocumentRoot /var/www/flarum/public
的话,打开的是以下内容,我是完全按照你的教程来操作的
`
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require '../vendor/autoload.php';
$server = new Flarum\Http\Server(
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__.'/..',
'public' => __DIR__.'/../public',
'storage' => __DIR__.'/../storage',
])
);
$server->listen();
@upuil 如果设置为这个
DocumentRoot /var/www/flarum
路径的话,直接打开的就是 Apache的测试页面,设置为DocumentRoot /var/www/flarum/public
的话,打开的是以下内容,我是完全按照你的教程来操作的 `<?php /* * This file is part of Flarum. * * (c) Toby Zerner <toby.zerner@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require '../vendor/autoload.php'; $server = new Flarum\Http\Server( Flarum\Foundation\Site::fromPaths([ 'base' => __DIR__.'/..', 'public' => __DIR__.'/../public', 'storage' => __DIR__.'/../storage', ]) ); $server->listen();
Hi, 我重新修改了文章,如果还有问题的话欢迎发邮件😊
https://duyizhuo.com/set-up-flarum-from-scratch/