From 9ee39dd51e507a10e515f6e1f916f8e040de15b6 Mon Sep 17 00:00:00 2001 From: hitlerrip Date: Thu, 18 Dec 2025 13:45:07 +0100 Subject: 4get done - 4get is now set up, final changes now in script --- server.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server.sh b/server.sh index df67d4b..9df4289 100755 --- a/server.sh +++ b/server.sh @@ -198,9 +198,10 @@ server { root /srv/frontends/4get; location @php { try_files $uri.php $uri/index.php =404; - fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; + fastcgi_pass unix:/var/run/php/php-fpm.sock; fastcgi_index index.php; include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } location / { @@ -292,11 +293,11 @@ EOF echo "[server] cgit server created. you may now replace /usr/share/cgit/cgit.png and /usr/share/cgit/favicon.ico with a custom image." echo "[server] setting up 4get..." -sudo apt install -y php-mbstring php-imagick imagemagick php-curl php-apcu +sudo apt install -y php-fpm php-mbstring php-imagick imagemagick php-curl php-apcu sudo mkdir -p /srv/frontends/4get/ sudo chown -R "$(whoami)":"$(whoami)" /srv/frontends/4get/ git clone --depth 1 https://git.lolcat.ca/lolcat/4get /srv/frontends/4get -echo "[server] 4get server created. You may now edit the robots.txt, enable cloudflare support and style the page. (TODO!)" +echo "[server] 4get server created. You may now edit the robots.txt, data/config.php, add banners, the favicon and edit the template files." echo "[server] configuring shell..." tee ~/.bash_aliases << EOF -- cgit v1.2.3