Use WordPress to quickly build a nice looking website (1)

Source: Internet
Author: User
Tags php language php and mysql install wordpress
WordPress is a PHP language developed by the blog platform, users can support the PHP and MySQL database server to set up their own 's website。 With the WordPress platform, creating a website is as simple as arranging your own QQ space.

Little Fairy son I based on the Ninghao Web tutorial, I summed up the following articles, I hope that with other sites to build enthusiasts to progress together to learn.

1. Basic Preparation

1. Download Wamp (under Windows). Wamp's role is to develop a dynamic Web site or a server requires a series of software integration, so with the Wamp, you can create their own site. The Wamp inside integrates the apache,mysql,php. So with a wamp can support us to build a unique website. After the download installs the Wamp, launches the Wamp, waits for the icon to turn green after

2. To write a WordPress platform to build a website, to download a wordpress, WordPress.org This site under the download, and then unzip, and then the unpacked package renamed, name it to the name of the site you want, and then put in the Wamp directory in the WWW folder can be.

2. Start of site construction

1. Before building the site, open Wamp, select Phpadmin, after a page appears, select the database option to create a database that belongs to your own site as

2. Now because we have unpacked and renamed WordPress into the Wamp directory of the WWW, so now open the browser, enter the localhost/site name, you can appear WordPress configuration interface.

3. Because a lot of proud small users do not want to enter the extra character localhost, so some users want to remove this localhost, directly enter the site name and/can appear their own site, we want to use the virtual host building

C:\Windows\System32\drivers\etc Configure this file can be directly in the address bar to enter the name of the site you want to edit, instead of entering localhost, with the editor to open the Hosts file, Then enter the name of the 127.0.0.1 site, this 127.0.0.1 represents the IP address of the local computer, the equivalent of the latter (originally localhost) is a small alias of the local computer, which is equivalent to a new name for the local computer. This is the function of the virtual host, and did not complete, but also need to open C:\wamp\bin\apache\apache2.4.9\conf (different users this address is different, depending on your Wamp installation address) This file, Find httpd.conf This file, write a piece of code in it, configure the virtual host, tell Apache, when the site name is typed, is to enter the host, restart Wamp

The code to write
Include conf/extra/httpd-vhosts.conf (remove the # in front of this code) and write down the following code to change the following according to the site name and Wamp installation path
<virtualhost *:80>        documentroot "c:/wamp/www/memorypub"        ServerName memorypub        directoryindex index.php        <directory  "c:/wamp/www/memorypub" >            Options Indexes followsymlinks            allowoverride None            Order Allow,deny allow from all        </Directory></VirtualHost>

4. After completing the above steps, directly enter the site name, the WordPress configuration interface will appear, this configuration interface such as


The name of the database to write the name of the database generated in Phpadmin before, the user name must be root, the default is blank password, for Mac users, password is root, the other with the default value can be, after completion, click Submit, will appear page configuration interface, This is the final step to build your own website, is not a little excited about it.

5. Perfect Configuration Interface

Enter some of their own private information inside, then you can install WordPress, but you want to build the prototype of the site in the future.

3. Basic elements (article page)

Most of the site is displayed to the user is the article and page, so that this is what I said the basic elements, but some readers may have doubts, video and how to deal with the picture, in fact, in some extent, the video is only a text only video of the article composition, the same kind of picture.


WordPress is the main editor of the background interface, we can gradually improve our site according to this interface, write the article is the first step, click on the article, choose New article, you can according to our theme to write some and the site needs to display the content of the article. Note that typography is especially important, the advantage of WordPress is that we can directly see the preview, Windows users Press CTRL and view the article can be previewed. If you want to add your own CSS style, you can click the text bar in the upper right corner of the article edit bar (the default selection is visualization), you can see that this includes some HTML language. We can add our own style and some of the HTML tags we want.

WordPress has a little good is can not be published in a timely manner, scheduled or scheduled to be sent for the future maintenance and update of the site provides a great convenience.

The general article is dynamic, and the page is static, the article can show the author, publish time and other content, these display content can be selected, the same comment on this article is also optional.

Related Article

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.