×
Community Blog How to Install WordPress on Ubuntu 16.04 with Nginx and HHVM

How to Install WordPress on Ubuntu 16.04 with Nginx and HHVM

In this article, you will get some information on the installation of WordPress on Ubuntu 16.04 with Nginx and HHVM on an Alibaba Cloud Elastic Compute Service (ECS).

HHVM also known as HipHop Virtual Machine is an open source virtual machine developed by Facebook that can be used for executing programs written in Hack and PHP. HHVM uses a just-in-time compilation approach for performance reasons. HHVM is faster than the traditional PHP engine from ZEND, and is used by Facebook to serve billions of web requests per day.

Prerequisites

  1. A fresh Alibaba cloud instance with Ubuntu 16.04 server installed.
  2. A static IP address 192.168.0.103 is configured on the instance.
  3. A root password is setup on the server.

Then you can click here to see the steps to install Nginx and MariaDB, configure MariaDB, install and configure HHVM. After you have successfully installed and configured these packages, you can continue to install WordPress.

Install WordPress

First, you will need to download the latest version of the WordPress from their official website. You can do this with the following command:

wget https://wordpress.org/latest.zip

Once the download is completed, unzip the downloaded file with the following command:

unzip latest.zip

Next. copy the extracted directory to the Nginx web root directory using the following command:

cp -r wordpress/* /var/www/html/

Next, change the directory to the /var/www/html/ and copy wordpress sample config file:

cd /var/www/html/
cp wp-config-sample.php wp-config.php

Next, open wp-config.php file and add database credentials which you have created earlier:

nano wp-config.php

Make the following changes:

/* The name of the database for WordPress /
define('DB_NAME', 'wordpressdb');
/* MySQL database username /
define('DB_USER', 'wordpress');
/* MySQL database password /
define('DB_PASSWORD', 'password');
/* MySQL hostname /
define('DB_HOST', 'localhost');

Save and close the file, then give proper permissions to WordPress:

chown -R www-data:www-data /var/www/html/
chmod -R 775 /var/www/html/

Finally, restart the Nginx and HHVM services.

systemctl restart nginx
systemctl restart hhvm

Then you can access your WordPress Web Installation Wizard, and you can see the details here.

Related Blog Posts

How to Install and Configure Zabbix on Ubuntu-16.04

Zabbix is an open source and enterprise-class network monitoring tool that can be used to monitor performance and availability of the server, network devices and other network components. Zabbix uses MySQL, PostgreSQL and Oracle to store its data. Zabbix also provides a user friendly web interface to monitor and track data and settings. Zabbix uses a Zabbix agent to collect the data and send it to the Zabbix server.

In this tutorial, we will go through step by step installation of Zabbix server and Zabbix client on Ubuntu 16.04 server.

How to Install LAMP on Ubuntu

This article shows how to install lamp on Ubuntu and some guides to install applications on your Ubuntu machine with LAMP.

Related Market Products

There are some products with php infrastructures built by partners can be quickly launched on Alibaba Cloud servers.

PHP high performance infrastructurepoweredbyWebsoft9(HHVM )

Websoft9 HHVM is a pre-configured, ready to run image for running HHVM on Alibaba Cloud.HHVM (HipHop Virtual Machine) is an open-source virtual machine designed for executing programs written in PHP.

Wordpress on LEMP CentOS7.2 64bits powered by IGS

On latest CentOS, integrated with one of the world’s most popular web publishing platforms for building blogs and websites. We, IGS, provide a list of images pre-integrated with most popular software for web solution. It includes ready-to-run versions of Apache/Nginx, MySQL, PHP, phpMyAdmin and all of the other software required to run each of those components. IGS image greatly simplifies the development and deployment of web applications.

Related Documentation

There are some documentation may be useful to you.

ACM PHP SDK

ACM provides PHP SDK for managing application configurations with ACM for PHP programs.

ACM PHP SDK is now open-sourced. For instructions, see Github.

Change the PHP version

Web Hosting supports PHP and uses PHP 5.3 by default.

If the default PHP version is different from what is required by your program, you can change the PHP version.

Related Products

ApsaraDB for RDS is an on-demand database service that frees you up from the administrative task of managing a database, and leaves you with more time to focus on your core business. ApsaraDB for RDS is a ready-to-use service that is offered on MySQL, SQL Server and PostgreSQL. RDS handles routine database tasks such as provisioning, patch up, backup, recovery, failure detection and repair.

Distributed Relational Database Service is a lightweight (stateless), flexible, stable, and efficient middleware product independently developed by Alibaba Group to resolve scalability issues with single-host relational databases.
DRDS is primarily used for large-scale online data operations to operate, maintain and manage distributed databases throughout their entire lifecycle. Due to is compartmentalized structure, DRDS provides an efficient way to perform operations to meet the demand of the online services for relational databases.

Alibaba Cloud Virtual Private Cloud allows the flexibility to build your cloud architecture in a logically isolated and secure environment. This means users can control their virtual networking environment, including the selection of IP address range, the creation of subnets and configuration of route tables and network gateways. Users can also segregate VPC instances into different security domains using security group features.

Related Course

Operate And Manage A Relational Database On The Cloud

In this clouder lesson, you will learn the concepts and features of RDS and how to use RDS console to host and manage a SQL database.

Implement Data Migration From Local DB to RDS with DTS - Live Demo

Data Transmission Service (DTS) helps you migrate data between data storage types, such as relational database, NoSQL, and OLAP. The service supports homogeneous migrations as well as heterogeneous migration between different data storage types.

This demonstration session shows you how to use DTS to migrate a local database to RDS instance in Alibaba Cloud.

0 0 0
Share on

Alibaba Clouder

1,446 posts | 232 followers

You may also like

Comments