This training took place on 02-16-2017. We've installed Joomla in english and encountered issues to select the german language package. Joomla ist ein Content Management System (CMS) and it helps you to change the content of a web site.
If there are still questions open after these instructions, please go to "Views" and then "Discussion" to leave your feedback, so I can add more Details to this page. jr
Automatically boot the virtual machine
In spirit this belongs to Schulung-Teil2, but as we've only learned it now it's here.
First we have to logiin to our server. As we're only on a test system we can change to root. On a productive system it's not advisable to enter every command as root.
With the next command we get a list of all active virtual machines. As we already know that our virtual machine needs to be started manually, this isn't really necessary, but it helps to know the command.
To automate the booting of the virtual machine we change to the directory with the configuration file of it.
If we want to see what we have in this directory we can list this with the command:
Now we want to create a new directory and we do this by entering
Next we change into the newly created directory by typing:
As explanation: everything that is in this directory when the server is powered up, will be started as well
We create a symbolic link to have the configuration file in the directory /etc/xen/auto/ as well:
ln -s /etc/xen/vm1.cfg .
The dot (.) in the command tells the system that we wish to create the link in our current directory. To check if we have the desired result we list the content of the current directory:
Manually start the virtual machine
As the automation was just added we need to manually boot the virtual machine and login there:
xl create -c /etc/xen/vm1.cfg
Do not forget to adjust the cfg-file to your own.
As the console we get from this is a bit weird we only want to find out the IP address of it and login via SSH afterwards to have a "normal" console:
To be able to install the program we went to the website of Joomla.de and copied the link address in the download section. On the virtual machine we changed to the following folder
root@vm1:~# cd /var/www/html/
To download the program directly onto the virtual machine we used the program "wget". We had to set the "--no-check-certificate" parameter, as we couldn't download it otherwise. Our virtual machines probably don't have the right package installed to accept the certificate from joomla.de.
root@vm1:/var/www/html# wget --no-check-certificate https://github.com/joomla/joomla-cms/releases/download/3.6.5/Joomla_3.6.5-Stable-Full_Package.zip
We had some issues in our training room, as two virtual machines had the same MAC address. We changed the MAC address on one machine and our problems we solved.
To be able to unpack the program we had to get another program from the repository
root@vm1:/var/www/html# apt install unzip
We were able to unpack the download then with the following command:
root@vm1:/var/www/html# unzip Joomla_3.6.5-Stable-Full_Package.zip
Theoretically you could enter the following address in your browser, but it will result in an error, as the web server doesn't have PHP yet
***IP address of the virtual machine***/index.php
To install the PHP-mod on the apache2-server we entered the following command:
root@vm1:/var/www/html# apt install libapache2-mod-php5
Joomla still requires additional programs to work. To see everything that is necessary you can check here. So we also have to install a MySQL-server:
root@vm1:/var/www/html# apt install mysql-server
During the installation we have to set a "root password" for the database of MySQL
The MySQL server also requires a PHP module. We install that with the following command:
root@vm1:/var/www/html# apt install php5-mysql
Next we restart the web server
root@vm1:/var/www/html# systemctl restart apache2
That our web server is able to access the files of Joomla we have to change the file owner and group. This is done by typing
root@vm1:/var/www/html# chown -R www-data:www-data .
Jetzt haben wir alles installiert, dass wir Joomla konfigurieren können. Dazu rufen wir im Browser die folgende Adresse auf:
***IP address of the virtual machine***/index.php In my case it was http://192.168.67.77/index.php
Various fields need to be filled out
name of the website * Administrator-E-Mail * Administrator-Username * Administrator-Password * Administrator-repeat password *
The next page also requires us to enter some information. On a system that can be accessed from the web it's a very bad idea to enter the username root. You'd have to create an extra username in MySQL and not use root like we did here. For security reasons it would be an error to enter root here.
database type * MySQLi Servername * localhost Username * root Password database name * prefix doesn't need to be changed, as it was randomly generated
On the third page we selected the following. One can also pick something else of course or change it at a later date.
Englische (GB) Beispieldaten: Joomla! erlernen
On the next page we selected the following:
Remove installation folder/directory (Ordner Installation löschen)
To finish the configuration click now on
Now we can see on the index.php site our example data. To administrate Joomla go to the following page:
***IP Adresse der virtuellen Maschine***/administator In my case it was http://192.168.67.77/administator
Change the language of Joomla
As the menus were still in english we tried to change them to german. Unfortunately this produced an error for us. You'd get there by going to the following menu points:
Extensions > Manage > Install Languages,