Skip to main content

glassfish with apache PHP

2 replies [Last post]
rucaza
Offline
Joined: 2010-04-26

HI

I'm new to Java.net and new to glassfish, but not new to java. We have an apache with php and mysql in an ubuntu server(our main web server), question: Can I install glassfish V3 in the same machine without breaking what we have already, and still use mysql for the java app? I do not mind to have glassfish on 8080, but If i could have both on 80 it will be better.
many thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Major Péter

Hi,

> Can I install glassfish V3 in the same machine without breaking what we have already, and still use mysql for the java app? I do not mind to have glassfish on 8080, but If i could have both on 80 it will be better.

Yes, you can.

If you want them on the same port, then you could try out Querces, a PHP
interpreter for GlassFish, so your PHP files would run on GlassFish too,
and there is no need to run the Apache.
But if you have complex rewrite-rules, then you might want to consider
using AJP, or HTTP Proxy on the Apache, like that the Apache will proxy
the requests to the Web Application in your GlassFish.

Regards,
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Dominik Dorn

Most of the rewrite rules you can simply map with
http://tuckey.org/urlrewrite/ or http://ocpsoft.com/prettyfaces/ (preferred)

Please test your php app a lot when trying out quercus, before going life
with it.
quercus is brilliant, but still has some flaws here and there, so test your
app with it and report bugs to them. the latest version is 4.0.6, you have
to modify the url on their download page to get it.

2010/4/26 Major Péter :
> Hi,
>
>> Can I install glassfish V3 in the same machine without breaking what we have already, and still use mysql for the java app?  I do not mind to have glassfish on 8080, but If i could have both on 80 it will be better.
>
> Yes, you can.
>
> If you want them on the same port, then you could try out Querces, a PHP
> interpreter for GlassFish, so your PHP files would run on GlassFish too,
> and there is no need to run the Apache.
> But if you have complex rewrite-rules, then you might want to consider
> using AJP, or HTTP Proxy on the Apache, like that the Apache will proxy
> the requests to the Web Application in your GlassFish.
>
> Regards,
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

--
Dominik Dorn
http://dominikdorn.com

Tausche Deine Lernunterlagen auf http://www.studyguru.eu !

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net