Advertisement
niammuddin

Setelah install VPS

Feb 23rd, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. lihat disini dulu http://kangniam.blogspot.com/2015/02/opsi-setelah-install-nginx-php5-fpm.html
  2.  
  3. ===============================
  4. (1) optimasi mysql
  5. ===============================
  6.  
  7. storage engine ke myisam
  8.  
  9. /etc/my.cnf
  10.  
  11. [mysqld]
  12. default-storage-engine=MYISAM
  13.  
  14. ===============================
  15. (2) limit upload nginx
  16. ===============================
  17.  
  18. /etc/nginx/nginx.conf
  19. http {
  20.  
  21. ##
  22. # Basic Settings
  23. ##
  24. fastcgi_buffers 8 16k;
  25. fastcgi_buffer_size 32k;
  26. client_max_body_size 100m;
  27.  
  28. ================================
  29. (3) limit upload php/phpmyadmin
  30. ================================
  31.  
  32. upload_max_filesize = 2M
  33. post_max_size = 8M
  34.  
  35. jadi:
  36.  
  37. upload_max_filesize = 50M
  38. post_max_size = 50M
  39.  
  40. ===============================
  41. (4) konfigurasi php.ini
  42. ===============================
  43.  
  44. ;cgi.fix_pathinfo=1
  45.  
  46. jadi:
  47.  
  48. cgi.fix_pathinfo=0
  49.  
  50. ===============================
  51. (5) cek konfigurasi www.conf
  52. ===============================
  53.  
  54. /etc/php5/fpm/pool.d/www.conf
  55.  
  56. listen = 127.0.0.1:9000
  57.  
  58. jadi:
  59.  
  60. listen = /var/run/php5-fpm.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement