Skip to content

Instantly share code, notes, and snippets.

@werwolf41
werwolf41 / php-restrictions.nginxconf
Created May 2, 2018 17:19 — forked from Ellrion/php-restrictions.nginxconf
Nginx + Php-fpm config for Laravel app
# /etc/nginx/global/php-restrictions.conf
# Don't throw any errors for missing favicons and don't display them in the logs
location = /favicon.ico {
log_not_found off;
access_log off;
}
# Don't log missing robots or show them in the nginx logs
location = /robots.txt {
allow all;
@werwolf41
werwolf41 / data.txt
Created October 7, 2017 05:18 — forked from bendasvadim/data.txt
linux web serwer
sudo apt-get update
sudo apt-get upgrade
Установка программ
sudo apt install apache2 mysql-server mysql-client vsftpd ssh mc git
Настройка php
Включаем php в виде модуля апачи:
sudo apt install php7.0 libapache2-mod-php7.0
sudo a2enmod rewrite