Hi, I have serious problems with my installation of zenphoto. Many pages shows up with 502 error. I have consulted it with my provider and we have done everything what was possible to eliminate this problem (reinstall, PHP memory limit etc). My other installations (WP, Drupal) have no troubles. Only zenphoto makes me sad. After all what have been done provider tells me that there may be a problem in rewrite functions of zenphoto. Is it possible?
Comments
htaccess was only modified with the four lines down because of advice from provider
<IfModule mod_autoindex.c>
IndexIgnore *
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /zenphoto
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^.*/?$ index.php [L,QSA]
</IfModule>
php_flag xcache.cacher Off
php_flag xcache.size 0
php_flag xcache.stat Off
php_value opcache.enable 0
php memory limit is max (256 MB) and max_execution_time is 600s
using apache 2.4 php 5.6.5
mod_rewrite is enabled in zenphoto and on server
sites with error are random... some work fine (backend, frontend) and after while there is 502
security, error or debug log?
So you say all kind of pages have this error? We need something we can realyl reproduce to find out what it might be. Any entry possibly related to the error and pages might be helpful.
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:11:05 +0200] "GET /zenphoto/zp-core/admin-options.php?page=options&tab=general HTTP/1.1" 502 2059 "http://jlfoto.sk/zenphoto/zp-core/admin-users.php?page=users&tab=users" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 1.437 - 10.10.35.21:105 : unix:/var/run/php-fpm-errorpages.sock 1.436 : 0.001
jlfoto.sk 141.8.142.13 - - [08/Jul/2016:07:11:26 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 0.005 MISS 10.10.35.21:105 0.005
www.jlfoto.sk 141.8.142.87 - - [08/Jul/2016:07:11:27 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 0.008 MISS 10.10.35.21:105 0.008
jlfoto.sk 141.8.141.132 - - [08/Jul/2016:07:11:30 +0200] "GET / HTTP/1.1" 301 234 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 0.005 MISS 10.10.35.21:105 0.005
www.jlfoto.sk 141.8.142.87 - - [08/Jul/2016:07:11:31 +0200] "GET / HTTP/1.1" 301 238 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 0.005 MISS 10.10.35.21:105 0.005
jlfoto.sk 141.8.143.175 - - [08/Jul/2016:07:11:34 +0200] "GET / HTTP/1.1" 301 234 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 0.005 MISS 10.10.35.21:105 0.005
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:11:36 +0200] "GET /zenphoto/zp-core/admin.php HTTP/1.1" 200 7123 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 1.624 MISS 10.10.35.21:105 1.624
www.jlfoto.sk 93.158.152.7 - - [08/Jul/2016:07:11:37 +0200] "GET /zenphoto/ HTTP/1.1" 200 6415 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 2.092 MISS 10.10.35.21:105 2.092
www.jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:11:38 +0200] "GET /zenphoto/zp-core/zp-extensions/tiny_mce/plugins/emotions/img/smiley-smile.gif HTTP/1.1" 404 13295 "http://jlfoto.sk/zenphoto/zp-core/admin.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 1.803 MISS 10.10.35.21:105 1.803
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:11:40 +0200] "GET /zenphoto/zp-core/admin-logs.php?page=logs HTTP/1.1" 200 3031 "http://jlfoto.sk/zenphoto/zp-core/admin.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.561 MISS 10.10.35.21:105 0.561
jlfoto.sk 5.255.251.138 - - [08/Jul/2016:07:11:40 +0200] "GET / HTTP/1.1" 301 234 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 0.005 MISS 10.10.35.21:105 0.005
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:11:42 +0200] "GET /zenphoto/zp-core/admin-logs.php?page=logs&tab=setup HTTP/1.1" 200 5661 "http://jlfoto.sk/zenphoto/zp-core/admin-logs.php?page=logs" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.675 MISS 10.10.35.21:105 0.675
jlfoto.sk 141.8.141.140 - - [08/Jul/2016:07:11:47 +0200] "GET /zenphoto/ HTTP/1.1" 502 2059 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 2.062 - 10.10.35.21:105 : unix:/var/run/php-fpm-errorpages.sock 2.060 : 0.002
jlfoto.sk 100.43.91.15 - - [08/Jul/2016:07:11:50 +0200] "GET /zenphoto/ HTTP/1.1" 502 2059 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 2.229 - 10.10.35.21:105 : unix:/var/run/php-fpm-errorpages.sock 2.228 : 0.001
jlfoto.sk 141.8.143.25 - - [08/Jul/2016:07:11:53 +0200] "GET /zenphoto/ HTTP/1.1" 200 6417 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" 1.411 MISS 10.10.35.21:105 1.370
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:12:40 +0200] "GET /zenphoto/zp-core/admin-logs.php?page=logs&tab=security HTTP/1.1" 200 3031 "http://jlfoto.sk/zenphoto/zp-core/admin-logs.php?page=logs&tab=setup" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.268 MISS 10.10.35.21:105 0.268
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:12:44 +0200] "GET /zenphoto/zp-core/zp-extensions/rewriteTokens/admin_tab.php?page=tokens&tab=tokeny HTTP/1.1" 502 2059 "http://jlfoto.sk/zenphoto/zp-core/admin-logs.php?page=logs&tab=security" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.117 - 10.10.35.21:105 : unix:/var/run/php-fpm-errorpages.sock 0.117 : 0.000
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:15:48 +0200] "GET /zenphoto/zp-core/admin.php HTTP/1.1" 200 7123 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 2.003 BYPASS 10.10.35.21:105 2.003
www.jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:15:50 +0200] "GET /zenphoto/zp-core/zp-extensions/tiny_mce/plugins/emotions/img/smiley-smile.gif HTTP/1.1" 404 13303 "http://jlfoto.sk/zenphoto/zp-core/admin.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 1.776 BYPASS 10.10.35.21:105 1.776
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:15:51 +0200] "GET /zenphoto/zp-core/zp-extensions/rewriteTokens/admin_tab.php?page=tokens&tab=tokeny HTTP/1.1" 200 2611 "http://jlfoto.sk/zenphoto/zp-core/admin.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.692 BYPASS 10.10.35.21:105 0.692
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:15:56 +0200] "GET /zenphoto/zp-core/zp-extensions/deprecated-functions/admin_tab.php?page=deprecated&tab=zastaran%C3%A9 HTTP/1.1" 200 3958 "http://jlfoto.sk/zenphoto/zp-core/zp-extensions/rewriteTokens/admin_tab.php?page=tokens&tab=tokeny" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.509 BYPASS 10.10.35.21:105 0.509
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:15:58 +0200] "GET /zenphoto/zp-core/zp-extensions/comment_form/admin-comments.php?page=comments&tab=koment%C3%A1re HTTP/1.1" 200 4888 "http://jlfoto.sk/zenphoto/zp-core/zp-extensions/deprecated-functions/admin_tab.php?page=deprecated&tab=zastarané" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.666 BYPASS 10.10.35.21:105 0.666
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:01 +0200] "GET /zenphoto/zp-core/admin-users.php?page=users&tab=users HTTP/1.1" 200 70110 "http://jlfoto.sk/zenphoto/zp-core/zp-extensions/comment_form/admin-comments.php?page=comments&tab=komentáre" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.691 BYPASS 10.10.35.21:105 0.673
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:03 +0200] "GET /zenphoto/zp-core/admin-options.php?page=options&tab=general HTTP/1.1" 200 14274 "http://jlfoto.sk/zenphoto/zp-core/admin-users.php?page=users&tab=users" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.305 BYPASS 10.10.35.21:105 0.305
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/zp-core/admin-themes.php HTTP/1.1" 200 5514 "http://jlfoto.sk/zenphoto/zp-core/admin-options.php?page=options&tab=general" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.510 BYPASS 10.10.35.21:105 0.510
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/basic/theme.png HTTP/1.1" 200 7924 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.018 BYPASS 10.10.35.21:105 0.018
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/zp-core/images/page_white_copy.png HTTP/1.1" 200 309 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.013 BYPASS 10.10.35.21:105 0.013
jlfoto.sk 207.46.13.12 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/cache/Vanoce-2012/Vanoce2012_013_mini_630.jpg HTTP/1.1" 200 213169 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" 0.555 BYPASS 10.10.35.21:105 0.055
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/effervescence_plus/theme.jpg HTTP/1.1" 200 12477 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.019 BYPASS 10.10.35.21:105 0.019
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/libratus/theme.png HTTP/1.1" 200 59390 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.008 BYPASS 10.10.35.21:105 0.008
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/garland/theme.png HTTP/1.1" 200 18772 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.021 BYPASS 10.10.35.21:105 0.021
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/zenpage/theme.png HTTP/1.1" 200 18530 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.015 BYPASS 10.10.35.21:105 0.015
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/zpbase/theme.png HTTP/1.1" 200 25898 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.016 BYPASS 10.10.35.21:105 0.016
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/zpmobile/theme.png HTTP/1.1" 200 32069 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.020 BYPASS 10.10.35.21:105 0.020
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:05 +0200] "GET /zenphoto/themes/zpskeleton/theme.png HTTP/1.1" 200 24068 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.026 BYPASS 10.10.35.21:105 0.026
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:07 +0200] "GET /zenphoto/zp-core/admin-plugins.php HTTP/1.1" 200 7079 "http://jlfoto.sk/zenphoto/zp-core/admin-themes.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.617 BYPASS 10.10.35.21:105 0.617
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:10 +0200] "GET /zenphoto/zp-core/admin-logs.php?page=logs HTTP/1.1" 502 2059 "http://jlfoto.sk/zenphoto/zp-core/admin-plugins.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.674 - 10.10.35.21:105 : unix:/var/run/php-fpm-errorpages.sock 0.669 : 0.005
if it helps i can create for you login to my server and you can look there for errors.
jlfoto.sk 89.173.6.157 - - [08/Jul/2016:07:16:10 +0200] "GET /zenphoto/zp-core/admin-logs.php?page=logs HTTP/1.1" 502 2059 "http://jlfoto.sk/zenphoto/zp-core/admin-plugins.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" 0.674 - 10.10.35.21:105 : unix:/var/run/php-fpm-errorpages.sock 0.669 : 0.005
if it can help I can make you an account to my server and you can look there for possible reasons.
A 502 bad gateway is generally a server internal problem due to some configuration. I am sadly not a server admin. From my experience I never saw this on any standard shared host I installed Zenphoto on…
Can you try a simpler theme maybe (Zenpage or basic for example)? It might be that the theme I am not that famiiar with does a few things that are too heavy for the server for some reason and therefore results in that error. Just to rule out that is is just the theme…
You could also try if using Zenphoto without modrewrite makes any difference.