Skip to main content

2. Installation sur Ubuntu Serveur 22.04

Tuto installation en vidéo de Dolibarr avec les ligne de commande :

sudo apt update & sudo apt upgrade 

sudo apt-get install software-properties-common -y

sudo add-apt-repository ppa:ondrej/php -y

sudo apt update
    
sudo apt install apache2 mysql-server php8.2 php8.2-mysql libapache2-mod-php8.2 php8.2-curl php8.2-gd php-json php8.2-mbstring php8.2-xml php8.2-zip php8.2-intl php8.2-imap 

sudo systemctl start apache2 & sudo systemctl enable apache2

sudo systemctl start mysql & sudo systemctl enable mysql

sudo mysql -u root -p

CREATE DATABASE dolibarr;

CREATE USER 'dolibarruser'@'localhost' IDENTIFIED BY 'Password';

GRANT ALL PRIVILEGES ON dolibarr.* TO 'dolibarruser'@'localhost';

FLUSH PRIVILEGES;

EXIT;

wget https://github.com/Dolibarr/dolibarr/archive/refs/tags/19.0.3.tar.gz

tar -xvzf
 
sudo cp -r dolibarr-19.0.3 /var/www/html/dolibarr

sudo nano /etc/apache2/sites-available/dolibarr.conf


<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    DocumentRoot /var/www/html/dolibarr

    <Directory /var/www/html/dolibarr>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/dolibarr_error.log
    CustomLog ${APACHE_LOG_DIR}/dolibarr_access.log combined
</VirtualHost>


sudo a2ensite dolibarr.conf
  
sudo chown -R www-data:www-data /var/www/html/dolibarr/

sudo chmod -R 775 /var/www/html/dolibarr/

sudo a2ensite dolibarr

sudo a2enmod rewrite

sudo systemctl restart apache2 & systemctl status apache2

ip/dolibarr