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

**URL:** <https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365>\
**Category:** Installation\
**Created:** [September 8, 2023, 2:01pm UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365 "2023-09-08T14:01:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dardiv](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/d/e19b73/32.png) [@dardiv](https://ask.gibbonedu.org/u/dardiv)\
**Post date:** [September 8, 2023, 2:01pm UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/1 "2023-09-08T14:01:51Z")

</div>

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:

```auto
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

```

```auto
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;

```

```auto
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.

```auto
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:

```auto
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.

```auto
sudo service apache2 reload

sudo service apache2 restart

```

```auto
sudo nano /etc/apache2/sites-available/000-default.conf

```

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

```auto
<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.

```auto
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](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 😄 .  
PS: Please answer to my other post I don’t know how to do it. Thank you

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [September 15, 2023, 7:12am UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/2 "2023-09-15T07:12:00Z")

</div>

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! 😃 I’ve added a link to this thread under Manual Installation on the [Installing Gibbon](https://docs.gibbonedu.org/administrators/getting-started/installing-gibbon/) page in the docs.

---

<div class="post-metadata">

**Author:** ![dardiv](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/d/e19b73/32.png) [@dardiv](https://ask.gibbonedu.org/u/dardiv)\
**Post date:** [September 18, 2023, 7:26am UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/3 "2023-09-18T07:26:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mojeeza](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@mojeeza](https://ask.gibbonedu.org/u/mojeeza)\
**Post date:** [August 24, 2024, 5:50am UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/4 "2024-08-24T05:50:38Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![tmike](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/t/82dd89/32.png) [@tmike](https://ask.gibbonedu.org/u/tmike)\
**Post date:** [August 25, 2024, 1:53am UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/5 "2024-08-25T01:53:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mojeeza](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@mojeeza](https://ask.gibbonedu.org/u/mojeeza)\
**Post date:** [August 25, 2024, 4:57am UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/6 "2024-08-25T04:57:20Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![tmike](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/t/82dd89/32.png) [@tmike](https://ask.gibbonedu.org/u/tmike)\
**Post date:** [August 25, 2024, 1:34pm UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/7 "2024-08-25T13:34:02Z")

</div>

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](http://gibbon.test) run through the setup and you’re done

---

<div class="post-metadata">

**Author:** ![mojeeza](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@mojeeza](https://ask.gibbonedu.org/u/mojeeza)\
**Post date:** [September 25, 2024, 8:43am UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/8 "2024-09-25T08:43:43Z")

</div>

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](https://gibbonedu.org/support/administrators/installing-gibbon/#post-install-server-config).

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [September 26, 2024, 11:23am UTC](https://ask.gibbonedu.org/t/how-to-install-gibbon-for-noobs-like-me-on-debian-12-or-ubuntu-and-similar/8365/9 "2024-09-26T11:23:08Z")

</div>

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.
