Thursday, December 26, 2024

Setup a Joomla Testsystem in VMWare

Problem: If you develop components for Joomla (e.g. a template) you require a local test installation.

Solution:

The easiest way to setup a Joomla testsystem is to download the Bitnami Joomla stack from here. Extract that and add it to your VMWare installation.After that some steps are required which are outlined here.

This setup is only for a development environment and not for productive use as most secure stuff is removed.

1.) Login as Bitnami (default password is Bitnami)

2.) run the following command:

sudo apt-get update

normally vsFTPd should be already installed. If you run the following command it would be installed, if it is already installed you will get a message about that:

sudo apt-get install vsftpd

3.) Now you need to open the port 21 in the local bitnami firewall via:

sudo ufw allow 21

4.) After that we need to change the config from vsFTPd via:

sudo nano /etc/vsftpd.conf

in the config file search for “listen_address=127.0.0.1” and change that to “#listen_address=127.0.0.1”. Then search for “#write_enable=YES” and change that to “write_enable=YES”. Now save the config file (via ctrl + o) and close the editor (via ctrl + x).

5.) Now we will enable the bitnami user for the login. To do that enter the following comand

sudo nano /etc/vsftpd.allowed_users

and put in the 2nd line the name “bitnami”. Now save the config file (via ctrl + o) and close the editor (via ctrl + x).

6.) Now restart vsFTPd via

sudo service vsftpd restart

You can login now via an FTP client like filezilla. Use the username bitnami (and if not changed the password bitnami). As IP use the one you saw when the bitnami joomla stack finished the boot sequence. The port will be 21.

Once logged in, you will find the joomla files in “/opt/bitnami/apps/joomla/htdocs”. You can login into Joomla via “User: User, Password: bitnami”.

7.) To allow access to PHPMyadmin the following change is now required:

sudo nano /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf

and change

Allow from 127.0.0.1

to

Allow from all

and

Require local

to

Require all granted

Otherwise the following error “For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname.” will come up.

The default user is ‘root’ and the default password ‘bitnami’.

 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

35FollowersFollow
- Advertisement -

Latest Articles