Set up WordPress four.nine On Ubuntu 16.10/16.04
open terminal
1: Set up Apache Internet Server
$ sudo apt-get set up apache2 apache2-utils
$ sudo systemctl allow apache2 $ sudo systemctl get started apache2 To check whether or not the server is working open internet browser and input http://your server upload
apache2 display appearing then good enough
Observe: The Apache default root listing is /var/www/html
2: Set up MySQL Database Server
$ sudo apt-get set up mysql-client mysql-server be aware: All over the bundle set up, you’re going to be brought on to set the root consumer password for mysql
three: Set up PHP and Modules
$ sudo apt-get set up php7.Zero php7.Zero-mysql libapache2-mod-php7.Zero php7.Zero-cli php7.Zero-cgi php7.Zero-gd check if php is operating in collaboration with the internet server, we want to create a data.php
document within /var/www/html
$ sudo vi /var/www/html/data.php
And paste the code under into the document, reserve it and go out.
<?php phpinfo(); ?> When this is finished, open your internet browser and kind within the this tackle http://server_address/data.php
You must have the ability to view the php data web page under as a affirmation
four: Set up WordPress CMS
$ wget -c http://wordpress.org/newest.tar.gz $ tar -xzvf newest.tar.gz
sudo rsync -av wordpress/* /var/www/html/
$ sudo chown -R www-data:www-data /var/www/html/ $ sudo chmod -R 755 /var/www/html/
Five: Create WordPress Database
$ mysql -u root -p
mysql> CREATE DATABASE wp_myblog; mysql> GRANT ALL PRIVILEGES ON wp_myblog.* TO ‘your_username_here’@’localhost’ IDENTIFIED BY ‘your_chosen_password_here’; mysql> FLUSH PRIVILEGES; mysql> EXIT; Move the /var/www/html/ listing and rename present wp-config-sample.php
to wp-config.php
:
$ sudo mv wp-config-sample.php wp-config.php then replace it together with your database data below the MySQL settings phase (check with the highlighted containers within the symbol under):
// ** MySQL settings – You’ll get this data out of your internet host ** // /** The title of the database for WordPress */ outline(‘DB_NAME’, ‘database_name_here
‘); /** MySQL database username */ outline(‘DB_USER’, ‘username_here
‘); /** MySQL database password */ outline(‘DB_PASSWORD’, ‘password_here
‘); /** MySQL hostname */ outline(‘DB_HOST’, ‘localhost
‘); /** Database Charset to make use of in developing database tables. */ outline(‘DB_CHARSET’, ‘utf8
‘); /** The Database Collate kind. Do not trade this if unsure. */ outline(‘DB_COLLATE’, ''
); restart the internet server and mysql carrier
$ sudo systemctl restart apache2.carrier $ sudo systemctl restart mysql.carrier Open your internet browser, then input your server tackle: http://server-address
to get the welcome web page