

You don’t need all the extensions to be enabled. How to install PHP, Apache and MySQL on Ubuntu You can also run php -i for a lot more information about the PHP you have installed or create a index.php file on your localhost containing the following code: PHP info file on localhost Run php -v and you should see a similar output, depending on the version of PHP you have installed. Open cmd by windows searching for cmd. This will open your terminal. Once your machine restarted, the simplest way to check if PHP was installed correctly is to: The next thing you want to do is to reboot/restart your computer. Under System Variables click New and add PHPRC for the name and C:\PHP for the value of this new system variable. Next, add the location of your extension folder (C:\PHP\ext) in my case. Click New and add the location of your /PHP folder (C:\PHP) in my case. Edit PATHĪdd two new entries in that variables list. Under System Variables, select PATH and click Edit. Open Environment Variables (Windows Search for ‘env’) and open Edit the system environment variables. HOW TO: use Git to start a project and commit files Uncomment that line by removing the semicolon, as below: Set extension directory Open php.ini file in any code editor and search (ctrl + f) for extension_dir = “ext”. Rename the file you just copied to php.ini. Go into the / PHP folder, make a copy of the php.ini-development file (literally, copy and past that file again into the folder). Create PHP FolderĮxport the php zip contents into the /PHP folder you have just made. Read this for more info about What is thread safe or non-thread safe in PHP? Download PHPĬhoose where you want to install PHP and make a new folder called PHP. I usually install the Non Thread Safe version. Choose the version you need for your machine, 圆4 or x86. Check what PHP extensions you have installedįirst, go and download PHP 7.2.Below I will show you step by step what you have to do to install PHP 7.2 on a Windows machine. In most cases though, you might just be interested to install just PHP, to use it in different development environments.

By installing them you get a ‘ready to go’ development environment that includes: PHP, Apache, MySQL and more… XAMPP and WampServer are great for beginners or people that want to build something really quick and have less experience with PHP and Apache environments. It all depends on your needs/requirements. You can install PHP on a Windows machine in multiple ways.
