Automated setup for Laragon portable
- PHP 8.0.9
- Apache 2.4.48
- PHPMyAdmin 5.1.1
- MySQL 8.0.26
- Sublime 4 Portable build 4113
- Cmder mini 1.3.18
- Git Portable
- Download laragon portable, run and extract to
C:\laragon
- Copy and paste this whole text to
C:\laragon\usr\packages.conf
overriding it - Download all using laragon menu, Right click > Tools > Quick Add > All
- Download git portable and extract to
C:\laragon\bin\git
- Don't forget to set up
git config --global user.name
andgit config --global user.email
git config --global init.defaultBranch main
git branch -m master main
- Don't forget to set up
- Add sublime path to Environment PATH variable
- Select corresponding versions for PHP, Apache, MySQL
- Using laragon menu, Right click > Apache > SSL > Enabled and Add laragon.crt to Trust Store
- Open
C:/laragon/bin/apache/httpd-2.4.48-o111k-x64-vs16/conf/httpd.conf
- Change
Define SRVROOT "/Apache24"
- To
Define SRVROOT "C:/laragon/bin/apache/httpd-2.4.48-o111k-x64-vs16"
- Change
- Open
C:/laragon/etc/apache2/httpd.ssl.conf
- Comment out
Listen 443
- Comment out
- Delete laragon/data/mysql-8
- cd to laragon/bin/mysql8.0.0.x/bin folder via cmder
- run
mysqld --initialize-insecure --console
to test run mysql -u root -p
and when it asks for password just hit enter since we already removed the password on step 3.
No need to do following steps steps since --initialize-insecure
initializes mysql user without a password
3. run
4. mysqld --initialize --console
(remember the password, important for step 6.)run
5. start mysqld
run
6. mysql -u root -p
put in the password from 6.
7. You are now in mysql shell and can remove the password again:
8. ALTER USER 'root'@'localhost' IDENTIFIED BY '';
run exit
and ctrl + c the spawned tab from step 4.
- cd
C:\laragon\bin\composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
- php composer-setup.php
composer global require laravel/installer
- Open C:\laragon\bin\laragon\tpl\openssql.conf
- Open C:\laragon\usr\tpl\openssql.conf.tpl
- Open C:\laragon\etc\ssl\openssql.conf
- Change keyUsage = keyEncipherment, dataEncipherment
- To keyUsage = nonRepudiation, digitalSignature, keyEncipherment
- Reload Apache - Laragon will generate new SAN certificate
- Click Menu > Apache > SSL > Add laragon.crt to Trust Store
webpack toast encountered an error Please make sure that the app id is set correctly. https://stackoverflow.com/questions/64949275/npm-run-dev-not-compiling-assets-with-error-notifications-for-user-are-disabled windows settings -> Notifications and Actions (on Windows 10)