php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
composer create-project flarum/flarum . --stability=beta
接下来,按照官方文档编辑
URL Rewriting
http://flarum.org/docs/installation/
完了之后,
chown -R www:www flarum/assets
chown -R www:www flarum/storage
chown -R www:www flarum
打开域名,就可以直接安装了
评论
发表评论