IDE:Hauptseite: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 11: | Zeile 11: | ||
==Moodle== | ==Moodle== | ||
<pre> | <pre> | ||
server { | |||
listen 80; | |||
server_name localhost; | |||
root /var/www/moodle; | |||
root /var/www/moodle; | |||
index index.php index.html index.htm; | index index.php index.html index.htm; | ||
| Zeile 41: | Zeile 36: | ||
} | } | ||
} | } | ||
Version vom 28. Juni 2025, 15:42 Uhr
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;
}
}