IDE:Hauptseite: Unterschied zwischen den Versionen

Aus ahrensburg.city
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 11: Zeile 11:
==Moodle==
==Moodle==
<pre>
<pre>
cd /var/www
server {
git clone git://git.moodle.org/moodle.git
  listen 80;
cd moodle
  server_name localhost;
git branch -a
  root /var/www/moodle;
git branch --track MOODLE_500_STABLE origin/MOODLE_500_STABLE
 
git checkout MOODLE_500_STABLE
</pre>
==Moodle Entwicklungserver==
<pre>
root /var/www/moodle;
   index index.php index.html index.htm;
   index index.php index.html index.htm;


Zeile 41: Zeile 36:
   }
   }
}
}
</pre>

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;
  }
}