Three PHP Web Rack Station

Source: Internet
Author: User
Tags apache download php language php compiler

Currently, there are integrated PHP Web site tools available under Windows, such as: Appserv, Wampserver. The software integrates Apache, PHP, MySQL, and phpMyAdmin together, greatly facilitating the developer's stand. However, these integrated station tools are often not the latest collection of stand-up software, such as Apache's latest 2.4 10, while the integration tool is 2.2, we cannot upgrade only Apache. In addition, as a people want to do web development, will not stand alone stand, is not very face? To make a long story short, get to the point where you'll summarize your custom rack process:

Usually, the station software is placed under a file, where I built a Phpde folder below the e-disk for the rack station software.

One, Apache installation

About Apache download, install and launch in the previous blog post, has given the detailed introduction, here no longer repeat.

Second, the installation of PHP

About the installation of PHP, it is estimated that there is doubt, PHP is not a language? Why do I have to install PHP? Language How to install class?

My understanding is "this PHP non-PHP", which is said to install PHP, refers to the installation of PHP compiler and operating environment, the browser and Apache can only recognize HTML and CSS language, unable to recognize the PHP language, if you want to identify, you must compile the PHP, Then execute the PHP code using the PHP module. To deliver the server and eventually to the browser.

1. Download of PHP (official website: http:www.php.net)

  

2, the installation and configuration of PHP

After downloading the PHP installation files, the extracted folder into our pre-set directory, that is, "E:\PHPDE\", PHP files are free to install, just unzip it. Of course, not after the decompression, we can write PHP files, and then Apache server can execute PHP code, but also to do the Apache and PHP connection between the configuration, the configuration is as follows:

(1) Open Apache configuration file httpd.conf

As we already know, Apache server is executed by loading module, Apache server executes PHP code is same, need to load PHP module to execute PHP code.

To add the PHP execution module in httpd.conf, add the following code:

LoadModule Php5_module E:/phpde/php-5.6.10/php5apache2_4.dll

Phpinidir "e:/phpde/php-5.6.10"

AddType application/x-httpd-php. php. phtml

As follows:

----->

(2) Modify the INI file in the php file

Modify the Php.ini-development file under the PHP folder to PHP.ini

----->

Add PHP's extension library file path in php.ini, as follows:

      

At this point, we completed the amount of PHP and Apache connection between the configuration work, in the Apache directory under the Htdocs file to place PHP files, Apache server can execute, and not the prompt to download PHP files.

    Third, the installation of MySQL

1. Download MySQL (http://www.mysql.com/)

          

     

     

2, the installation of MySQL

MySQL installation and other installation software is the same, is the next click, is in the installation process, requires user-defined database user name and password, mysql default user name is root, password has users to fill in, and MySQL's default port number is 3306, When installing MySQL, whether to change the installation path of MySQL, the subsequent server connection database has no effect, but for the sake of convenience, we custom install MySQL to our platform build path, namely: e:/phpde/. The specific installation process is not stated, mainly for the PHP connection MySQL configuration to explain, as follows:

In the php.ini file, configure:

    

    Iv. installation of phpMyAdmin

phpMyAdmin is a Web site that manages the MySQL database, manages the database in the form of a Web page, and facilitates user and developer action on the database.

1. Download of phpMyAdmin (http://www.phpmyadmin.net/)

    

2, phpMyAdmin installation configuration

phpMyAdmin after the download is complete, unzip it and place it in the Apache server's Htdocs file.

Browser input: Http://localhost/phpMyAdmin, you can enter the MySQL management interface, enter the user name and password to configure MySQL at that time.

    

    V. Installation and configuration of Discuz

Discuz is a forum template developed using PHP, which is a good example of learning PHP. Download and installation of Discuz are as follows

1, Baidu Search Discuz, you can find Discuz's official website and forum, download is very simple, not repeat

2, the download good discuz extracted to the Apache server under the Htdocs file, the installation file has Readme.txt files, are Chinese (Chinese), very easy to understand, not described.

To this end, worked hard for several days, finally self-built the PHP station, but also to a qualified PHP program ape a step closer. Self-feeling, in the process of customizing the station, oneself still learned a lot of things, than directly with the integration of the station tool is better, after all, integrated station tools, we do not have to consider the internal working principle, but directly to use. Therefore, to understand the links between the various software, self-customized station is a good choice ...

The following will formally enter the world of PHP, for their dreams, refueling!!

Three PHP Web Rack Station

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.