IDE:Hauptseite

Aus ahrensburg.city
Zur Navigation springen Zur Suche springen

Datenbank Installieren

sudo apt-get install postgresql-all
sudo -u postgres -i
createdb -E UTF8 -O thorsten mediawiki
psql -d mediawiki -c "GRANT ALL PRIVILEGES ON DATABASE mediawiki TO thorsten"
psql -d mediawiki -c "\password thorsten"   //Passwort in Entwickling "Tes"
exit

Moodle

server {
  listen 80;
  server_name localhost;
  root /var/www/moodle;

  index index.php index.html index.htm;

  location / {
    try_files $uri $uri/ =404;
  }

  location ~ [^/]\.php(/|$) {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires max;
    log_not_found off;
  }
}