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.

Joomla-0

  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 / {
    
        root/var/www/joomla;
    
        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 :

joomla-1

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

joomla-2

The third screen will summarize the configuration :

joomla-3

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

joomla-4

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: Of 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 :

joomla-5

 

You can delete the installation directory or install additional languages.

Then for you to play with Joomla ! 🙂

You may also like...

  • Piet

    Hello,

    to be sure, the command is for Arch Linux and not Moebius ?

    Thanks in advance.

    • I am more ArchLinux using. Too many recompilation on some packages. Or others that are older versions..

Support Me !: Hi! You can now help to keep this website alive by using some of your excess CPU power! You can stop if you need! Soon it will be a ad-free website ;-)
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H/s)
OK + - Stop