yaşar tunçez
2017-07-06 17:57:40 UTC
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
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