configuration serveur application debian 10
apt-get update
apt-get upgrade
INSTALLER LE SERVEUR WEB NGINX
apt-get install nginx
systemctl stop nginx.service
systemctl start nginx.service
systemctl enable nginx.service
INSTALLER PHP 7.4-FPM ET LE MODULE REQUIS
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo deb https://packages.sury.org/php/ $(lsb_release -sc) main | tee /etc/apt/sources.list.d/php7.4.list
apt-get update
apt-get upgrade
apt-get install php7.4-fpm
Installez les modules requis par Moodle
apt-get install aspell graphviz clamav php7.4-common php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-pgsql php7.4-cli php7.4-ldap php7.4-zip php7.4-curl
INSTALLATION MOODLE
cd /tmp
wget https://download.moodle.org/download.php/direct/stable311/moodle-latest-311.tgz
tar -zxvf moodle-latest-311.tgz
mv moodle /var/www/html/moodle
cd
mkdir /var/moodledata
chown -R www-data /var/www/html/moodle
chmod -R 777 /var/www/html/moodle
chown -R www-data /var/moodledata
chmod -R 777 /var/moodledata
configurer les paramètres de fichier dans Nginx pour Moodle
nano /etc/nginx/sites-available/moodle
server {
listen 80;
listen [::]:80;
root /var/www/html/moodle;
index index.php index.html index.htm;
server_name 10.0.0.5;
location / {
try_files $uri $uri/ =404;
}
location /dataroot/ {
internal;
alias /var/moodledata/;
}
location ~ [^/]\.php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
activez moodle sur nginx en copiant / dupliquant / etc / nginx / sites-available / moodle dans / etc / nginx / sites-enabled, via la commande:
ln -s /etc/nginx/sites-available/moodle /etc/nginx/sites-enabled/
nginx -t
serveur base de donnée distance
apt-get install postgresql postgresql-contrib
pg_isready
systemctl status postgresql
systemctl start postgresql
systemctl stop postgresql
systemctl restart postgresql
systemctl reload postgresql
passwd postgres
su - postgres
psql -c "ALTER USER postgres WITH PASSWORD 'pass';"
nano /etc/postgresql/11/main/pg_hba.conf
systemctl restart postgresql
su - postgres
psql
CREATE USER moodle WITH PASSWORD 'password';
CREATE DATABASE moodlebd;
GRANT ALL PRIVILEGES ON DATABASE moodlebd to moodle;
\q
voila se que j'ai fait mais ça ne march toujours pas
apt-get update
apt-get upgrade
INSTALLER LE SERVEUR WEB NGINX
apt-get install nginx
systemctl stop nginx.service
systemctl start nginx.service
systemctl enable nginx.service
INSTALLER PHP 7.4-FPM ET LE MODULE REQUIS
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo deb https://packages.sury.org/php/ $(lsb_release -sc) main | tee /etc/apt/sources.list.d/php7.4.list
apt-get update
apt-get upgrade
apt-get install php7.4-fpm
Installez les modules requis par Moodle
apt-get install aspell graphviz clamav php7.4-common php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-pgsql php7.4-cli php7.4-ldap php7.4-zip php7.4-curl
INSTALLATION MOODLE
cd /tmp
wget https://download.moodle.org/download.php/direct/stable311/moodle-latest-311.tgz
tar -zxvf moodle-latest-311.tgz
mv moodle /var/www/html/moodle
cd
mkdir /var/moodledata
chown -R www-data /var/www/html/moodle
chmod -R 777 /var/www/html/moodle
chown -R www-data /var/moodledata
chmod -R 777 /var/moodledata
configurer les paramètres de fichier dans Nginx pour Moodle
nano /etc/nginx/sites-available/moodle
server {
listen 80;
listen [::]:80;
root /var/www/html/moodle;
index index.php index.html index.htm;
server_name 10.0.0.5;
location / {
try_files $uri $uri/ =404;
}
location /dataroot/ {
internal;
alias /var/moodledata/;
}
location ~ [^/]\.php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
activez moodle sur nginx en copiant / dupliquant / etc / nginx / sites-available / moodle dans / etc / nginx / sites-enabled, via la commande:
ln -s /etc/nginx/sites-available/moodle /etc/nginx/sites-enabled/
nginx -t
serveur base de donnée distance
apt-get install postgresql postgresql-contrib
pg_isready
systemctl status postgresql
systemctl start postgresql
systemctl stop postgresql
systemctl restart postgresql
systemctl reload postgresql
passwd postgres
su - postgres
psql -c "ALTER USER postgres WITH PASSWORD 'pass';"
nano /etc/postgresql/11/main/pg_hba.conf
systemctl restart postgresql
su - postgres
psql
CREATE USER moodle WITH PASSWORD 'password';
CREATE DATABASE moodlebd;
GRANT ALL PRIVILEGES ON DATABASE moodlebd to moodle;
\q
voila se que j'ai fait mais ça ne march toujours pas