- Download link: https://www.apachelounge.com/download/
Unzip and copy to C:\Apache24
- Configuration:
C:\Apache24\conf\httpd.conf
Open & edit:
LoadModule rewrite_module modules/mod_rewrite.so
...
<Directory "c:/Apache24/htdocs">
...
AllowOverride All
...
</Directory>
- Run:
Open
Command Prompt
and run
cd C:\Apache24\bin
httpd -k install
net start Apache2.4
- Testing: Run
localhost
and see this testIt works
- Download link: http://windows.php.net/download/ (Thread Safe)
- Configuration:
- Unzip and copy to
C:\php
- Copy
php.ini-production
tophp.ini
- Edit
php.ini
extension_dir = "ext"
...
extension=bz2
extension=curl
extension=fileinfo
...
extension=mysqli
...
extension=soap
- Add to
C:\Apache24\conf\httpd.conf
AddType application/x-httpd-php .php
<FilesMatch \.php$>
#SetHandler application/x-httpd-php
AddHandler application/x-httpd-php .php
LoadModule php7_module "c:/php/php7apache2_4.dll"
</FilesMatch>
PHPIniDir "c:/php"
- Testing:
i. Restart Apache
# start Apache
net start Apache2.4
# stop Apache
net stop Apache2.4
ii. Create file php
to check:
Eg: <?php phpinfo(); ?>
- XDebug:
Download php_xdebug (Thread Safe)
[XDebug]
zend_extension = "c:\php72\ext\php_xdebug-2.6.0-7.2-vc15-x86_64.dll"
;xdebug.remote_autostart = 1
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 0
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "c:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_log="c:\php72\tmp\xdebug.txt"
xdebug.remote_port = 9000
- Download link: https://dev.mysql.com/downloads/installer/
Please only install MySQL Server 8.0
and MySQL Workbench
- Configuration:
Should create new user with mysql_native_password
like as below query:
CREATE USER 'newuser'@'localhost'
IDENTIFIED WITH mysql_native_password BY 'password'