|
|
| Zeile 1: |
Zeile 1: |
| ==Datenbank Installieren==
| |
| <pre>
| |
| 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
| |
| </pre>
| |
|
| |
|
| ==Moodle==
| |
| <pre>
| |
| 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;
| |
| }
| |
| }
| |