Recently in learning to use thinkphp, many online are using a number of integrated service framework, in order to learn, here I simply to Apache, PHP to do a native integration, I hope to help you.
Steps:① Download thinkphp, PHP, Apache;
thinkphp:http://www.thinkphp.cn/
②php:http://php.net/downloads.php
It is important to note that the downloaded PHP version information, because the next time you download Apache, you need to correspond to, or in the integration of Apache + PHP process, you will be missing the relevant configuration file information.
③apache:http://httpd.apache.org/download.cgi
here when downloading the Apache version, you need to pay attention to the VC version
④ get three zip packages
⑤ Decompression, naming, configuration related files 1. Configure Apache:
1) My Apache file location:
2) Open the Apache configuration file: G:\Apache24\conf, modify the related configuration:
Define srvroot "G:/apache24": Define Apache Path According to your own situation
Listen 200: Define the port number according to your own situation
ServerName 127.0.0.1:200: Define the address of the access, note the port number
2. Configure PHP
1) My local PHP project path:
2) Copy php.ini-development renamed to php.ini as php config file
3) Open PHP.ini Profile: Add, modify related extensions (; effect of annotations)
Extension_dir = "ext"
extension=bz2extension=curlextension=fileinfoextension=gd2extension= Mbstringextension=mysqliextension=pdo_mysql
4) associated Apache and PHP, so that the Apache server can parse the relevant PHP code (if not associated with the PHP project to deploy to Apache above, when the call will open the file directly)
LoadModule php7_module "G:/php7.2.9/php7apache2_4.dll" PHP, Apache Association file, if there is no such file, the version of PHP download is problematic "g:/php7.2.9 /"PHP path address addtype application/x-httpd-php. Phpaddtype application/x-httpd-ph P. htmladdtype application/pdf. pdf
5) Run the test, open the Httpd.exe in the Bin folder under the Apache directory (you can add it directly to the PATH system environment variable if necessary)
Enter Address:, indicates the configuration is successful, if not run, you can view the log log in Apache, make related changes.
⑥ with Phpstorm integrated thinkphp, Apache: 1) using Phpstorm to open the Thinkphp project, I renamed Dedao-server here;
2) File-setting-languages & Frameworks, configure PHP version, interpreter information;
3) Deploy the project to Apache: File-setting-build,execution,deployment-deployment;
4) Do the above related operations, now need to publish the project, because just a configuration, but not yet released:
5) Right click on the item:
6) Complete the deployment:
7) Test: Complete
The ending ~~~~~~~
thinkphp + Apache + phpstorm Integration Framework