


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

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python are both high-level programming languages that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.


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

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

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