To list all configurations
nginx -T
To list all server names
nginx -T | grep "server_name "
To list all configurations
nginx -T
To list all server names
nginx -T | grep "server_name "
server {
(...)
client_max_body_size 64M;
You might be having some troubles with file permissions!
I’m setting a new small vps for some tests and I got this…
/var/log/php-fpm/www-error.log
PHP Warning: touch(): Unable to create file ./cache/index.html because Permission denied in
Centos 7
nginx
PHP 7.3.3 PHP-FPM
My PHP-FPM running under apache user instead of nginx on /etc/php-fpm.d/www.conf
Não foram recebidos dados para importar. Ou não foi submetir um nome de ficheiro, ou o tamanho do ficheiro excede o tamanho máximo permitido pela sua configuração PHP. Veja FAQ 1.16.
Temos de aumentar o limit de upload e post no php.ini
vi /etc/nginx/conf.d/directives.conf
The directives
proxy_send_timeout 1200s;
proxy_read_timeout 1200s;
fastcgi_send_timeout 1200s;
fastcgi_read_timeout 1200s;
proxy_buffers 8 16k;
proxy_buffer_size 32k;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
Save, close & restart nginx
Agenda
https://www.nginx.com/wp-content/uploads/2018/12/NGINX-Conf-2018-slides_Choi-streaming.pdf
– Introduction to streaming
– Turn NGINX into a streaming server
– HLS/DASH VOD by NGINX – How?
– Supporting HLS 7
– Encrypting HLS
– High-bitrate streaming (4K/8K UHD) by NGINX
– Low-latency live by NGINX
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)
Try to chown /var/lib/php/session/ with the user who is running httpd.
In my case it was nginx.
chown nginx: /var/lib/php/session/
In a fresh CENTOS, while installing & testing nginx i’v faced the following error..
2019/10/10 17:54:11 [crit] 18960#0: *1 stat() "/home/www/html/index.php"
failed (13: Permission denied)
, client: 94.61.69.69, server: 51.158.69.69, request: "GET /index.php HTTP/1.1", host: "51.158.69.69"
This is how I’v solved.
chcon -R -t httpd_sys_content_t /home/www/html/
While trying to renew the letsencrypt cert I got the following error
produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.
A simple solution – in my case – was to stop nginx, renew the cert and start nginx.