Quercus is an interesting project of Java-powered PHP engine. BlazeDS is remoting engine for Flex application.
Download MySQL Connector for Java from MySQL website and put it under /opt/glassfishv3/glassfish/domains/domain1/applications/quercus/WEB-INF/lib
Then download WAR files of applications and deploy under Glassfish server.