PHP in Java - A Study case using Glassfish for installing dotProject and SugarCRM

Опубликовано: 28 Январь 2024
на канале: Rafael Queiroz
1,154
2

Lets present here how to install Caucho/Quercus in JEE server - Glassfish, and how to install PHP applications over that.

What is Quercus?

It is a Java implementation for PHP language. It means it is a .war file the is ready o be installed in any JEE server.
Then, it is like you have an apache/php server inside your JAVA server.

When Cause/caucho can be use useful?

In case you have a instance of a JAVA web server running and for some limitation of your architucture or hosting provider you can not install apache/php in another port.
It may also be useful for cost savings in situations you have applications based on two programming languages: instead of paying two server instances you pay just once.

How to install?
You need to download it from the office website.
http://quercus.caucho.com/

Then it is a war file and you need to install it in your JAVA server.

My case in glassfish, just move the .war file to autodeploy folder, and it is deployed.

You may validate that accessing its main web page.

How to deploy PHP code:
One benefit when working with PHP is that it is not compiled. It means you may deploy new versions of you code just be overwriting the script codes.
As you can see here, it is the default index.php code that comes with the installer file. We can just edit it here and save. The change was published.

dotProject example
Here one popular project management tool coded with PHP programming language, we just download that, move the source code to root Quercus folder, and now we have dotProject here available to be accessed.

Of course some challenges can be placed, and installing the database drives and some small code incompatibilities, which can be simple handled.

Thanks for watching!

0:00 What is caucho/quercus for PHP with JAVA?
0:33 When quercus can be useful?
1:25 How to install quercus in a JAVA JEE server?
2:00 Installing quercus in GLassfish JEE application server
4:07 Installing PHP applications (ex. dotProject and SugarCRM) and publishing code updates with Quercus


Смотрите видео PHP in Java - A Study case using Glassfish for installing dotProject and SugarCRM онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Rafael Queiroz 28 Январь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,15 раз и оно понравилось людям.