Use xampp+wordpress to build a personal blog _php tutorial

Source: Internet
Author: User
Tags phpmyadmin
First, the preparatory work:

< span="">

XAMPP is a version of Apache that is easy to install and contains MySQL, PHP, and Perl. XAMPP is really easy to install and use: Just download, unzip, start.

To date, there are four versions of the XAMPP:

(1) for Linux

(2) for Windows

(3) for Mac OS X

(4) for Solaris

XAMPP is free and you simply download and unzip the XAMPP to complete the installation. Here we use the XAMPP version for Windows. You can download the corresponding XAMPP version for installation according to the system you are using.

XAMPP Download Address: http://www.apachefriends.org/zh_cn/xampp.html

< span="">

Using WordPress can build a powerful network information publishing platform, but more is applied to personalized blog. For blog application, WordPress can let you save worry about the background technology, focus on the content of the site

Wrodpress requires support for the following environments:

(1) php:5.2.4 or later

(2) mysql:5.0 or later

(3) Apache mod rewrite module (optional, to support "fixed link" and "Site network" function)

Of course, here we use XAMPP with WordPress, without us to configure PHP and install MySQL, Apache environment, only need to install XAMPP can support wrodpress build.

wrodpress Download Address: https://cn.wordpress.org/

Second, the environment construction:

The preparation is complete, and we begin to build the environment:

We use the download Good XAMPP installation package for installation, the installation process is very simple, here is not detailed, I believe we will install it, hehe. Here is the XAMPP program that starts after the installation is complete:

For example, the newly installed program appears as a red fork in the service column because none of the services are installed, and you can click on the Red Fork to install it. After installation, the Red Fork will turn into a green tick accordingly.

Then you can start Apache and MySQL service.

It is important to note that if you have IIS-related services installed on your computer, Apache will prompt port 443 and port 80 to be occupied because IIS is consuming both ports. Click the config button for Apache line:


Click Apache (httpd.conf) to open the Apache configuration file and change the 80 in the file to 801 (or the port number that is not occupied).

Click Apache (httpd-ssl.conf) to open the Apache configuration file, change the 443 in the file to 448 (or the port number that is not occupied)

Then click on the Start button to enable the service, you will find that the service can be enabled normally.
When we get here, our environment is basically built.

Three, the environment configuration:

The idea behind XAMPP is to provide a set of easy-to-install distributions for developers who want to enter the world of Apache. For the convenience of developers, XAMPP is configured by default to turn all features on.

From a security standpoint, the default configuration is not ideal and is not safe for production environments-do not use XAMPP in such environments.

Click on the XAMPP program in Apache line to the admin button to enter the configuration.

Here's the information, this article only describes the "security" This configuration, other information friends can find out for themselves.

Click "Security" will be http://localhost:801/security/index.php this page provides a quick overview of the XAMPP post-installation security status.:

Click the Red Flag link for the security console to make the security settings for MySQL and the XAMPP directory protection settings. On the page we set the root user's access password to MySQL. There are also users and passwords that are accessed by the XAMPP directory.

After Setup, let's test if the user password is set correctly.

(1), we first to verify the AMPP directory access to the user and password. To refresh the page, the following page will pop up (because the XAMPP directory is protected and requires a user name and password to access):

Set the user name, password to fill in the previous, OK. If normal access is available, the user and password for AMPP directory access are in effect.

(2), next we will verify the MySQL database password.

Click on the "CD set" link on the http://localhost:801/xampp/page and if the following instructions appear, the password is valid:

We need to make changes to the database password in the file. We found H:\xampp\htdocs\xampp\cds.php (this is the test catalogue for this, friends to modify according to their own situation). Open and then find

The default password here is empty. We'll change it to the database password we set earlier. (Note that there are two places in this file that need to be modified, so please change both of them to facilitate testing). After the modifications are saved, we go back to the previous page and reopen the CD set page to verify that it was successful. As follows:

Here, we have verified the user and password of the AMPP directory Access and the MySQL database password.

Iv. MySQL database management:

(1), PhpMyAdmin is a set of PHP programs that can be used to manage mysql-server and a single database, and is a convenient management tool for those unfamiliar with MySQL command-line directives.

Enter http://localhost:801/phpmyadmin/in the browser to enter the phpMyAdmin management background, you can manage the MySQL management. How to operate, how to go deep into the configuration, in this article is no longer detailed, friends can go to study, only to learn, to drill down, to operate, will have progress.

(2), with the previous setup of the MySQL user password to log in, we switch to "database", create a new database, in order to build WordPress below, we create a database called WordPress.

Five, wrodpress start:

(1), will download good people wrodpress files extracted into the directory H:\xampp\htdocs (directory according to their respective circumstances). We have already set up Apache, MySQL environment, so we next, complete some wordpress configuration can be accessed.

(2), configuration WordPress has two methods, one is to manually modify the file configuration, and the other is the wizard provided by WordPress to complete the configuration.

A): Open the \wordpress folder under the wp-config-sample.php file, this file is a sample configuration file provided by WordPress, we can modify the other, and save to wp-config.php. This completes the configuration manually. Through this file we can configure "database name" "Database user name" "Database Password" "host" and so on.

b): If you are unfamiliar with the configuration file, we can configure it through a wizard. Type http://localhost:801/wordpress/in the browser if it is not configured, WordPress will provide a configuration wizard.

The wizard configures "database name" "Database username" "Database Password" "Host" (note here the database name is the database WordPress we created earlier, if not created, the wizard will prompt you to create the database operation first.) The database is also generated, as well as part of the site information, background login user, login password and so on.

OK, finish your previous work. Next we go to visit our site:

Front Desk: http://localhost:801/wordpress/

Backstage: http://localhost:801/wordpress/wp-login.php

http://www.bkjia.com/PHPjc/440274.html www.bkjia.com true http://www.bkjia.com/PHPjc/440274.html techarticle First, Preparation: XAMPP is an easy-to-install Apache distribution with MySQL, PHP, and Perl. XAMPP is really easy to install and use: Just download, unzip, start ...

  • 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.