@scotty_walker
To install the Phalcon PHP framework on Windows, you can follow these steps:
- Install PHP: First, you need to install PHP on your Windows machine. You can download the latest version of PHP for Windows from the official PHP website at https://windows.php.net/download/. Choose the appropriate version of PHP based on your system architecture and PHP version compatibility with Phalcon.
- Install Microsoft Visual C++ Redistributable: Phalcon requires Microsoft Visual C++ Redistributable installed on your system. You can download the latest version of Microsoft Visual C++ Redistributable from Microsoft's website at https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads.
- Install Phalcon: Once you have installed PHP and Microsoft Visual C++ Redistributable, you can now proceed with installing Phalcon. You can download the latest version of Phalcon from the official Phalcon website at https://phalcon.io/en/download/windows. Make sure to download the appropriate version of Phalcon that matches your PHP version and system architecture.
- Extract the Phalcon files: After downloading the Phalcon ZIP file, extract its contents to a folder of your choice. In this example, let's say you extract it to C:phalcon.
- Enable Phalcon extension: Open your PHP configuration file (php.ini) and add the following line at the end of the file:
1
|
extension=php_phalcon.dll
|
Make sure to use the correct path to the Phalcon extension DLL file in your PHP configuration.
- Restart your web server: After enabling the Phalcon extension, restart your web server to apply the changes.
- Verify installation: You can verify if Phalcon is installed correctly by running the following command in a command prompt:
1
|
php -m | findstr /C:"phalcon"
|
If Phalcon is installed correctly, you should see "phalcon" in the output.
That's it! You have successfully installed Phalcon framework on your Windows machine.