19 lines
725 B
Bash
19 lines
725 B
Bash
#!/bin/bash
|
|
apt-get install -y apache2 apache2-mod_ssl postgresql16 postgresql16-contrib php8.2 apache2-mod_php 8.2 php8.2-pgsql php8.2-gd php8.2-json php8.2-xml php8.2-mbstring php8.2-zip php8.2-curl php8.2-intl php8.2-bcmath php8.2-gmp php8.2-imagick php8.2-apcu php8.2-pdo php8.2-xml php8.2-openssl php8.2-pcntl php8.2-xmlreader php8.2-ldap wget unzip
|
|
|
|
a2enmod rewrite headers env dir mime setenvif ssl proxy proxy_fcgi
|
|
|
|
systemctl restart apache2
|
|
|
|
php -v
|
|
|
|
systemctl start postgresql
|
|
systemctl status postgresql
|
|
ls -la /var/lib/pgsql/data/
|
|
su - postgres -s /bin/bash -c "initdb -D /var/lib/pgsql/data"
|
|
systemctl start postgresql
|
|
systemctl status postgresql
|
|
systemctl enable postgresql
|
|
su - postgres -s /bin/bash -c "psql"
|
|
|