diff options
| author | hitlerrip <git@hitler.rip> | 2025-12-18 13:45:07 +0100 |
|---|---|---|
| committer | hitlerrip <git@hitler.rip> | 2025-12-18 13:45:07 +0100 |
| commit | 9ee39dd51e507a10e515f6e1f916f8e040de15b6 (patch) | |
| tree | 24bcd6579d52e002d588f973dc3ff49e829ac739 /server.sh | |
| parent | 66c32ec2e72397147c111685fb71ec000fe683c7 (diff) | |
| download | website-9ee39dd51e507a10e515f6e1f916f8e040de15b6.tar.gz website-9ee39dd51e507a10e515f6e1f916f8e040de15b6.tar.bz2 website-9ee39dd51e507a10e515f6e1f916f8e040de15b6.zip | |
4get done
- 4get is now set up, final changes now in script
Diffstat (limited to 'server.sh')
| -rwxr-xr-x | server.sh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
