Install BookStack Documentation Wiki on Elastic Compute Service on CentOS 7

In this article, you can get information about installing BookStack on ** CentOS 7 **.

PHP and PHP-Install FPM

You have now installed the nginx web server on your system. Next, install PHP and PHP-FPM with the extensions needed to install BookStack.

Add a new'webtatic' repository to your CentOS 7 system using the following rpm command.

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Now install all the extensions needed for PHP and PHP-FPM To do. Execute the following command.

yum -y install php70w-fpm php70w-mcrypt php70w-curl php70w-cli php70w-mysql php70w-gd php70w-xsl php70w-json php70w-intl php70w-pear php70w-devel php70w-common php70w-mbstring php70w-tidy php70w-zip php70w-soap curl

Once you have PHP and PHP-FPM installed on your server. Next, you need to edit the'php.ini' config file.

(Here I am editing the config file using the nano text editor. You can also install it using the yum -y install nano command)

nano /etc/php.ini

Find the line'cgi.fix_pathinfo = 1'in the file, uncomment this line and change it to 0 as shown below.

cgi.fix_pathinfo=0

Save the file and exit the text editor.

Now edit the pool configuration file using any text editor.

nano /etc/php-fpm.d/www.conf

Change the user and group values to "nginx" as shown below.

user = nginx 
group = nginx

Then, on the'listen'line, change the value in the sock file as follows:

listen = /var/run/php-fpm/php-fpm.sock

Then find the following line in the file: Uncomment here and change the value as follows:

listen.owner = nginx  
 listen.group = nginx  
 listen.mode = 0660

Finally, uncomment the environment attributes of the file for PHP-FPM.

env[HOSTNAME] = $HOSTNAME  
 env[PATH] = /usr/local/bin:/usr/bin:/bin  
 env[TMP] = /tmp  
 env[TMPDIR] = /tmp  
 env[TEMP] = /tmp

Save the file and exit the text editor.

This completes the PHP settings, but finally start the PHP-FPM service with the following command so that it can be started at startup.

systemctl start php-fpm && systemctl enable php-fpm

Now that you have successfully installed PHP and PHP-FPM, then install MariaDB and PHP composer and then [this tutorial](https://www.alibabacloud.com/blog/how-to-install-bookstack- You need to complete the installation on BookStack by following the steps on-centos-7_593993? Spm = a2c65.11461447.0.0.887218a1pk4axl).

Related blog articles

[How to configure ClipBucket on Nginx on CentOS 7](https://www.alibabacloud.com/blog/how-to-setup-clipbucket-with-nginx-on-centos-7_594803?spm=a2c65.11461447.0.0.887218 a1pk4axl)

ClipBucket does not restrict installation on any particular operating system (OS). You can use your favorite OS, but the installation procedure differs depending on the OS.

In this tutorial, you will install and configure ClipBucket and Nginx on an Alibaba Cloud Elastic Compute Service (ECS) instance using CentOS 7.

[How to install LAMP stack for Pagekit CMS on CentOS 7.4](https://www.alibabacloud.com/blog/how-to-install-lamp-stack-for-pagekit-cms-on-centos-7- 4_594646? spm = a2c65.11461447.0.0.887218a1pk4axl)

Pagekit is the latest open source free content management system (CMS). Here you can get tips for installing Pagekit CMS on CentOS 7.4.

Related market products

MediaWiki powered by Websoft9((LAMP | CentOS7.4) Websoft9 MediaWiki is a pre-configured executable image for running MediaWiki on Alibaba Cloud.

Postgres Pro Standard Database 10 (CentOS 7.5) This image contains Postgres Pro Standard Database 10. Zabbix / Mamonsu monitoring solution is installed and preconfigured. OS fixes have been applied for meltdown and Specter issues. Fixed an L1 terminal fault vulnerability.

related documents

PHP SDK This page explains how to use php sdk for image search.

PHP SDK Log Service SDK for PHP is used to set / acquire log data in Alibaba Cloud Log Service.

related products

Image Search Image Search is an intelligent image service based on deep learning and machine learning technologies. By incorporating image recognition and search, it is possible to search by images that transcend industry and business scenes. Image Search has been developed to meet the requirement to search for and find similar or identical images.

ApsaraDB RDS for PostgreSQL Known as the "world's most advanced open source database," PostgreSQL enables OLTP databases that handle enterprise-level SQL statements, supports NoSQL data types such as JSON, XML, and hstore, and supports GIS data processing. ..

Related courses

Introduction to HybridDB for PostgreSQL

This course begins by comparing the business types of OLTP and OLAP, and introduces Greenplum, an analytical database that is widely used worldwide. After that, we will introduce the functions and operations of HybridDB for PostgreSQL, which is a database service based on Greenplum.

Recommended Posts

Install BookStack Documentation Wiki on Elastic Compute Service on CentOS 7
Install Neo4j 4.1.3 on centOS
Install Vertica 10.0 on CentOS 6.10
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Install OpenFOAM v2006 on CentOS
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Install Ruby 2.7 on CentOS 7 (SCL)
Try DPDK20 SDK on CentOS7 â‘ Install
Install Ruby 2.5 on CentOS 7 using SCL
Install Java Open JDK 8 on CentOS 7
How to install MariaDB 10.4 on CentOS 8
Install apache 2.4.46 from source on CentOS7
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Install Java 9 on windows 10 and CentOS 7
Install samba4 from source code on CentOS8
Install the webmail client Rainloop on CentOS 8
How to install beta php8.0 on CentOS8
Install CentOS 7 on Raspberry pi 4 Model B
Install NextCloud on CentOS 7 with Alibaba Cloud ECS
Command to install nginx / PHP7 / php-fpm on CentOS7
Install GitLab on CentOS 8 with no internet connection
Install CMS Made Simple v2.2.2 on LAMP on CentOS 7.3
Run autossh as a systemd service on CentOS