listen = /run/php-fpm/listen. To do so open the /etc/php-fpm.d/www.conf file edit the lines highlighted in yellow: After googling around, I added a config file: /etc//nginx. We’ll change the user to nginx and switch from TCP socket to Unix socket. How to update my Nginx with yum on CentOS 7 Asked 6 years, 11 months ago Modified 6 years, 5 months ago Viewed 16k times 6 I used yum install nginx on my ECS server, but the version is not high enough to support http2. ![]() We installed PHP FPM because we will be using Nginx as a web server.īy default PHP FPM will run as user apache on port 9000. The recommended PHP version for WordPress is PHP 7.2.Īnd all required PHP extensions run the following commands: sudo yum install epel-release yum-utils sudo yum install sudo yum-config-manager -enable remi-php72 sudo yum install php-cli php-fpm php-mysql php-json php-opcache php-mbstring php-xml php-gd php-curl Named wordpress, user named wordpressuser and to grant all necessary permissions to the user: CREATE DATABASE wordpress CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci GRANT ALL ON wordpress.* TO IDENTIFIED BY 'change-with-strong-password' FLUSH PRIVILEGES EXIT Installing PHP 7.2 #ĬentOS 7 ships with PHP version 5.4. Login to the MySQL shell by executing the following command: mysql -u root -pįrom within the MySQL shell, run the following SQL statements to create a database If you already don’t have MySQL or MariaDB installed on your Ubuntu server you can install by following one of the instructions below: The first step is to create a MySQL database, MySQL user account and grant access to the database ![]() WordPress stores its data and configuration in a MySQL database. You can generate a free Let’s Encrypt SSL certificate by following these instructions
0 Comments
Leave a Reply. |