Showing posts with label PHP-JBOSS. Show all posts
Showing posts with label PHP-JBOSS. Show all posts

Sunday, February 21, 2016

Manually Setting Up WordPress Project On OpenShift Server Using JBOSS Developer Studio


.
Manually Setting Up WordPress Project On OpenShift Server Using JBOSS Developer Studio

This tutorial demonstrates the step to manually upload WordPress installation files pre-packed with sqlite using JBOSS Developer Studio.

0) Pre-Requisite

0.1) OpenShift account created.
0.2) JBOSS Developer Studio installed.
0.3) PHP Application project created and cloned to JBOSS.
In this example, the cloned path is c:\p\jbossgit\myapp1. You need to know the path so that you would be able to put the wordpress installer file correctly.
0.4) Download WordPress installation file.
Download from here (wordpress422-sqlite.zip)

1) Unzip WordPress Installer and copy to the Project folder

1.1) Use tools like 7Zip to extract the content and copy to the target project folder.
Rename (optional)

2) Commit and Push to Remote Repository

3) Test on Remote Site

.

JBOSS Create PHP Project On RedHat OpenShift Server


.
JBOSS Create PHP Project On RedHat OpenShift Server
Managing application projects on RedHat OpenShift is a lot easier through the JBOSS Developer Studio Application.
This tutorial demonstrates the steps to create a PHP Application Project using JBOSS Developer Studio.
You have to create a free account at https://www.openshift.com first before following the steps.

0) Pre-requisite

0.1) Create OpenShift account.
0.2) Install JDK (This tutorial uses JDK 8 32-bit jdk-8u73-windows-i586.exe for Windows installed as a portable tool) (alternative download site)
0.3) Install JBOSS Developer Studio (This tutorial uses jboss-devstudio-9.0.0.GA-installer-eap.jar package from http://tools.jboss.org/downloads/devstudio/mars/9.0.0.GA.html )
In case you get jboss rejects your Java JDK version, try installing a different version.

1) Create New Project

1.1) Select File/New/OpenShift Application.

1.2) Sign in to OpenShift (must have an account first)

Wait...

1.3) Create SSH Key (if no SSH Keys created yet)

1.3.1) Click New…
1.3.2) Enter details
Wait…
1.3.3) SSH Key created.
Wait...

1.4) Create an application.

Choose your preferred cartridges.
Find PHP.
And then add MySQL with PHPMyAdmin.
Next.
Set up as a new OpenShift project.
Define your Git Clone path.
Wait...
Receive the connection details.
Confirm connection to the OpenShift site.
Connection established. Project has been clone to your local machine.

2) Working with cloned project

2.1) Try editing the file.

Open index.php using internal Text Editor (JBOSS Editor)

2.2) Change the content

e.g. Your PHP changed to MY PHP (on line no. 211)
Initial content:
Edited content:

2.3) Commit

2.4) Push

Wait...
Done.

2.5) See the effects of Commit and Push in web browser

Before Push To Upstream
After Push To Upstream
.

Labels

apt-get (2) bash (4) Chrome (1) CMS (1) code-igniter (1) codenvy (1) composer (6) eclipse che (1) error (4) file-permission (1) firebase (2) Free PHP Hosting (11) FuelPHP (3) git (4) jwt (1) laravel (10) mysql (1) OpenShift (1) php (11) PHP Eclipse (9) PHP Joomla (2) PHP Laravel (4) PHP Yii (9) PHP-JBOSS (2) php-jwt (2) PHP-Wordpress (8) plain php (1) Postman (1) REST (2) sqlite (1) sudo (1) visual-studio (4) xampp (4)