- 浏览: 2551706 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Flarum BBS System(1)Installation and Introduction
Try an open source BBS website. Flarum
First try the steps on my local MAC
> php -version
PHP 7.2.11 (cli) (built: Oct 23 2018 08:40:58) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
And I have a MySQL Database on my Local as well.
> composer --version
Composer version 1.6.5 2018-05-04 11:44:59
In the document in detail, it says, it can not work with 7.2, only up to 7.1. Let’s try first.
Command runs to create flarum
In the working directory
> mkdir flarum
> cd flarum/
> composer create-project flarum/flarum . --stability=beta
It seems we need execute the command to install the dependency
> composer install
Exception Happened Here
- flarum/core v0.1.0-beta.6 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2].
- intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
Solution:
https://stackoverflow.com/questions/23771117/requires-ext-fileinfo-how-do-i-add-that-into-my-composer-json-file
http://image.intervention.io/getting_started/installation
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
Solution:
> brew install autoconf
Once we have autoconf, we will go on install Fileinfo-1.0.4
> wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz
> tar -zxf Fileinfo-1.0.4.tgz
> cd Fileinfo-1.0.4
> phpize
> ./configure
Exception in this step
checking for magic files in default path... not found
configure: error: Please reinstall the libmagic distribution
Solution:
https://gist.github.com/eparreno/1845561
> brew install libmagic
Once we have lib magic, go on with configure and installation.
> ./configure
> make
During make, it seems version conflict error happen. Reinstall PHP with that enable --enable-fileinfo
> ./configure --prefix=/Users/hluo/tool/php-7.2.12 --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --enable-ftp --with-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-maintainer-zts --enable-fileinfo
Change Makefile
EXTRA_LIBS = -lz -lresolv -liconv -liconv -lintl -lpng -lz -ljpeg -lz -lm -lpthread -lxml2 -lz -licucore -lm -lcurl -lxml2 -lz -licucore -lm -lfreetype -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm /usr/local/Cellar/libiconv/1.15/lib/libiconv.dylib -lssl -lcrypto
Yeah, compose install success after that.
> cd /Users/hluo/tool/flarum
> composer install
Set Up Nginx Configuration
user hluo staff;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
root /opt/flarum;
index index.php index.html index.htm;
location / { try_files $uri $uri/ /index.php?$query_string; }
location /api { try_files $uri $uri/ /api.php?$query_string; }
location /admin { try_files $uri $uri/ /admin.php?$query_string; }
location /flarum {
deny all;
return 404;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY "";
fastcgi_index index.php;
}
location ~* \.html$ { expires -1; }
location ~* \.(css|js|gif|jpe?g|png)$ {
expires 1M;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidat";
}
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types application/atom+xml
application/javascript
application/json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
#text/html -- text/html is gzipped by default by nginx
text/plain
text/xml;
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
}
}
Visit the Page
http://localhost/
Create MySQL Database First
> create database flarum;
> use mysql;
> grant all privileges on flarum.* to flarum@"%" identified by 'flarum';
> flush privileges;
Visit the page and set up the database.
Set Up on CentOS
Similar steps with MAC, some differences are as follow:
> ./configure --prefix=/home/carl/tool/php-7.2.12 --enable-fpm --with-fpm-user=carl --with-fpm-group=staff --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --enable-ftp --with-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-maintainer-zts --enable-fileinfo
Install Nginx On CentOS
> ./configure --prefix=/home/carl/tool/nginx-1.14.0
> make
> make install
Put in the Working directory
Set Composer and Flarum
> sudo curl -sS https://getcomposer.org/installer | php
> sudo mv composer.phar /usr/local/bin/composer
> sudo chmod a+x /usr/local/bin/composer
> composer --version
Composer version 1.7.3 2018-11-01 10:05:06
Set Up Flarum
> mkdir flarum
> cd flarum/
> composer create-project flarum/flarum . --stability=beta
Start PHP-FPM, start Nginx, We can visit http://localhost
Set Up MySQL on RaspberryPi
> sudo apt-get install mysql-server
> sudo vi /etc/mysql/my.cnf
Change bind-address to 0.0.0.0
Restart MySQL
> sudo service mysql restart
After Post One Discussion, Here is the Issues on Page
Warning: count(): Parameter must be an array or an object that implements Countable in /home/carl/tool/flarum/vendor/flarum/core/src/Core/Post/RegisteredTypesScope.php on line 52
Fatal error: Uncaught RuntimeException: Unable to emit response; headers already sent in /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Response/SapiEmitterTrait.php:37 Stack trace: #0 /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Response/SapiEmitter.php(30): Zend\Diactoros\Response\SapiEmitter->assertNoPreviousOutput() #1 /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Server.php(167): Zend\Diactoros\Response\SapiEmitter->emit(Object(Zend\Diactoros\Response)) #2 /home/carl/tool/flarum/vendor/flarum/core/src/Http/AbstractServer.php(36): Zend\Diactoros\Server->listen(Object(Zend\Stratigility\NoopFinalHandler)) #3 /home/carl/tool/flarum/index.php(16): Flarum\Http\AbstractServer->listen() #4 {main} thrown in /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Response/SapiEmitterTrait.php on line 37
Maybe because of the PHP Version, Let’s try in Docker Installation
References:
https://github.com/flarum/flarum
https://flarum.org/docs/installation/
https://www.lijiaocn.com/%E6%96%B9%E6%B3%95/2017/11/21/flarum-usage.html
https://github.com/flarum/flarum
https://hk.saowen.com/a/1be15c911e8571cc31eae0a27be8ee1b2a654a653b10f8f36b901e915974e31c
Try an open source BBS website. Flarum
First try the steps on my local MAC
> php -version
PHP 7.2.11 (cli) (built: Oct 23 2018 08:40:58) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
And I have a MySQL Database on my Local as well.
> composer --version
Composer version 1.6.5 2018-05-04 11:44:59
In the document in detail, it says, it can not work with 7.2, only up to 7.1. Let’s try first.
Command runs to create flarum
In the working directory
> mkdir flarum
> cd flarum/
> composer create-project flarum/flarum . --stability=beta
It seems we need execute the command to install the dependency
> composer install
Exception Happened Here
- flarum/core v0.1.0-beta.6 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2].
- intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
Solution:
https://stackoverflow.com/questions/23771117/requires-ext-fileinfo-how-do-i-add-that-into-my-composer-json-file
http://image.intervention.io/getting_started/installation
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
Solution:
> brew install autoconf
Once we have autoconf, we will go on install Fileinfo-1.0.4
> wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz
> tar -zxf Fileinfo-1.0.4.tgz
> cd Fileinfo-1.0.4
> phpize
> ./configure
Exception in this step
checking for magic files in default path... not found
configure: error: Please reinstall the libmagic distribution
Solution:
https://gist.github.com/eparreno/1845561
> brew install libmagic
Once we have lib magic, go on with configure and installation.
> ./configure
> make
During make, it seems version conflict error happen. Reinstall PHP with that enable --enable-fileinfo
> ./configure --prefix=/Users/hluo/tool/php-7.2.12 --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --enable-ftp --with-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-maintainer-zts --enable-fileinfo
Change Makefile
EXTRA_LIBS = -lz -lresolv -liconv -liconv -lintl -lpng -lz -ljpeg -lz -lm -lpthread -lxml2 -lz -licucore -lm -lcurl -lxml2 -lz -licucore -lm -lfreetype -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm /usr/local/Cellar/libiconv/1.15/lib/libiconv.dylib -lssl -lcrypto
Yeah, compose install success after that.
> cd /Users/hluo/tool/flarum
> composer install
Set Up Nginx Configuration
user hluo staff;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
root /opt/flarum;
index index.php index.html index.htm;
location / { try_files $uri $uri/ /index.php?$query_string; }
location /api { try_files $uri $uri/ /api.php?$query_string; }
location /admin { try_files $uri $uri/ /admin.php?$query_string; }
location /flarum {
deny all;
return 404;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY "";
fastcgi_index index.php;
}
location ~* \.html$ { expires -1; }
location ~* \.(css|js|gif|jpe?g|png)$ {
expires 1M;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidat";
}
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types application/atom+xml
application/javascript
application/json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
#text/html -- text/html is gzipped by default by nginx
text/plain
text/xml;
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
}
}
Visit the Page
http://localhost/
Create MySQL Database First
> create database flarum;
> use mysql;
> grant all privileges on flarum.* to flarum@"%" identified by 'flarum';
> flush privileges;
Visit the page and set up the database.
Set Up on CentOS
Similar steps with MAC, some differences are as follow:
> ./configure --prefix=/home/carl/tool/php-7.2.12 --enable-fpm --with-fpm-user=carl --with-fpm-group=staff --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --enable-ftp --with-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-maintainer-zts --enable-fileinfo
Install Nginx On CentOS
> ./configure --prefix=/home/carl/tool/nginx-1.14.0
> make
> make install
Put in the Working directory
Set Composer and Flarum
> sudo curl -sS https://getcomposer.org/installer | php
> sudo mv composer.phar /usr/local/bin/composer
> sudo chmod a+x /usr/local/bin/composer
> composer --version
Composer version 1.7.3 2018-11-01 10:05:06
Set Up Flarum
> mkdir flarum
> cd flarum/
> composer create-project flarum/flarum . --stability=beta
Start PHP-FPM, start Nginx, We can visit http://localhost
Set Up MySQL on RaspberryPi
> sudo apt-get install mysql-server
> sudo vi /etc/mysql/my.cnf
Change bind-address to 0.0.0.0
Restart MySQL
> sudo service mysql restart
After Post One Discussion, Here is the Issues on Page
Warning: count(): Parameter must be an array or an object that implements Countable in /home/carl/tool/flarum/vendor/flarum/core/src/Core/Post/RegisteredTypesScope.php on line 52
Fatal error: Uncaught RuntimeException: Unable to emit response; headers already sent in /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Response/SapiEmitterTrait.php:37 Stack trace: #0 /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Response/SapiEmitter.php(30): Zend\Diactoros\Response\SapiEmitter->assertNoPreviousOutput() #1 /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Server.php(167): Zend\Diactoros\Response\SapiEmitter->emit(Object(Zend\Diactoros\Response)) #2 /home/carl/tool/flarum/vendor/flarum/core/src/Http/AbstractServer.php(36): Zend\Diactoros\Server->listen(Object(Zend\Stratigility\NoopFinalHandler)) #3 /home/carl/tool/flarum/index.php(16): Flarum\Http\AbstractServer->listen() #4 {main} thrown in /home/carl/tool/flarum/vendor/zendframework/zend-diactoros/src/Response/SapiEmitterTrait.php on line 37
Maybe because of the PHP Version, Let’s try in Docker Installation
References:
https://github.com/flarum/flarum
https://flarum.org/docs/installation/
https://www.lijiaocn.com/%E6%96%B9%E6%B3%95/2017/11/21/flarum-usage.html
https://github.com/flarum/flarum
https://hk.saowen.com/a/1be15c911e8571cc31eae0a27be8ee1b2a654a653b10f8f36b901e915974e31c
发表评论
-
Stop Update Here
2020-04-28 09:00 316I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 475NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 368Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 369Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 336Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 430Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 436Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 374Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 455VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 384Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 478NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 423Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 337Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 247GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 450GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 328GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 314Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 317Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 294Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 312Serverless with NodeJS and Tenc ...
相关推荐
Lenovo Dynamic System Analysis Installation and User's Guide
Lenovo System x3250 M4 Installation and Service Guide
Telemecanique System Planning and Installation Guidepdf,Telemecanique System Planning and Installation Guide
Lenovo System x3750 M4 Types 8752 and 8718 Installation and Service Guide
用户可以按照本章内容更新服务器的固件,进行服务器配置,使用ServerGuide Setup and Installation CD或Setup Utility进行初始设置。此外,还介绍了Boot Manager的功能,以及如何启动备份服务器固件。服务器集成的...
Wise Installation System汉化破解版 Wise Installation System汉化破解版 Wise Installation System汉化破解版 Wise Installation System汉化破解版
The information in this documentation is subject to change without notice and does not represent a commitment on the part of Schneider Electric Software, LLC. The software described in this ...
系统级封装(System on Package,SOP)技术是一种新兴的系统集成概念,它将器件、封装和系统集成在一起,实现了电子设备的微型化和多功能集成。与系统级芯片(System on Chip,SoC)技术相比,SOP在集成电路...
The solutions of Introduction to VLSI Circuits and Systems
一本关于射频设备及系统设计的好书,如果你是射频领域的,不可错过
IBM System StorageDS3500 Introduction and Implementation Guide IBM存储安装说明 DS3500安装说明,使用说明,IBM redbook, IBM红宝书
从标题《SQLite Database System Design and Implementation》以及提供的部分内容来看,本书的核心知识点包括: 1. 关系型数据库管理系统(RDBMS)的基本概念:本书在开头部分回顾了关系型数据库的一些基础概念,...
Wise Installation System v9.02是一款在Windows平台上广泛使用的专业安装制作工具,尤其受到用户喜爱,尤其在Windows XP和Windows 7系统环境下表现出色。它以易用性和高效性为特点,帮助软件开发者和系统管理员快速...
a deep cognition of linear system
Nullsoft Installation System 是一个小巧高效的安装软件。可通过样例修改或根据自己要求编写 NSI 脚本文件来定制自己的安装系统,可实现许可协议的显示、安装类型的选择、写入注册表、写入INI文件、连接程序...
《计算机系统设计原理》是第一本阐述计算机系统设计中的基本原理和抽象的教材,是麻省理工开放式课程计划(MIT Open Courseware)中“计算机系统工程”课程的主教材。计算机系统的基本原理横跨于操作系统、网络、...
Model Predictive Control System Design and Implementation Using MATLAB Model Predictive Control System Design and Implementation Using MATLAB
Introduction to radar system 2rd