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.



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"



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



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

3. Open laragon and open settings.



Check SSL 443 Enabled.

4. Reload the laragon

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



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



In Laragon > Tools > PHP > php.ini

Include.

B4X:
extension=php_mongodb.dll

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



Related Content

 
Last edited:

NGUYEN TUAN ANH

Active Member
Licensed User
Help me.!
I can not see mongodb in: Web > Info
Help me please !
I can not see mongodb in Web > Info > Scroll
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…