How to install gibbon for noobs (like me) on debian 12 or Ubuntu and similar

Hello everyone, I’m new to Gibbon and unfortunately I had many issues installing it. At the end I managed to do it and I want to share what I did. Might be helpful to other people, I lost many hours on it.

After installing the linux system open the terminal and type:

sudo apt install apache2 mariadb-server php libapache2-mod-php php-common php-sqlite3 php-mysql php-gmp php-curl php-intl php-mbstring php-xmlrpc php-gd php-bcmath php-xml php-cli php-zip unzip git php-php-gettext composer -y

sudo mysql

CREATE DATABASE gibbondb;

CREATE USER 'gibbon'@'localhost' IDENTIFIED BY 'StrongPassword';

GRANT ALL ON gibbondb.* TO 'gibbon'@'localhost' WITH GRANT OPTION;

FLUSH PRIVILEGES;

EXIT;
cd /var/www/html

sudo mkdir gibbon

cd gibbon/

sudo wget https://LINK

You can get the updated link by going to the gibbon site, right-click on download button and than copy the link. After that paste it in the terminal.

sudo unzip Gibbon.....zip

sudo rm Gibbon.....zip

sudo composer install

sudo chown -R www-data:www-data /var/www/html/gibbon/

sudo chmod -R 755 /var/www/html/gibbon/

sudo chmod -R 750 /var/www/html/gibbon/uploads/

Next we edit the php.ini file type:

sudo nano /etc/php/8.*/apache2/php.ini

Make sure you replace the * with the correct number based on the version you have.
Then in the nano editor you can change the value of this variables:
(you can search for them using ‘ctrl’ + ‘w’ - type ‘variable_name’ and press enter, than change the value

memory_limit = 256M
upload_max_filesize = 256M
max_execution_time = 360
max_input_vars = 5000 (make sure you delete ‘’;‘’ at the beginning of the text in the editor )
date.timezone = Europe/Rome

When you are done you can save by using ‘ctrl’ + ‘o’
Then press ‘Ctrl’ + ‘x’ to exit nano.

sudo service apache2 reload

sudo service apache2 restart
sudo nano /etc/apache2/sites-available/000-default.conf

Edit the file by deleting the content and replacing with this:

<VirtualHost *:80>

    ServerAdmin admin@example.com

    DocumentRoot /var/www/html/gibbon



     <Directory /var/www/html/gibbon/>

          Options FollowSymlinks

          AllowOverride All

          Require all granted

     </Directory>



     ErrorLog ${APACHE_LOG_DIR}/error.log

     CustomLog ${APACHE_LOG_DIR}/access.log combined



     <Directory /var/www/html/gibbon/>

            RewriteEngine on

            RewriteBase /

            RewriteCond %{REQUEST_FILENAME} !-f

            RewriteRule ^(.*) index.php [PT,L]

    </Directory>

</VirtualHost>

Before you edit the file make a copy of it just in case.

sudo a2enmod rewrite

sudo systemctl restart apache2

Now go to your web browser and type ‘localhost’ (do this from the computer you are using as a server).
Next install gibbon.
Make sure you change the ‘Base path’ like this http://ip-address of the server
If you use localhost there you wont be able to access gibbon from another computer in the network but only from the server.

I hope this was helpful for somebody. I spent many hours figuring out how to do it. I don’t even know if this is correct, I only know it worked for me. If you see anything incorrect please comment and I will correct it.
I want to thank the founder and the developers of gibbon for this wonderful project.
And sorry for my english, as I said in another post I’m italian so that’s my best :smile: .
PS: Please answer to my other post I don’t know how to do it. Thank you

Hi @dardiv Thanks for sharing your experience and steps installing Gibbon. Yes, if you’re installing from scratch on a web server, there are more steps than just installing Gibbon itself, so I appreciate you sharing these here! :smiley: I’ve added a link to this thread under Manual Installation on the Installing Gibbon page in the docs.

1 Like

Thank you @sandra. I will try to make it better. :blush: