

Inside, change Require all denied to Require all granted.Set document root to website directory, for example, change DocumentRoot "c:/Apache24/htdocs" to DocumentRoot "./././Code/Website".Uncomment server name, for example ServerName localhost:81.Set the port, for example, change Listen 80 to Listen 81.Go to the settings, change the " " item to PHP binary path, for example, " D:\\Software\\Php\\php.exe". Launch Visual Studio Code, install the PHP Debug extension. Go to Visual Studio Code website:, install Visual Studio Code. Go to php.ini, add relative path of XDebug, for example, zend_extension =. Go to XDebug website:, download the Windows version, for example, PHP 7.1 VC14 TS (64 bit) in this case.Įxtract the single file to PHP extensions directory, for example, D:\Software\Php\ext\php_xdebug-2.5.4-7.1-vc14-x86_64.dll in this case. add LoadModule php7_module "./Php/php7apache2_4.dll",.\tmp” with the correct path, for example “. Enable the extensions, like curl, gd2, mbstring, sockets, etc., by comment the configurations, like extension=php_curl.dll, etc.Uncomment extension_dir = "ext", and replace with relative path extension_dir = ".\.\Php\ext".Go to the PHP directory, copy the php.ini-development file, and paste as php.ini. Go to PHP website:, download the Windows version, for example, VC14 圆4 Thread Safe.Įxtract the files to a folder, for example, D:\Software\Php.

Then go to the Apache installation directory, under conf directory, open nf file, replace all “ c:/Apache24” strings with relative path “. Go to Apache website:, and download the Windows version, for example, httpd-2.4.25-win64-VC14.zip.Įxtract the files to a folder, for example, D:\Software\Apache. PrerequisiteĬheck if Visual C++ 2015 Redistributable (圆4) or higher version is installed for Windows. This is a quick tutorial of minimum installation and configurations of development environment for PHP programming, including Apache, PHP, and Visual Studio Code (VSCode) on 64 bit Windows.
