diff options
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 |
