Discussion:
[Linux] nginx + php7 err_too_many_redirects
yaşar tunçez
2017-07-06 17:57:40 UTC
Permalink
Merhaba,

nginx + php 7 + mariadb + wordpress için Centos7 Ìzerine gerekli
kurulumları yaptım. Ancak wordpress'in kurulum aşamasında
"err_too_many_redirects" hatası alıyorum.

(sayfa.com/index.php/wp-admin/install.php url'line yönlendirme yapıyor)

cat /etc/nginx/conf.d/sayfa.conf

server {
listen 80;
server_name sayfa.com;

access_log /var/www/html/sayfa/logs/access.log;
error_log /var/www/html/sayfa/logs/error.log;

location / {
root /var/www/html/sayfa;
index index.php index.html index.htm;

if (-f $request_filename) {
expires 30d;
break;
}


if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?q=$1 last;
}
}

location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; # port where FastCGI
processes were spawned
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/sayfa$fastcgi_script_name;
# same path as above
fastcgi_param PATH_INFO $fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}




/etc/php-fpm.d/www.conf dosyasını da aşağıdaki gibi dÃŒzenledim:



user = apache - > user = nginx



group = apache - > group = nginx



listen.owner = nobody - > listen.owner = nginx



listen.group = nobody - > listen.group = nginx



; listen = 127.0.0.1:9000 - > listen = /var/run/php-fpm/php-fpm.sock
Haydar Acer
2017-08-07 09:19:46 UTC
Permalink
Selam,

--
# Haydar Acer

http://hydr.tk

twitter
<https://twitter.com/devvrim>linkedin
<https://www.linkedin.com/in/haydaracer>
Post by yaşar tunçez
Merhaba,
nginx + php 7 + mariadb + wordpress için Centos7 Ìzerine gerekli
kurulumları yaptım. Ancak wordpress'in kurulum aşamasında
"err_too_many_redirects" hatası alıyorum.
(sayfa.com/index.php/wp-admin/install.php url'line yönlendirme yapıyor)
cat /etc/nginx/conf.d/sayfa.conf
server {
listen 80;
server_name sayfa.com;
access_log /var/www/html/sayfa/logs/access.log;
error_log /var/www/html/sayfa/logs/error.log;
location / {
root /var/www/html/sayfa;
index index.php index.html index.htm;
if (-f $request_filename) {
expires 30d;
break;
}
​aşağıdaki rewrite ı kaldırıp deneyebilir misiniz.​
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?q=$1 last;
}
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; # port where FastCGI
processes were spawned
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/sayfa$fastcgi_script_name;
# same path as above
fastcgi_param PATH_INFO $fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
user = apache - > user = nginx
group = apache - > group = nginx
listen.owner = nobody - > listen.owner = nginx
listen.group = nobody - > listen.group = nginx
; listen = 127.0.0.1:9000 - > listen = /var/run/php-fpm/php-fpm.sock
_______________________________________________
Linux E-Posta Listesi
Liste kurallari: http://liste.linux.org.tr/kurallar.php
Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen
e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1
dakika içinde ÃŒyeliğinizi sonlandırabilirsiniz.
https://liste.linux.org.tr/mailman/listinfo/linux
Loading...