B4J Question [Server] Run the ServerExample on Laragon

DonManfred

Expert
Licensed User
Longtime User
Laragon is a php extension?

You need to run the b4j webapps directly on the server. It can not be run in an apache environment.
Use a VPS or any other server which is able to run java,
 
Upvote 0

Elric

Well-Known Member
Licensed User
Thank you guys! I would get two goals:
1. easy test environment, that could simulate a VPS also (but not only);
2. managing mysql (or mariaDB).

Laragon is a php extension?

You need to run the b4j webapps directly on the server. It can not be run in an apache environment.
Use a VPS or any other server which is able to run java,
As per its website:
Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby.
The Server Example itself already a server. We don’t need another server.
I know it but what about mySQL? How I can improve on my pc?
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
If you can make laragon run jar files like
Java -jar o your.jar
Then you could use it.

I don't know laragon but you would better keep it aside until you learn the basics of b4j, jserver, jdbc, connectionpools firstly.

After you have got ahold of those technologies you may have the recipe to use it with laragon. may be you wont even need it at the end.

There isn't any CRUD like phpmyadmin for mysql, you may need to create one yourself or look in the forum for jrdc2 and DButils (look for the mysql version)

Anyway. You may better keep your mind open when learning b4j as it is not like php at all.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
The Server Example itself already a server. We don’t need another server.
You can install MySQL like normal software and use software like Heidi to manage it.

If you want to use Laragon for running MySQL and PHP/Apache/Nginx server for running PHPMyadmin or adminer then yes it is actually more convenient.

You are not running B4J server app on Laragon but run side by side.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Hi Elric:

You should use Laragon just for the MySql server.
The generated B4J server will be a .jar. You should run it with java.

Relevant threads:
Running in windows:

In a VPS
 
Last edited:
Upvote 0
Top