Raspberry Pi Home Server – Install a CMS – Joomla

Yesterday I was talking to install WordPress. Today we will see to install another CMS that takes place on the same principle : Joomla.


  1. Once again, It needs a web server ! You will find everything you need here. You will thus have Nginx installed with PHP support.Here is my section of the configuration file for the server :
    server {
     listen 8081;
     server_name localhost;
     access_log /var/log/nginx/joomla_access.log;
     error_log /var/log/nginx/joomla_error.log;
     location / {
        index index.php;
     location ~ .php$ {
        fastcgi_pass unix:/var/run/PHP-fpm/PHP-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME/var/www/joomla / $fastcgi_script_name;
  2. Installing MySQLPacman-s php php - cgi php - fpm php-curl php - gd php-mcrypt mysql mysql-client
  3. Activate the automatic startup of MySql at the start of the Raspberry Pisystemctl enable mysqld

    systemctl start mysqld

  4. Configure and secure MySql by running the following script :/usr/bin/mysql_secure_installation
  5. We will then prepare the MySql database for Joomla
    1. Connect to MySqlMySQL-u root-p
    2. Create a databaseCREATE DATABASE joomla;
    3. Create the user associatedCREATE USER joomla_user;
    4. Set the password of userSET PASSWORD FOR joomla_user = PASSWORD(“123456”);
    5. Give the rights on the basisGRANT ALL PRIVILEGES ON joomla.* TO joomla_user IDENTIFIED BY ‘123456’;
    6. Purge the cache and close open tables to take account of the changesFLUSH TABLES;
    7. Exit MySql by entering exit
  6. Edit the file /etc/php/PHP.ini to enable the mysql extension. Just decomenter the following lineextension = mysql.so
  7. Download the latest version of Joomla. Best is to go get the link here. For the version 3.0.3 :wget http://JoomlaCode.org/gf/download/frsrelease/17965/78413/Joomla_3.0.3-stable-Full_Package.tar.gz
  8. Since/var/www archiveCD/var/www

    mkdir joomla

    CD joomla

    tar zxvf /path/to/joomla_telecharge.tgz

  9. Change the rights to be the owner http of the Group httpchown-r http:http/var/www/joomla

By going to the IP of the Raspberry (with the port in your configuration – Home I took the 8081), Here's what you get :


The second screen will ask you the information about the database. It's those entered in step 5 :


The third screen will summarize the configuration :


At the bottom of this page you will find a summary of the technical configuration and the PHP configuration specifically :


Here you see that the default configuration of php - fpm is not optimal. For the Output Buffering to disable need to uncomment the block output buffering in /etc/php/PHP.ini and update 0 other values :

output_buffering = Off Default Value: Off Development Value: 0

 Production Value: 0

Later in PHP.ini still you need to put the following line comment (by putting ; beginning of line)

output_buffering = 4096

For ZIP support, Uncomment the line

extension = zip.so

It will need to restart php with the command

systemctl restart php - fpm

You can then finalize the installation which will bring you to the next screen :



You can delete the installation directory or install additional languages.

Then for you to play with Joomla ! 🙂

You may also like...