Antragsgruen - undone
Preparation
Database
dockercomposeInstall MySQL
sudo apt install mysql-server -y
sudo systemctl enable mysql
sudo systemctl start mysql
guideSetup forthe mysql:installation https://docs.vultr.com/how-to-install-mysql-on-ubuntu-24-04with sudo mysql_secure_installation
and choose:
- VALIDATE PASSWORD component: Y
- Password Validation Policy: 3
- Remove anonymous users?: Y
- Disallow root login remotely?: Y
- Remove test database and access to it?: Y
- Reload privilege tables now?: Y
php8.Enter MySQL with sudo mysql -u root -p
and create Database and user:
CREATE DATABASE antragsgruen;
CREATE USER '<my_user>'@'localhost' IDENTIFIED BY '<my_password>';
GRANT ALL PRIVILEGES ON antragsgruen.* TO '<my_user>'@'localhost';
FLUSH PRIVILEGES;
Exit
PHP8.4
Add PHP8.4 https://www.tecmint.com/install-php-ubuntu-24-04/Repository and install it:
Usingsudo PHP8-packagesadd-apt-repository fromppa:ondrej/php
deb.sury.org:
sudo sudo PHP8-packagesadd-apt-repository fromppa:ondrej/php
deb.sury.org:
apt update
apt-get install php8.4 php8.4-cli php8.4-fpm php8.4-intl php8.4-gd php8.4-mysql
php8.4-opcache php8.4-curl php8.4-xml php8.4-mbstring php8.4-zip php8.4-iconv
Apache2
Install Apache2:
sudo apt install unzip
get files: wget https://github.com/CatoTH/antragsgruen/releases/download/v4.15.1/antragsgruen-4.15.1.zip
unzip: unzip antragsgruen-4.15.1.zip
set config to:
a2enmod rewrite
systemctl restart apache2
https://zahiralam.com/blog/installing-node-js-20-x-on-ubuntu-24-04-lts-a-comprehensive-guide/
source:
https://github.com/CatoTH/antragsgruen
old
Anleitung unter https://github.com/CatoTH/antragsgruen
if folder not writable: sudo chmod 777 /var/www/antragsgruen/
get the correct nodejs version: https://www.fosstechnix.com/install-nodejs-and-npm-on-ubuntu-24-04-lts/
open() "/run/nginx.pid" failed (13: Permission denied)
in nginx config change php-fpm.sock to /var/run/php/php8.3-fpm.sock
and install this:
sudo apt-get install php8.3-fpm
sudo service nginx restart
sudo service php8.3:w
-fpm restart
Change
Sources