Ubuntu Server builds its own personal blogs and other websites

Source: Internet
Author: User
Tags vps

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.