Installation of BookStack on CentOS 7

In this article, we will be installing BookStack Documentation Wiki on an Alibaba Cloud Elastic Compute Service (ECS) with CentOS 7. Here we are installing BookStack as a root user. And Nginx is a web server which is required to install BookStack, so first, you’ll have to install nginx on your CentOS 7 system.

Install PHP and PHP-FPM

Now nginx web server is installed on your system. Next, you’ll have to install PHP and PHP-FPM with some required extensions to install BookStack.

Add new ‘webtatic’ repository to the CentOS 7 system using rpm command below.

Now install PHP and PHP-FPM with all the required extensions. Run following command to do so.

Once, the PHP and PHP-FPM are installed on the server. Next, we need to edit the ‘php.ini’ configuration file.

(Here we are using nano text editor to edit the configuration file. You can also install it using yum -y install nano command.)

Find the ‘cgi.fix_pathinfo=1’ line in the file and uncomment this line, then change the value to 0 like below.

Save the file and exit from the text editor.

Now edit the pool configuration file using any text editor.

Change the value of the user and group to ‘nginx’ like shown below.

Next, on the ‘listen’ line, change the value in the sock file as below.

Next, find these below given lines in the file. Now uncomment lines and change the value as shown.

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

Save the file and exit from the text editor.

The configuration of PHP is completed now, finally, start PHP-FPM service and enable it to launch at boot time using the following command.

Now you have successfully installed PHP and PHP-FPM, then you will need to install MariaDB, PHP composer and finalize your installation on BookStack following the steps in this tutorial.

Related Blog Posts

How to Setup ClipBucket with Nginx on CentOS 7

ClipBucket does not restrict its installation to any specific operating system (OS). You can use any operating system (OS) of your choice; however, the installation steps would vary according to the choice of operating system.

In this tutorial, we will be installing and configuring ClipBucket and Nginx on an Alibaba Cloud Elastic Compute Service (ECS) instance with CentOS 7.

How to Install LAMP Stack for Pagekit CMS on CentOS 7.4

Pagekit is a modern open source and free content management system (CMS). Here you can get some tips in installing Pagekit CMS on CentOS 7.4.

Related Market Products

MediaWiki powered by Websoft9((LAMP | CentOS7.4))

Websoft9 MediaWiki is a pre-configured, ready to run image for running MediaWiki on Alibaba Cloud.MediaWiki is a open source wiki package written in PHP, originally used for Wikipedia.

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 for Meltdown and Spectre issues are applied.
L1 Terminal Fault vulnerability is eliminated.

Related Documentation


This page gives the instructions on the php sdk for Image Search.


Log Service SDK for PHP,used to set/get log data to Alibaba Cloud Log Service.

Related Products

Image Search

Image Search is an intelligent image service based on deep learning and machine learning technology. By incorporating image recognition and search, it allows you to search by image across different industries and business scenarios. Image Search is developed to meet the requirements of searching and finding 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 Course

Introduction to HybridDB for PostgreSQL

This course starts from the comparison between OLTP and OLAP business types and then has an introduction to Greenplum database, which is quite widely used analytic type database in the world. Then there will be an introduction about the features and operations of HybridDB for PostgreSQL, which is a database service based on Greenplum.


Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.