


ThinkPHP framework construction and common problems (XAMPP installation failed, Apache/MySQL startup failed), thinkphpxampp_PHP tutorial
ThinkPHP framework construction and common problems (XAMPP installation failure, Apache/MySQL startup failure), thinkphpxampp
This article shares in detail the problems encountered when building the ThinkPHP framework, for Everyone has provided solutions, the details are as follows
Part One: Framework Construction
I am also new to ThinkPHP, so I will record my current experience and learning steps in a way that I think is easier to understand.
To use ThinkPHP, you must first set up the environment. The following two general steps will be introduced:
Step one: Download the software
1. Xmapp (this software integrates Apache, MySQL, etc. and is very convenient to use)
2. Download ThinkPHP3.2.3
Step 2: Build the framework
1. After installing xmapp, we can see a htdocs folder, and we can unzip the downloaded ThinkPHP3.2.3 into this folder;
2. Run XAMPP Control, open Apache and MySQL, as shown in the figure below
3. Open the browser, enter localhost and press Enter. Under normal circumstances, the following interface will appear
4. If the above interface appears, it means that the basic framework has been successfully built! , and we noticed that there is a dashboard behind the browser address bar. This is because we have not modified anything, so it displays the page under the dashboard by default.
Part 2: Frequently Asked Questions
First type: XAMPP installation failed
Method 1: You can restore all the previous operations, that is, uninstall XAMPP, restore or delete all the configuration files you should have, and then reinstall . I've done this before, and experiments show it works.
Method 2: Download and install vcredist_x86 in my network disk, and then install XAMPP. I think this is better, because otherwise there may be problems later. I’m not sure. I just explained my solution.
Second type: Apache startup failed
The first situation: Port 80 is occupied
Solution:
1. The simplest and crudest way: change the port number in the configuration file to something else. 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 configurations of the document;
b, Ctrl f, search for 80, find the locations as shown in the picture, change 80 to other ports, I changed it to 81, you need to enter netstat -an in the command line to check which ports of your computer are blocked occupied, or directly click the button Netstat in the upper right corner of XAMPP to view and select the unoccupied ports.
2. Check the port occupancy, find the process occupying port 80, open the task manager and kill the process. I may be a little inaccurate here, but the method is like this. I won’t go into specific measures because my modifications will involve other places.
Second case: Port 443 is occupied, because in addition to occupying port 80, the startup of Apache will also occupy port 443
Solution:
1. The first method is the method mentioned above, which is to kill the process occupying port 443;2. There is a simpler way, open the httpd-ssl.conf file in the xampp installation directory (C:xamppapacheconfextrahttpd-ssl.conf), I installed it on the C drive, or click Apache's Config in xampp button, select httpd-ssl.conf, find the sentence Listen 443, and change the 443 port to 4433 or other;
3. Open the XAMPP installation directory, modify the apacheconfhttpd.conf file, find the sentence Include "conf/extra/httpd-ssl.conf", and comment it out.
The third situation: the VC runtime library is missing, just download vcredist_x86 from my network disk and install it, as mentioned before.
Third type: MySQL failed to start
1. 3306 port problem, the solution is similar to the aboveFinally, if you find it useful, please give it a like and continue to follow the articles shared by the editor. Thank you!
Articles you may be interested in:
- Detailed graphic and text explanation of setting up PHP running environment in Windows server 2008 (php5.3)
- Tutorial on setting up PHP development environment under Mac
- Building website development environment with Apache MySql PHP under mac
- Tutorial on building IIS8.5 PHP5.5.4 running environment under Win8.1 system
- Win2012 R2 IIS8.5 PHP (FastCGI) MySQL running Environment building tutorial
- Sina SAE building PHP project tutorial
- The easiest way to build Nginx and PHP environment in Ubuntu
- Building PHP5.6 environment under WIN8.1
- Use PHPCMS to build a wap mobile website

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

IIS and PHP are compatible and are implemented through FastCGI. 1.IIS forwards the .php file request to the FastCGI module through the configuration file. 2. The FastCGI module starts the PHP process to process requests to improve performance and stability. 3. In actual applications, you need to pay attention to configuration details, error debugging and performance optimization.

Safely handle functions and regular expressions in JSON In front-end development, JavaScript is often required...

In MySQL, the function of foreign keys is to establish the relationship between tables and ensure the consistency and integrity of the data. Foreign keys maintain the effectiveness of data through reference integrity checks and cascading operations. Pay attention to performance optimization and avoid common errors when using them.

Display and processing of percentage numbers in Java In Java programming, the need to process and display percentage numbers is very common, for example, when processing Excel tables...

SQL is a standard language for managing relational databases, while MySQL is a database management system that uses SQL. SQL defines ways to interact with a database, including CRUD operations, while MySQL implements the SQL standard and provides additional features such as stored procedures and triggers.

The main difference between MySQL and MariaDB is performance, functionality and license: 1. MySQL is developed by Oracle, and MariaDB is its fork. 2. MariaDB may perform better in high load environments. 3.MariaDB provides more storage engines and functions. 4.MySQL adopts a dual license, and MariaDB is completely open source. The existing infrastructure, performance requirements, functional requirements and license costs should be taken into account when choosing.

MySQL is suitable for rapid development and small and medium-sized applications, while Oracle is suitable for large enterprises and high availability needs. 1) MySQL is open source and easy to use, suitable for web applications and small and medium-sized enterprises. 2) Oracle is powerful and suitable for large enterprises and government agencies. 3) MySQL supports a variety of storage engines, and Oracle provides rich enterprise-level functions.
