There are 2 ways:
The default PHP version in the first launch is PHP 7.4
Name | Version |
---|---|
php-7.4 | 7.4.33 |
php-8.1 | 8.1.27 |
php-8.2 | 8.2.16 |
php-8.3 | 8.3.3 |
Please read carefully the content below and use this scripts at your own risk!
Use scripts.bat at the root of your laragon.
Available scripts:
- Rename folder .git to .git.saved - Rename folder .git.saved to .git
- Prevent some git bugs with your code in /www folder
- Update Laragon
- This method just works when you clone this repo.
- This method works as a hard resetting all your Laragon files of laragon and pulling new commits (changes) from the repo. You can call it "Update new version".
- Be careful when you run it because it will overwrite your changes and remove your files.
- This will not affect your files in:
- /bin/heidisql/portable_settings.txt (HeidiSQL settings)
- /data
- /tmp
- /usr (all of the laragon settings)
- /www (except /www/index.php)
- All other files will be replaced or removed.
Notes:
- If you want to update, please back up your dependencies extensions (ex: php_pdo_sqlsrv) because you will lose all your changes if you run update.
If you want to manually update the new version of dependencies, download the file with the instructions below and extract it to /bin/<dependency>/new_version_folder (ex: /bin/php/php-7.4.20-nts-Win32-vc15-x64)
- Apache: Download the zip file VC15 or VC16
- Composer: Download the composer.phar file from here
- HeidiSQL: Download the portable version here
- MySQL:
- MariaDB: Download the zip file here
- MariaDB Server Version: Any
- Operating System: Windows
- Architecture: Any
- Package Type: Zip file
- MariaDB: Download the zip file here
- Nginx: Download the zip file here
- PHP: Download the zip file here
- PHP Redis extension: here or Download in any workflow
Notes:
-
If you want to use SSL, please use Apache v2.4.35 (httpd-2.4.35-win64-VC15) or use Nginx. Because the newest Apache SSL is broken right now, it may be a bug or an error of Apache and no way to fix this right now.
-
All dependencies in this repo use 64-bit version.
-
For PHP: I prefer Non Thread Safe version.
-
Apache & PHP should be the same VS version (ex: VS15).
-
To enable Redis:
- After starting laragon for the first time (php.ini created)
- Find
extension=mbstring
- Add below that line
extension=redis
-
To enable http2:
- Open bin/apache/<version>/conf/httpd.conf
- Uncomment the line
LoadModule http2_module modules/mod_http2.so
- Add this line at the end of the file
Protocols h2 h2c http/1.1
Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
Laragon is great for building and managing modern web applications. It is focused on performance - designed around stability, simplicity, flexibility and freedom.
Laragon is very lightweight and will stay as lean as possible. The core binary itself is less than 2MB and uses less than 4MB RAM when running.
Laragon doesn't use Windows services. It has its own service orchestration
which manages services asynchronously and non-blocking so you'll find things run fast & smoothly with Laragon.
Enjoy!
For description and other information, go to the base repo.