dyzdyz010 / duyizhuo.com

blog comment system
0 stars 0 forks source link

Set Up Flarum From Scratch #24

Open dyzdyz010 opened 6 years ago

dyzdyz010 commented 6 years ago

https://duyizhuo.com/set-up-flarum-from-scratch/

upuil commented 5 years ago

没有安装成功,还有错误

dyzdyz010 commented 5 years ago

@upuil 没有安装成功,还有错误

是的,PHP 的文件和路径权限有问题,有时间我改下

upuil commented 5 years ago

如果设置为这个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();
dyzdyz010 commented 5 years ago

@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, 我重新修改了文章,如果还有问题的话欢迎发邮件😊