MRatWork Forum by Mustafa Ramadhan
Language Specific Discussions => Indonesia Users => Topic started by: prandah on 2013-08-18, 20:08:35
-
halo napa ya saya sering ngalamin gini
The page you are looking for is temporarily unavailable.
Please try again later.
-
php-fpm children kurang dan atau timeout terlalu singkat.
-
Kalau wordpress, coba lihat http://wordpress.org/support/topic/top- ... navailable (http://wordpress.org/support/topic/top-of-page-the-page-you-are-looking-for-is-temporarily-unavailable)
-
Atau http://www.esotech.org/resources/cms/wo ... d-analysis (http://www.esotech.org/resources/cms/wordpress/wordpress-header-javascript-and-iframe-injection-problem-solution-and-analysis)
-
ini setingan php-fpm saya
<?php
$userinfo = posix_getpwnam($user);
if ($user === 'apache') {
// MR -- for future purpose, apache user have uid 50000
$fpmport = 50000;
} else {
$userinfo = posix_getpwnam($user);
$fpmport = (50000 + $userinfo['uid']);
}
if ($user == 'apache') {
$pool = 'default';
} else {
$pool = $user;
}
$startservers = '8';
$minspareservers = '6';
$maxspareservers = '8';
$maxchildren = '16';
?>
[<?php echo $pool; ?>]
#listen = 127.0.0.1:<?php echo $fpmport; ?>
listen = /home/php-fpm/sock/<?php echo $user; ?>.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
user = <?php echo $user; ?>
group = <?php echo $user; ?>
pm = dynamic
pm.max_children = <?php echo $maxchildren; ?>
pm.start_servers = <?php echo $startservers; ?>
pm.min_spare_servers = <?php echo $minspareservers; ?>
pm.max_spare_servers = <?php echo $maxspareservers; ?>
pm.max_requests = 1000
;pm.status_path = /status
;ping.path = /ping
;ping.response = pong
request_terminate_timeout = 120s
request_slowlog_timeout = 30s
slowlog = /var/log/php-fpm/slow.log
rlimit_files = 1024
rlimit_core = 0
;chroot =
;chdir = /var/www
catch_workers_output = yes
security.limit_extensions = .php .php3 .php4 .php5
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@domain.c om
;php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/php-fpm/error.log
php_admin_value[session.save_path] = /var/lib/php/session
php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 64M
-
Lah itu kan templatenya. Kalau hasil jadi ya di /etc/php-fpm.d
-
so edit untuk max chidren dkk dimana ?
-
$startservers = '8';
$minspareservers = '6';
$maxspareservers = '8';
$maxchildren = '16';
-
udah solved
oia kenapa ya ketika memakai
apache - nginx proxy ada beberapa .htaccess tidak terbaca ?
misal nya
plugin wordpress satu ini
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} .(jpg|jpeg|png|gif)$ [NC]
RewriteCond %{REQUEST_URI} !~hotlink-cache [NC]
RewriteCond %{REMOTE_ADDR} !^(127.0.0.1|199.48.164.48)$ [NC]
RewriteCond %{REMOTE_ADDR} !^66.6.(32|33|36|44|45|46). [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?(wallppaer.com|translate.google.com|translate.googleusercontent.com|www.microsofttranslator.co$
RewriteCond %{HTTP_USER_AGENT} !(googlebot|msnbot|baiduspider|slurp|webcrawler|teoma|photon|facebookexternalhit|facebookplatform|pinterest|feed$
RewriteCond %{HTTP_USER_AGENT} !(photon|smush.it|akamai|cloudfront|netdna|bitgravity|maxcdn|edgecast|limelight|tineye) [NC]
RewriteCond %{HTTP_USER_AGENT} !(developers|gstatic|googleapis|googleusercontent|google|ytimg) [NC]
RewriteRule (.*) byrev-wp-picshield.php?key=5MW9-4WGo&src=$1 [L]
</IfModule>
# END WP-PICShield
http://wp-picshield.com/ (http://wp-picshield.com/)
-
Yakin kalau apache only pasti terbaca dengan benar?.
-
iya :D
udah saya tested
hanya work di apache only
-
Yah, bisa jadi bug di nginx. Kalau benar ya tinggal tunggu ada yang lapor ke nginx dan dicarikan solusinya sama mereka.
-
hhahaha jawaban manteph
-
hhahaha jawaban manteph
Kok bukan anda saja yang lapor?.
Kan jadi 'ngetop' tuh di nginx community.
-
forum nya jarang apdet :D
google.com ajah dulu :D
-
update ternyata masalahnya bukan di pluginnya untuk plugin WP Pic Shield
jadi pertama harus exclude file
jpeg, jpg, png dan gif (ini hanya untuk pengguna web wallpaper)
-
jadi yang mana yg harus di edit? /etc/php-fpm.d/default.conf apa /etc/php-fpm.d/admin.conf?
kalau ram 1GB di setting berapa biar maksimal?
-
Yang anda update adalah /home/php-fpm/tpl/custom.php53-fpm.pool.conf.tpl (copy dari php53-fpm.pool.conf.tpl), misalnya:
Dari:
$startservers = '4';
$minspareservers = '2';
$maxspareservers = '4';
$maxchildren = '6';
Ke:
if ($user === 'apache') {
$startservers = '4';
$minspareservers = '2';
$maxspareservers = '4';
$maxchildren = '6';
} else {
$startservers = '8';
$minspareservers = '4';
$maxspareservers = '8';
$maxchildren = '12';
}
dan kemudian jalankan 'sh /script/restart-web'.