DEV Community

Discussion on: Install and setup Apache + MySQL + PHP on Windows

Collapse
 
ijsucceed profile image
Jeremy Ikwuje • Edited

Thanks, Antonin, I love the domain aspect with apache.

[UPDATE]
Try to check if PHP is installed successfully:

php -v
Enter fullscreen mode Exit fullscreen mode

and you'll get the current version of PHP.

PHP 7.4.5 (cli) (built: Apr 14 2020 16:17:34) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Enter fullscreen mode Exit fullscreen mode

However, you might get extension errors:

PHP Warning:  PHP Startup: Unable to load dynamic library 'bz2' (tried: C:\php\e
xt\bz2 (The specified module could not be found.), C:\php\ext\php_bz2.dll (The s
pecified module could not be found.)) in Unknown on line 0
Enter fullscreen mode Exit fullscreen mode

This is due to fail extension_dir path. To fix this, comment out the extension_dir for windows inside php.ini file.

; On windows:
extension_dir = "ext"
Enter fullscreen mode Exit fullscreen mode

You can CTRL F to find extension_dir line.