thinkphp Frame Construction and FAQs (XAMPP installation failure, Apache/mysql start failure), THINKPHPXAMPP
This article for you to share in detail the construction of the thinkphp framework encountered problems, for everyone to provide a solution, the specific content as follows
The first part: frame construction
I was just in touch with thinkphp, so I recorded my current experience and learning steps in a way that I thought was easier to understand.
To use thinkphp first is to set up the environment, the following two general steps to introduce:
First step: download software
1. Xmapp (This software integrates Apache, MySQL and so on, it is convenient to use)
2, ThinkPHP3.2.3 download
Step Two: build the framework
1, will xmapp installation, we can see a htdocs folder, we can download the good ThinkPHP3.2.3 extracted to this folder;
2, run Xampp Control, open Apache and MySQL, as shown in
3, open the browser, input localhost, enter, under normal circumstances will appear the following interface
4, if the above interface, it represents the basic framework has been successfully built! , and we notice that there is more dashboard behind the browser's address bar, because we haven't modified anything, so it shows the page under dashboard by default.
Part II: frequently asked questions
The first type: XAMPP Installation Failed
method One: You can restore the previous actions, that is, the XAMPP uninstall, the configuration files you have to restore or delete, and then reinstall. I've done it, and the experiment shows it's possible.
method Two: the vcredist_x86 of my net disk is downloaded and installed, and then installed XAMPP. I think this is better, because it seems that there will be problems, not very clear, I just explained my solution.
The second type: Apache failed to start
First case: 80 ports are occupied
Workaround:
1, the most simple rough way: The configuration file inside the port number is changed to other, the method is as follows:
A, open xampp, click on the Apache corresponding config button, select the first line: Apache (httpd.config), modify the part of the document configuration;
B, ctrl+f, search 80, find the location, respectively, change 80 to another port, I modified to 81, this to the command line to enter Netstat-an to see your computer which ports are occupied, Or simply click the button netstat in the upper right corner of the XAMPP to see which ports are not occupied.
C, after the modification to start Apache again OK, if still fail, please see below a failure situation.
2, check the port occupancy, find a process that occupies 80 ports, open Task Manager to kill the process. I may be a bit inaccurate here, but the way it is, the specific measures will not be mentioned, because my amendment will involve other places.
Second case: 443 port is occupied, because in addition to occupy 80 ports, Apache boot will also occupy 443 port
Workaround:
1, the first method is said above that way, will occupy 443 port process kill off;
2, there is a simple way to open the XAMPP installation directory under the httpd-ssl.conf file (C:\xampp\apache\conf\extra\httpd-ssl.conf), I installed in the C drive, Or click on the Apache Config button in xampp, select httpd-ssl.conf, find listen 443, and change 443 port to 4433 or other;
3, open XAMPP installation directory, modify the \apache\conf\httpd.conf file, find include "conf/extra/httpd-ssl.conf" This sentence, it can be commented out.
The third situation: the lack of VC runtime, download My network disk vcredist_x86 installation can, mentioned before.
The third type: MySQL failed to start
1, 3306 port problem, the solution is similar to the above
Finally, if you feel useful, just a praise, continue to pay attention to the small series of sharing articles, thank you!
Articles you may be interested in:
- Windows Server 2008 Build PHP running Environment diagram (php5.3)
- Tutorial on building PHP development environment under MAC
- Apache + MySql + PHP build Web development environment under Mac
- iis8.5+php5.5.4 running Environment Tutorial under Win8.1 System
- Win2012 R2 iis8.5+php (FastCGI) +mysql Run Environment Construction tutorial
- Sina SAE Build PHP Project tutorial
- The simplest way to build an nginx and PHP environment in Ubuntu
- Build PHP5.6 Environment under WIN8.1
- Use PHPCMS to build WAP mobile website
http://www.bkjia.com/PHPjc/1121285.html www.bkjia.com true http://www.bkjia.com/PHPjc/1121285.html techarticle thinkphp frame Construction and common problems (XAMPP installation failure, Apache/mysql start failure), thinkphpxampp this article for everyone to share in detail the building thinkphp framework encountered problems, for everyone ...