Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By tlito on
Hello, and congratulations to Drupal 8 !
I use nginx + php5-fpm. My sites work on Drupal 7.
There are some errors that did not appear in usual shared hostingm but appear in my VPS, that I configure first time.
Drupal says: "HTTP request status Fails"
This is why I catch an error is with module Boost: all cache files recreates every time I visit page like anonymous. I look `ls -l` and files renew and renew when I refresh page by anonym.
Do not know what to do and what to show. Just my few configs.
# cat /etc/nginx/nginx.conf
user www-data www-data;
worker_processes 1;
worker_priority -20;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
client_max_body_size 12m;
access_log off; #/var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
server_names_hash_max_size 1024;
server_names_hash_bucket_size 128;
#gzip on;
fastcgi_temp_path /var/cache/nginx/temp/fastcgi;
proxy_temp_path /var/cache/nginx/temp/proxy;
charset utf-8;
index index.php index.html index.htm;
#include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
# cat /etc/nginx/sites-available/xn--d1aejaxb1a.xn--p1ai
server {
listen 80;
server_name www.xn--d1aejaxb1a.xn--p1ai xn--d1aejaxb1a.xn--p1ai;
set $main_host 'xn--d1aejaxb1a.xn--p1ai';
if ($host != $main_host) {
rewrite ^(.*)$ http://$main_host$1 permanent;
break;
}
access_log /var/log/nginx/xn--d1aejaxb1a.xn--p1ai.access.log;
error_log /var/log/nginx/xn--d1aejaxb1a.xn--p1ai.error.log;
root /var/www/$main_host/www;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include /etc/nginx/conf.d/fastcgi_params.conf;
fastcgi_param SCRIPT_FILENAME /var/www/$main_host/www$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /var/www/$main_host/www;
fastcgi_param PHP_ADMIN_VALUE upload_tmp_dir=/var/www/$main_host/tmp/upload;
fastcgi_param PHP_ADMIN_VALUE session.save_path=/var/www/$main_host/tmp/sessions;
}
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
}
Comments
Resolved by deleting of bind9
This error appears when I tried to install bind9 and misconfigured it. I just deleted bind9 yesterday and today I have no this trouble.
Resolved by deleting bind9 that configured ip not correct.
Simplest way to start with Nginx + PHP-FPM
You can deploy Drupal with nginx + php-fpm to your server using Wodby
It's completely free, built on top of Docker