B4J Tutorial [WebApps] Using Laragon as your development web server

Ola

I just ran into this link, https://www.keycdn.com/blog/web-development-tools

And besides XAMPP, which I have been using for my personal web development projects, there is Laragon.

With XAMPP, I remember I had to manually edit my php.ini file to locate the extension for SQLite3 to be active and restart tha apache webserver.

The ease of Laragon is rather impressive. I downloaded the full version, this has options to install an 18MB file (minimum install) or the 130MB full install that comes with MySQL, NodeJS, HeidiSQL and some other niceties.

sqlite.jpg


I installed it, updated PHP and then selected the Menu > PHP > Extensions > sqlite3, this activated the extension and reloaded the server.

So in my BANano App, I changed the build folder from "C:\xampp\htdocs" to "C:\laragon\www"

laragon.png


We are up and running...
 

Mashiane

Expert
Licensed User
Longtime User
Using laragon with SSL.

Laragon comes with SSL functionality that you can activate.

First, you need to ensure that the SSL files are copied.

1. Find these files under your apache folder of laragon, this could be C:\laragon\bin\apache\httpd-2.4.35-win64-VC15\bin

1614275461294.png


2. Copy them to C:\laragon\bin\laragon\utils

3. Open laragon and open settings.

1614275572106.png


Check SSL 443 Enabled.

4. Reload the laragon

5. In your browser, type in https://localhost, this should now be secure

1614275663582.png


Good luck!
 

Mashiane

Expert
Licensed User
Longtime User
As I am using Laragon as my development webserver of choice... here are some snippets to do a variety of things.

Add MongoDB to Laragon


Addding PHP Drivers

1. Download the drivers for your PHP version and save to extensions folder e.g. C:\laragon\bin\php\php-7.4.19-Win32-vc15-x64\ext


Rather choose TS (Thread Safe) version

1645941861395.png


In Laragon > Tools > PHP > php.ini

Include.

B4X:
extension=php_mongodb.dll

In Laragon Screen, choose Web > Info > Scroll to see if

1645941934740.png


Related Content

 
Last edited:

NGUYEN TUAN ANH

Active Member
Licensed User
As I am using Laragon as my development webserver of choice... here are some snippets to do a variety of things.

Add MongoDB to Laragon


Addding PHP Drivers

1. Download the drivers for your PHP version and save to extensions folder e.g. C:\laragon\bin\php\php-7.4.19-Win32-vc15-x64\ext


Rather choose TS (Thread Safe) version

View attachment 126138

In Laragon > Tools > PHP > php.ini

Include.

B4X:
extension=php_mongodb.dll

In Laragon Screen, choose Web > Info > Scroll to see if

View attachment 126139

Related Content

Help me.!
I can not see mongodb in: Web > Info
As I am using Laragon as my development webserver of choice... here are some snippets to do a variety of things.

Add MongoDB to Laragon


Addding PHP Drivers

1. Download the drivers for your PHP version and save to extensions folder e.g. C:\laragon\bin\php\php-7.4.19-Win32-vc15-x64\ext


Rather choose TS (Thread Safe) version

View attachment 126138

In Laragon > Tools > PHP > php.ini

Include.

B4X:
extension=php_mongodb.dll

In Laragon Screen, choose Web > Info > Scroll to see if

View attachment 126139

Related Content

Help me please !
I can not see mongodb in Web > Info > Scroll
 

Mashiane

Expert
Licensed User
Longtime User
Using GMail with Laragon...

Create an app password using the GMail account you want to use on Laragon.

https://myaccount.google.com/apppasswords

On Laragon, click Menu > Preferences.

1717701202009.png


On Mail Sender, use the email and the password that was generated by GMail. The password must not have spaces.

1717701283284.png


Click on Test Mail Sending..

Check if your received your email from Laragon.

Have Fun!
 

Mashiane

Expert
Licensed User
Longtime User
The latest version of Laragon does not include phpMyAdmin but comes with HeidiSQL.

To include phpMyAdmin, follow these instructions

1. Make sure you already install laragon. You need to download the phpmyadmin file in the official site. https://www.phpmyadmin.net/downloads
2. Extract this zip and you can rename the folder as phpMyAdmin. Put the folder into laragon/etc/apps.
3. Start the laragon. And then open the browser and access 127.0.0.1/phpmyadmin.
4. Just press go when the login page shows. Now you can use phpmyadmin to manage mysql.

It also comes with PocketBase as another alternative package during installation back-end db to use.
 
Top