User Tools

Site Tools


php:php-apache-on-windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php:php-apache-on-windows [2016/05/19 10:03] – [Basic Steps to install] adminphp:php-apache-on-windows [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 11: Line 11:
   * vs2015   * vs2015
 ==== Basic Steps to install ==== ==== Basic Steps to install ====
-(PHP 5.6 and Apache 2.4) +(PHP 5.6 and Apache 2.4 compiled with VC11
-  - Instal+  - Install Visual C++ Redistributable for Visual Studio 2012(VC11) http://www.microsoft.com/en-us/download/details.aspx?id=30679#
   - Install PHP package for **thread safe** (thread safe version **contain apache2 module**) with extra options   - Install PHP package for **thread safe** (thread safe version **contain apache2 module**) with extra options
   - Install Apache version base on **apache2 module** which contain in PHP package from http://www.apachelounge.com/download/<code>   - Install Apache version base on **apache2 module** which contain in PHP package from http://www.apachelounge.com/download/<code>
Line 52: Line 52:
 </code>After install, you can check service name in services.msc and see it. And to uninstall<code> </code>After install, you can check service name in services.msc and see it. And to uninstall<code>
 httpd.exe -k uninstall httpd.exe -k uninstall
 +</code>
 +  - Step5: Run to test httpd:<code>
 +httpd.exe
 </code> </code>
 ==== Config virtual host on Apache ==== ==== Config virtual host on Apache ====
Line 57: Line 60:
 # Virtual hosts # Virtual hosts
 Include conf/extra/httpd-vhosts.conf Include conf/extra/httpd-vhosts.conf
-Include conf/extra/home.conf+Include conf/vhosts/*.conf
 </code> </code>
-  - Step2: create file **conf/extra/home.conf** to include config other virtual hosts<code bash>+  - Step2: create file **conf/vhosts/home.conf** to include config other virtual hosts<code bash>
 <VirtualHost *:80> <VirtualHost *:80>
     DocumentRoot "E:/web/dacsan-opencart"     DocumentRoot "E:/web/dacsan-opencart"
Line 90: Line 93:
 </code> </code>
 ==== Some errors and fix ==== ==== Some errors and fix ====
-<code>[authz_core:error] client denied by server configuration +  - Error 1:<code>[authz_core:error] client denied by server configuration 
-</code> => Fix follow tutorial in link: http://httpd.apache.org/docs/2.4/upgrading.html#access. +</code> => Fix follow tutorial in link: http://httpd.apache.org/docs/2.4/upgrading.html#access.In this example, to config all requests are allowed: 
- +    * 2.2 configuration:<code bash>
-In this example, to config all requests are allowed: +
-  * 2.2 configuration:<code bash>+
 Order allow,deny Order allow,deny
 Allow from all Allow from all
 </code> </code>
-  * 2.4 configuration:<code bash>+    * 2.4 configuration:<code bash>
 Require all granted Require all granted
 </code> </code>
 +  - Error2:Can't load php_curl.dll when config loading it in php.ini(in PHP5.6 64bits on windows 7) => copy 3 files: **libssh2.dll, ssleay32.dll, libeay32.dll** to directory **c:\windows\system32**
 ===== Install XAMPP ===== ===== Install XAMPP =====
 refer: https://www.apachefriends.org/index.html refer: https://www.apachefriends.org/index.html
php/php-apache-on-windows.1463652238.txt.gz · Last modified: 2022/10/29 16:15 (external edit)