Насколько я понял, php в какой-то момент
но со временем мой маленький 120гб SSD забьется
$ sudo du -hd 1 /
3,2M /run
6,2M /lib32
15M /bin
15M /sbin
41M /root
98M /etc
264M /boot
1,7G /lib
2,0G /opt
2,5G /snap
5,3G /var
14G /usr
82G /home
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "Файл корректен и был успешно загружен.\n";
} else if($_FILES['userfile']['error'] === UPLOAD_ERR_FORM_SIZE) {
echo "А кто будет настраивать сервер под файло таких размеров?\n";
}
server {
listen 80;
#listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
server_name my-site.com *.my-site.com;
charset utf-8;
access_log /var/www/logs/access.nginx.log;
error_log /var/www/logs/error.nginx.log error;
set $subdomain "www";
if ($host ~* ^([-a-z0-9]+)\.my-site\.com$) {
set $subdomain $1;
}
if ($host ~* ^www\.my-site\.com$) {
rewrite ^/(.*)$ http://my-site.com/$1 permanent;
}
root /var/www/$subdomain/public;
client_max_body_size 32M;
location / {
rewrite ^/.*$ /index.php last;
}
# Pass the PHP scripts to FastCGI server
location ~ ^/index.php {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}