Local debugging of the PHP + MySQL & ASP + Access Environment _ suitable for friends who want to build their own DIY websites

Source: Internet
Author: User
Tags php website how to use phpmyadmin

At present, the most mainstream enterprise websites use ASP + ACCESS and PHP + MySQL for ASP + ACCESS, which is relatively simple for those of us who use the XP system, the XP management tool comes with IIS which can be used to configure ASP Website Construction. Link: IIS installation and configuration (ASP) PHP is troublesome. Generally, Apache + MySQL + PhP must be installed, this is a huge and difficult project for people without professional computer knowledge. It takes a lot of time to build a PHP + MySQL environment. Worse, many new users often encounter such problems when configuring PHP. Such as MySQL extension and Zend installation failure. In this case, we need a fast, standard, and professional PHP suite package. Phpnow came into being to help you quickly build professional virtual hosts. Like phpnow, let's join phpnow! First download the latest phpnow from http://www.phpnow.org/download.html. Phpnow has two packages: one is the self-decompressed version of EXE (recommended in this article), and the other is the pure 7z file (without the self-decompressed version of exe ). The execution PHPnow-1.4.x.exe appears. Press enter. After the automatic decompression is completed, the init. CMD command is automatically executed to perform initialization. As shown in figure-2, a firewall prompt may appear during this period. Please allow. Figure-2: init. CMD process figure-3: remove the firewall init. CMD in 10 seconds. The renewal page is automatically displayed. (If not, open http: // 127.0.0.1 manually.) figure-4: If you only want to build a website, the above environment is sufficient. In most cases, we need to open multiple independent websites. For example, separating a forum from a home page and sharing a server with friends. In this case, the VM is used. The following describes how to use the phpnow VM. Very simple. Double-click execute D:/phpnow/PNCP. CMD (your installation path may not be D:/phpnow), enter 2, and press Enter. Follow the prompts to enter new VM information. See Figure 5. Figure 5: After the VM is opened, enter the Information and Press enter. Apache is automatically restarted to take effect. Then visit the added domain name. Note that the domain name points to your server IP address in advance. If you do not have a domain name or do not use it, you can use "virtual domain name" by editing C:/Windows/system32/Drivers/etc/hosts ". In this example, bbs.test.com is implemented by adding a line "127.0.0.1 bbs.test.com" in the next line of "127.0.0.1 localhost. Figure 6: If a VM is successfully opened, you may need to allocate a MySQL database to each VM. The following describes how to use phpMyAdmin to allocate users and databases. Enable http: // 127.1/phpMyAdmin; and log on with root. Click "permission" and then "Add new user ". Enter the new username and password. Select "create database with same name and grant all privileges ". Keep others by default. You must note that you do not select global permissions unless necessary. Click [execute. Let's look at the figure. Figure-7: Add a database user. Just give the username and password you just added to the user. Note that root has the highest permissions. Do not give the password to others easily. Okay! You now have a professional PHP server environment. What discuz! 6.0. phpwind, Dede, and phpcms are not all problems. Start your website construction journey right away. The general PHP website system installation process is: 1. Enter phpMyAdmin to create a database and remember the database name. 2. Upload the website file to the correct directory and run the install. php file for installation. During installation, enter the database name and password. 3. after the installation is complete, you can browse the website or enter the background management website and finally recommend a free and open-source PHP enterprise website system, although it is free, however, I personally feel that its functions are sufficient for SOHO and small and medium-sized enterprises. Of course, if youProgram If you have special requirements for the function, you can find someone to customize it.

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.