One, install Apache2 server
sudo apt-get Install Apache2
Second, install the MySQL server
sudo apt-get Install Mysql-server
You will be prompted to enter the password for the MySQL server at your own discretion.
Three, install php5 ubuntu14.04 | | PHP7 Ubuntu 16.04
sudo apt-get install PHP5
Install the other 2 libraries in PHP, or you will not be able to access index.php
sudo apt-get install libapache2-mod-php5sudo apt-get install libapache2-mod-php
Four, install MySQL
sudo apt-get install MySQL
Five, configure your own site template, using Typecho
It is important to note that you need to change the settings of the Apache2
nano/etc/apache2/sites-available/-default. conf
Change one of the/var/www/html to/var/www/
Six, restart Apache
sudo service apcahe2 restart
Seven, wget you need to download a link to the template, https://github.com/typecho/typecho/releases/download/v1.0-14.10.10-release/1.0.14.10.10.-release.tar.gz
wget https://github.com/typecho/typecho/releases/download/v1.0-14.10.10-release/1.0.14.10.10.- Release.tar.gz
Eight, unzip the downloaded file, some VPS comes with some VPS provider to help you install it well, if not apt-get install unzip
Unzip < download filename >
The system will put the extracted files into the current directory/typecho folder.
Copy
Cp-r./typecho/*/var/www/
Modify permissions for/var/www
Chmod-r/var/www
Nine. Build your own database
Mysql-u root-p Database Password
The database password is set before,
Set up a database
Create Database Typecho;
Exit MySQL after exiting
Ten, login your VPS IP or domain name
Complete your own settings can be accessed, at this time, to build their own personal site to this end!
Ubuntu Server builds its own personal blogs and other websites