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:

I just tried these steps on a VirtualBox running Ubuntu 22.04.3 LTS 64Bit and I see all Green check marks at the localhost page & Ready to install.
Confirmation that your steps DO WORK…
Thanks a lot for sharing.
I am absolutely new to Gibbon (just doing a volunteering assignment for a school of an NGO in remote location of Zanzibar). Goal is to get gibbon working on a local lan preferably without any internet connectivity.
So, if you have any suggestions/pointers PLEASE do share with me. I’d be greatly appreciative of your help.

Kind regards,

Can you currently connect to other computers on the LAN?

If you can then open a web browser on another machine and enter the ip address of your VM - you should see gibbon.

If you can’t try setting a firewall rule on the vm pc to allow incoming and outgoing port 80, then try again on the other computer

@tmike I am currently in Canada leaving for ZNZ in a few weeks. For now if I can at least setup gibbon on my laptop, that would be great. Once I get there I can then work with the local team to customize it for them.
So, as of now, I am at the step 2 of gibbon installation and also listening to the Session 1 video of Gibbon Training Day 2021.
Finally we will look at getting it up and running on a local LAN. If I can download every thing I will need to do a demo of gibbon offgrid (i.e. w/o internet access) than that would be a huge step.

1 Like

As I mentioned previously, the easiest method is to instal Laragon on your laptop, it’s very small and does not use up many resources (a lot less than running a VM)

Its a one click install nothing to configure, after install download a copy of Gibbon, extract the files to a folder in the www folder - default Laragon install is C:/laragon/www

example c;//laragon/www/gibbon

Start laragon, click on the database button - open - right click - create new - give the database a name gibbondb - default user is root with no password (this is fine on a local machine)

you can then access the gibbon setup in a browser, http://gibbon.test run through the setup and you’re done

1 Like

After Step 4 of installation is completed there is a link to follow for post install server configuration. That link is broken.

Post-Install and Server Config instructions.

Hi @mojeeza Thank you for letting us know, this has now been fixed. We have just updated the docs and it looks like it caused a couple broken links.

1 Like