I didn't find any information on this on the wiki so i figured I'd add this to the Joomla! Docs. This tutorial will explain how to set up a testing server for use with Joomla! and the Eclipse IDE.

I didn't find any information on this on the wiki so i figured I'd add this to the Joomla! Docs. This tutorial will explain how to set up a testing server for use with Joomla! and the Eclipse IDE.

Line 27:

Line 27:

Nine times out of ten, your server is on a Linux based system, but you are not. Sometimes testing between Windows or Mac based systems and then switching over to a Linux based system can cause issues. I.e. carriage returns, etc. So your testing server should be on a Linux based system ( or whatever the actual server is ).

Nine times out of ten, your server is on a Linux based system, but you are not. Sometimes testing between Windows or Mac based systems and then switching over to a Linux based system can cause issues. I.e. carriage returns, etc. So your testing server should be on a Linux based system ( or whatever the actual server is ).

−

== Step 1. Creating the Guest Testing Server ==

+

= Step 1 =

+

== Creating the Guest Testing Server ==

This tutorial assumes you are using Windows 7, which release doesn't matter.

This tutorial assumes you are using Windows 7, which release doesn't matter.

Line 37:

Line 38:

Alternatively, you can go to the [http://www.centos.org/modules/tinycontent/index.php?id=30 CentOS Downloads Page] and choose your download place.

Alternatively, you can go to the [http://www.centos.org/modules/tinycontent/index.php?id=30 CentOS Downloads Page] and choose your download place.

+

= Step 1a =

=== Creating the server ===

=== Creating the server ===

−

Open up Oracle VM VirtualBox. You will see the window below:

+

{| style="text align:center; width:99%;

−

[[File:Creating_A_VPS_Testing_Server_-_pic_1.jpg|frameless|none]]

+

| style="width:50%; padding:1.5em;" | Open up Oracle VM VirtualBox. You will see the window below:

−

Click on the New Button in the top left corner of the window to begin creating your VirtualBox. You will see the following screen:

+

[[File:Creating_A_VPS_Testing_Server_-_pic_1.jpg|400px]]

+

| style="width:50%; padding:1.5em;" | Click on the New Button in the top left corner of the window to begin creating your VirtualBox. You will see the following screen:

−

[[File:Creating_A_VPS_Testing_Server_-_pic_2.jpg|frameless|none]]

+

[[File:Creating_A_VPS_Testing_Server_-_pic_2.jpg|400px]]

+

|-

+

| style="width:50%; padding:1.5em;" | Click next to go to the next page. On the next page Enter A name for the testing server and Make sure that the Operating System and Version show "Linux" and "Red Hat (64 bit)" like below:

−

Click next to go to the next page. On the next page Enter A name for the testing server and Make sure that the Operating System and Version show "Linux" and "Red Hat (64 bit)" like below:

+

[[File:Creating_A_VPS_Testing_Server_-_pic_3.jpg|400px]]

−

[[File:Creating_A_VPS_Testing_Server_-_pic_3.jpg|frameless|none]]

+

| style="width:50%; padding:1.5em;" | Click next to go to the next page. On then next page, decide how much memory to dedicate to the Virtual Machine. Try to give CentOS atleast 1gig of RAM. '''Note: You can do the recommended 512 MB if you want, however the CentOS installation process will be different.'''

−

Click next to go to the next page. On then next page, decide how much memory to dedicate to the Virtual Machine. Try to give CentOS atleast 1gig of RAM. '''Note: You can do the recommended 512 MB if you want, however the CentOS installation process will be different.'''

+

[[File:Creating_A_VPS_Testing_Server_-_pic_4.jpg|400px]]

+

|}

−

[[File:Creating_A_VPS_Testing_Server_-_pic_4.jpg|frameless|none]]

+

= Step 1b =

+

{| style="width:99%;

+

| style="width:50%; padding:1.5em;" | Click next to go to the next page. On the next page, you will click next again because we will be creating a new virtual hard drive for use with the new virtual machine.

−

Click next to go to the next page. On the next page, you will click next again because we will be creating a new virtual hard drive for use with the new virtual machine.

+

[[File:Creating_A_VPS_Testing_Server_-_pic_5.jpg|400px|center]]

+

| style="width:50%; padding:1.5em;" | After clicking next, you will begin the Virtual Hard disk creation and you will see the screen below. I suggest using '''VDI (VirtualBox Disk Image)''', but you can select another if you'd like.

−

[[File:Creating_A_VPS_Testing_Server_-_pic_5.jpg|frameless|none]]

+

[[File:Creating_A_VPS_Testing_Server_-_pic_6.jpg|400px|center]]

+

|-

+

| style="width:50%; padding:1.5em;" | Click next to go to the next page. You will next select the disk storage details. Dynamic or fixed allocation. You can read the screen for what each does, however here a few suggestions for speed reasons.

−

After clicking next, you will begin the Virtual Hard disk creation and you will see the screen below. I suggest using '''VDI (VirtualBox Disk Image)''', but you can select another if you'd like.

+

[[File:Creating_A_VPS_Testing_Server_-_pic_7.jpg|400px|center]]

+

| style="width:50%; padding:1.5em;" | Next, your going to select the name and size for the virtual hard disk. I always name the disk the same name as the testing server and I usually use 8gigs minimum for the virtual hard disk unless i know i'm going to need more.

−

[[File:Creating_A_VPS_Testing_Server_-_pic_6.jpg|frameless|none]]

+

[[File:Creating_A_VPS_Testing_Server_-_pic_8.jpg|400px|center]]

+

|}

−

Click next to go to the next page. You will next select the disk storage details. Dynamic or fixed allocation. You can read the screen for what each does, however i suggest going fixed for speed reasons.

Next, your going to select the name and size for the virtual hard disk. I always name the disk the same name as the testing server and I usually use 8gigs minimum for the virtual hard disk unless i know i'm going to need more.

+

| style="width:50%; padding:1.5em;" | After that is completed, you will be taken back to the "Create New Virtual Machine" page, where you will finalize the other options you selected for the virtual Machine:

| colspan="2" style="width:100%; padding:1.5em; border-bottom:2px solid #000;" | We're gonna do the final server configurations below. Right click on The new server and click on settings:

−

After that is completed, you will be taken back to the "Create New Virtual Machine" page, where you will finalize the other options you selected for the virtual Machine:

+

[[File:Creating_A_VPS_Testing_Server_-_pic_11.jpg|400px]]

−

[[File:Creating_A_VPS_Testing_Server_-_pic_10.jpg|frameless|none]]

+

Below are all the pics of the different property pages: (if a page is not on there, leave default values on that page)

+

|-

+

| style="width:50%; padding:1.5em;" | Make sure that the Adapter Type is set to Bridged so that other computers on the network/intranet/internet can interact with your VPS.

+

[[File:Creating_A_VPS_Testing_Server_-_pic_12.jpg|400px|]]

+

| style="width:50%; padding:1.5em;" | Ensure that you add the CentOS iso that you downloaded to your virtual CD/DVD Drive so that we can install to the virtual hard drive from it.

−

=== Fine Tuning The server ===

+

[[File:Creating_A_VPS_Testing_Server_-_pic_13.jpg|400px]]

−

+

−

We're gonna do the final server configurations below. Right click on The new server and click on settings:

+

−

+

−

[[File:Creating_A_VPS_Testing_Server_-_pic_11.jpg|frameless|none]]

+

−

+

−

Below are all the pics of the different property pages: (if a page is not on there, leave default values on that page)

+

−

+

−

{|

+

−

|[[File:Creating_A_VPS_Testing_Server_-_pic_12.jpg|thumb|upright|left|Make sure that the Adapter Type is set to Bridged so that other computers on the network/intranet/internet can interact with your VPS.]]

+

−

|[[File:Creating_A_VPS_Testing_Server_-_pic_13.jpg|thumb|upright|left|Ensure that you add the CentOS iso that you downloaded to your virtual CD/DVD Drive so that we can install to the virtual hard drive from it.]]

+

|}

|}

−

=== Installing the Guest OS ===

+

=Step 2=

+

===Installing the Guest OS===

Now we finally Start the Virtual Machine.

Now we finally Start the Virtual Machine.

Line 172:

Line 183:

[[File:Creating_A_VPS_Testing_Server_-_pic_21.jpg]]

[[File:Creating_A_VPS_Testing_Server_-_pic_21.jpg]]

+

+

=Testing Server=

+

=== Test your xammp virtual server ===

+

Open your Browser and point it to the IP of your server. Mine was:

+

http://192.168.0.99

+

The index.php will redirect to

+

http://192.168.0.99/xampp

+

+

If your going to expose your VPS to the internet, i suggest setting passwords for xampp. You can do that by executing this command.

+

''/opt/lampp/lampp security''

+

+

=== Installing Joomla! ===

+

Execute these commands to download and extract joomla: (at the time of writing this tutorial, Joomla! 2.5.6 is the latest version)

Next, Install Joomla. The one key here is to use the same database prefix as your live site, so that you can use exported sql to copy information over versus entering it all in again. Oh, before we do that, lets make the configuration.php file writeable by making the base directory writeable.

Intro

I didn't find any information on this on the wiki so i figured I'd add this to the Joomla! Docs. This tutorial will explain how to set up a testing server for use with Joomla! and the Eclipse IDE.

Prerequisites & Outlook

This tutorial will use the following software to give you a complete testing server environment.

Host System: Windows 7 x64

Items to install:

PHP

Phing

Eclipse PDT

Guest System: Cent OS 6.3 x64

Items to install:

OS

XAMPP with XDebug

Samba Server

Why Testing Server

Do you have a website that's live and you need to constantly upgrade your website, however since your website is live, you dont want to edit the actual website, resulting in the site crashing from time to time or not working. Getting a testing server allows you to do all your testing without affecting the live server. Then you upload your completed update to the Live Server once completed.

Why a VPS

Nine times out of ten, your server is on a Linux based system, but you are not. Sometimes testing between Windows or Mac based systems and then switching over to a Linux based system can cause issues. I.e. carriage returns, etc. So your testing server should be on a Linux based system ( or whatever the actual server is ).

Step 1

Creating the Guest Testing Server

This tutorial assumes you are using Windows 7, which release doesn't matter.

The server virtualization platform

To setup the testing server, the first thing you need is Oracle VM VirtualBox. This software will virtualize another "guest" operating system on your machine while its running. At the time of writing this tutorial, I'm using version: 4.1.18. Download the version for windows hosts and install it on your computer.

Step 1a

Creating the server

Click on the New Button in the top left corner of the window to begin creating your VirtualBox. You will see the following screen:

Click next to go to the next page. On the next page Enter A name for the testing server and Make sure that the Operating System and Version show "Linux" and "Red Hat (64 bit)" like below:

Click next to go to the next page. On then next page, decide how much memory to dedicate to the Virtual Machine. Try to give CentOS atleast 1gig of RAM. Note: You can do the recommended 512 MB if you want, however the CentOS installation process will be different.

Step 1b

Click next to go to the next page. On the next page, you will click next again because we will be creating a new virtual hard drive for use with the new virtual machine.

After clicking next, you will begin the Virtual Hard disk creation and you will see the screen below. I suggest using VDI (VirtualBox Disk Image), but you can select another if you'd like.

Click next to go to the next page. You will next select the disk storage details. Dynamic or fixed allocation. You can read the screen for what each does, however here a few suggestions for speed reasons.

Next, your going to select the name and size for the virtual hard disk. I always name the disk the same name as the testing server and I usually use 8gigs minimum for the virtual hard disk unless i know i'm going to need more.

Follow the instructions from this site, all the way up until 8 Quota: stop BEFORE that.

Installing XAMPP on the Guest OS

So we have the Guest OS set up completely and we're looking to setup the actual web/mysql/ftp server portion. If its not on, turn on the server and login as root using the password you set in the previous section.

First, Type this Download XAMPP to the server using Wget: (XAMPP 1.8.0 is out at the writing of this tutorial)

Next, Install Joomla. The one key here is to use the same database prefix as your live site, so that you can use exported sql to copy information over versus entering it all in again. Oh, before we do that, lets make the configuration.php file writeable by making the base directory writeable.