PHP learning-Development Environment installation, php-Development Environment
(Just use this series to document my PHP learning path) 1. Server Installation
Common PHP servers include Apache, IIS, Tomact, and Nginx ....
Here we will demonstrate how to use the Tomcat Integrated Installation Package XAMPP (Apache + MySQL + PHP + PERL). You can download the latest installation package of XAMPP from the official website. Decompress the package and install it.
Except for the installation address, you may need to change it. You can always agree to the installation by default until the installation is complete. Then you can find it in the beginning.
Then open
Click start of Apache to test.
Possible errors:
1. Environment Error
If the following page reports
17:07:17 [Tomcat] Attempting to start Tomcat app...
17:07:18 [Tomcat] Tomcat Started/Stopped with errors, return code: 1
17:07:18 [Tomcat] Make sure you have Java JDK or JRE installed and the required ports are free
17:07:18 [Tomcat] Check the "/xampp/tomcat/logs" folder for more information
If the Java JDK environment is not installed in your local environment, you can download and install it from the official website. The procedure is as follows:
2. After the installation is complete,Configure Environment Variables
For environment variable configuration, here we use win7 as an example: Right-clickComputer -- properties -- advanced system settings.
3. Click the following environment variables. Then, click New in the system variables column, and enter the following:
Name: JAVA_HOME
Variable value:The installation path
4. Click create in the above column. The content is as follows:
Name: CLASS_PATH
Variable value:.; % JAVA_HOME % \ lib \ tools. jar
Note that all symbols are in English.
6. There is a path environment variable in the system environment variable. select edit and add JAVA_HOME. Add % JAVA_HOME % \ bin at the end;
6. test whether the java environment is configured successfully.
Press win + R and Enter cmd to bring up the command line control window. Enter java-version to check whether the version is displayed.
2. Port Error
Generally, a port error is a value. The port required by the software is occupied by other software. There are two solutions to this problem:
1. Release the occupied port
Start-> Run-> CMD (or enable running with the Windows key + R shortcut)
Enter netstat-ano and press enter to view the port usage.
(Of course, you can also use netstat-ano | findstr "80" to directly view the usage of your corresponding port, for example)
Then continue typing tasklist | findste "7588"
For example, httpd.exe is the application that occupies port 80.
Continue typing taskkill/f/t/im httpd.exe
You can close this program. (Complete)
2. Change the Apache Port
Open XAMPP and click Config
Open the httpd. conf configuration file (if port 80 is occupied), find Listen 80, change 80 to 88, or 8080, which does not affect the vacant ports of other programs.
Open the httpd-ssl.conf configuration file (if port 443 is occupied), locate Listen 443, and change it to 444.
Then restart. (Complete)
PS: if other services are started and the same port is occupied, the above method is also available.
2. Phpstorm Installation
Download the latest software from the official website and install it.
Then, the following page is displayed:
Registration Method:
Select "License server" when registering
Http://idea.lanyus.com/
Or:
Http://idea.qinxi1992.cn/
Click "OK" to activate JetBrains products.
PS: If the downloaded version is cracked, it will be cracked according to the method provided by the other party.
3. Install Navicat premium
You can download the cracked version from the Internet and crack it according to the method provided by the other party. You can also use cloud Resources
Link: http://pan.baidu.com/s/1mi5j9Ny password: mjrj