How to Install WordPress on Ubuntu 16.04 with Nginx and HHVM


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

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:

cp -r wordpress/* /var/www/html/
cd /var/www/html/
cp wp-config-sample.php wp-config.php
nano wp-config.php
/* 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');
chown -R www-data:www-data /var/www/html/
chmod -R 775 /var/www/html/
systemctl restart nginx
systemctl restart hhvm

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.

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 provides PHP SDK for managing application configurations with ACM for PHP programs.

Change the PHP version

Web Hosting supports PHP and uses PHP 5.3 by default.

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.

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.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

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