In this article, you can get information about installing BookStack on ** CentOS 7 **.
- This blog is a translation from the English version. You can check the original from here. We use some machine translation. We would appreciate it if you could point out any translation errors. *
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)
Find the line’cgi.fix_pathinfo = 1’in the file, uncomment this line and change it to 0 as shown below.
Save the file and exit the text editor.
Now edit the pool configuration file using any text editor.
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.
Related blog articles
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.
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.
This page explains how to use php sdk for image search.
Log Service SDK for PHP is used to set / acquire log data in Alibaba Cloud Log Service.
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. ..
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.
- Alibaba Cloud is the No. 1 (2019 Gartner) cloud infrastructure operator in the Asia-Pacific region with two data centers in Japan and more than 60 availability zones in the world.
Click here for more information on Alibaba Cloud.
Alibaba Cloud Japan Official Page *