php:php-apache-on-windows
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
php:php-apache-on-windows [2016/05/19 10:05] – [Basic Steps to install] admin | php: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) |
- | - Install Visual C++ Redistributable for Visual Studio 2012 http:// | + | - Install Visual C++ Redistributable for Visual Studio 2012(VC11) |
- 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:// | - Install Apache version base on **apache2 module** which contain in PHP package from http:// | ||
Line 52: | Line 52: | ||
</ | </ | ||
httpd.exe -k uninstall | httpd.exe -k uninstall | ||
+ | </ | ||
+ | - Step5: Run to test httpd:< | ||
+ | httpd.exe | ||
</ | </ | ||
==== Config virtual host on Apache ==== | ==== Config virtual host on Apache ==== | ||
Line 57: | Line 60: | ||
# Virtual hosts | # Virtual hosts | ||
Include conf/ | Include conf/ | ||
- | Include conf/extra/home.conf | + | Include conf/vhosts/*.conf |
</ | </ | ||
- | - Step2: create file **conf/extra/ | + | - Step2: create file **conf/vhosts/ |
< | < | ||
DocumentRoot " | DocumentRoot " | ||
Line 90: | Line 93: | ||
</ | </ | ||
==== Some errors and fix ==== | ==== Some errors and fix ==== | ||
- | < | + | - Error 1:< |
- | </ | + | </ |
- | + | * 2.2 configuration:< | |
- | In this example, to config all requests are allowed: | + | |
- | * 2.2 configuration:< | + | |
Order allow,deny | Order allow,deny | ||
Allow from all | Allow from all | ||
</ | </ | ||
- | | + | |
Require all granted | Require all granted | ||
</ | </ | ||
+ | - Error2: | ||
===== Install XAMPP ===== | ===== Install XAMPP ===== | ||
refer: https:// | refer: https:// |
php/php-apache-on-windows.1463652312.txt.gz · Last modified: 2022/10/29 16:15 (external edit)