ThinkPHP framework setup and FAQs (XAMPP installation failure, Apache/MySQL startup failure), thinkphpxampp_PHP tutorial

Source: Internet
Author: User
Tags php development environment vc runtime
ThinkPHP framework setup and FAQs (XAMPP installation failure, ApacheMySQL startup failure) and thinkphpxampp. ThinkPHP framework setup and FAQs (XAMPP installation failure and ApacheMySQL startup failure). This topic describes thinkphpxampp problems encountered during ThinkPHP framework setup, thinkPHP framework setup and FAQs (XAMPP installation failure, Apache/MySQL startup failure), thinkphpxampp

This article gives you a detailed explanation of the problems encountered when setting up the ThinkPHP framework and provides a solution. the specific content is as follows:

Part 1: Framework construction

I am also new to ThinkPHP, so I will record my current experiences and learning steps in a way that I think is easier to understand.

To use ThinkPHP, we must first set up the environment. the following two general steps are described:

Step 1:Download Software

1. Xmapp (this software integrates Apache and MySQL for ease of use)

2. download ThinkPHP3.2.3

Step 2:Build a framework

1. install the xmapp. we can see an htdocs folder. we can decompress the downloaded ThinkPHP3.2.3 to this folder;

      

2. run XAMPP Control and enable Apache and MySQL, as shown in

  

3. open the browser, enter localhost, and press Enter. Normally, the following page appears:

4. if the above interface appears, it indicates that the basic framework has been successfully built !, In addition, we noticed that there is a dashboard behind the address bar of the browser. this is because we haven't modified anything, so it displays the page under the dashboard by default.

Part 2: FAQs

First:XAMPP installation failed

Method 1:You can restore all the previous operations, that is, detach XAMPP, restore or delete all the configuration files you have created, and then reinstall them. I have done this, and the experiment shows that it is okay.

Method 2:Download and install vcredist_x86 from my online storage, and then install XAMPP. I think this is better, because it seems that there will still be problems in the future and it is not clear. I just explained my solution.

Second:Apache startup failed

First case: port 80 is occupied

  Solution:

1. the simplest and most crude method: change the port number in the configuration file to another one. The method is as follows:

A. Open XAMPP, click the Config button corresponding to Apache, select the first line: Apache (httpd. config), and modify some configuration of the document;

B. Ctrl + f. search for 80, locate the location, change 80 to another port, and change it to 81, enter netstat-an in the command line to check which ports are occupied on your computer, or click Netstat in the upper-right corner of XAMPP to check which ports are not occupied.

        

 

C. after the modification, start Apache again. if it still fails, see the following failure situation.

2. check the port usage, find the process that occupies port 80, and open the Task Manager to kill the process. I may be a bit inaccurate here, but the method is like this. I will not discuss the specific measures, because the changes will involve other places.

Case 2: port 443 is occupied, because in addition to port 80, Apache startup also occupies port 443.

  Solution:

1. The first method is the method mentioned above. kill the process that occupies port 443;

2. there is also a simple way to open the httpd-ssl.conf file under the xampp installation directory (C: \ xampp \ apache \ conf \ extra \ httpd-ssl.conf), I installed on the C drive, or click the Apache Config button in xampp, select the httpd-ssl.conf, find Listen 443, change port 443 to 4433 or other;

3. open the XAMPP installation directory, modify the \ apache \ conf \ httpd. conf file, find the Include "conf/extra/httpd-ssl.conf" sentence, comment it out.

Case 3: if the VC runtime library is missing, download vcredist_x86 from my online storage and install it as mentioned earlier.

Third: MySQL startup failure

1. the solution for Port 3306 is similar to the above

Finally, if you find it useful, I would like to like it and continue to pay attention to the articles shared by Xiaobian. thank you!

Articles you may be interested in:
  • How to set up a php runtime environment on Windows server 2008 (php5.3)
  • Tutorial on building a php development environment on Mac
  • Build a website development environment using Apache + MySql + PHP on mac
  • How to Build IIS8.5 + PHP5.5.4 runtime environment in Win8.1
  • Win2012 R2 IIS8.5 + PHP (FastCGI) + MySQL runtime environment setup tutorial
  • Sina sae php project tutorial
  • The easiest way to build Nginx and PHP environments in Ubuntu
  • Set up the PHP5.6 environment in WIN8.1
  • Build a wap mobile website using PHPCMS

Failed (XAMPP installation failure, Apache/MySQL startup failure). thinkphpxampp this article will share with you the problems encountered when building the ThinkPHP framework...

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.