Ubuntu Build Web server build wordpress blog with apache2

Source: Internet
Author: User
Tags php and mysql install wordpress wordpress blog


Ubuntu Build Web server build wordpress blog with apache2

There are 5 main steps, namely:

1: Install MySQL.

2: Install Apache2

3: Installing the PHP5 and its components

4: Install WordPress



1th Step: Install MySQL This step is very simple ....

sudo apt-get install Mysql-server



Enter user name and password .....







Test it .... It's done.





2nd Step: Install Apache2


sudo apt-get install apache2



Installation Complete



Enter 127.0.0.1 in the browser to see Apache2 's test page




**apache2 installed, the default file is stored in the/var/www/html, if you want to join the page and so put it here

Restart of **apache2

/etc/init.d/apache2 restart



3rd Step: Installing PHP5 and its components


Apt-get Install PHP5 LIBAPACHE2-MOD-PHP5

And a bunch of ...

Apt-get Install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming Php5-ps Php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl




PHP5 installation Complete



Test php5 ..... Create a new info.php file in/var/www/html to see if you can access it properly.





Looks like it can be accessed normally ...



And then the components that install PHP and MySQL





After the installation, more things about MySQL ....




The above PHP even if installed

By the way, install the phpMyAdmin






Select the following two items, Apache, no






phpMyAdmin can not be opened directly in the browser, need to build a shortcut

sudo ln-s/usr/share/phpmyadmin/var/www/html




And then we can open the phpMyAdmin interface.




A Web server on Ubuntu even built ...


4th Step: Build WordPress

To put it simply:

Download a wordpress file from the official website, unzip and modify the database name in Config-simple, database user name, database password and Save as config file, then move to/var/www/html.


Build database:



To change the configuration file of WP:





Mobile WP: (should be moved directly under the HTML



Simple installation



Local access:



Try a different computer ...

There is in the LAN after the construction of WordPress, with other machine access will not be normal display. The workaround is to find the Wp_options field in the WordPress data in phpMyAdmin, modify the value of SiteURL and home two data to "http://Your host's IP address/wordpress".



The overall is very simple ...


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.