Install Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X Mavericks or Yosemite
http://blog.frd.mn/install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/
http://blog.frd.mn/install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/
server { server_name www.yourdomainname.com; return 301 $scheme://yourdomainname.com$request_uri; } server { listen 80; server_name yourdomainname.com; root /var/www; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires 1y; log_not_found off; } location ~ \.php$ { try_files $uri /index.php =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
https://rtcamp.com/tutorials/php/increase-script-execution-time/
http://www.narga.net/recommended-nginx-configuration-high-traffic-wordpress/
http://jonathonhill.net/2012-12-16/scaling-your-website-three-stages/
http://archives.opennebula.org/documentation:uc4
http://jeremymarc.github.io/2013/04/22/nginx-and-php-fpm-for-performance/
http://www.if-not-true-then-false.com/2011/nginx-and-php-fpm-configuration-and-optimizing-tips-and-tricks/
http://www.nginxtips.com/configure-max_execution_time-in-php-fpm-using-nginx/
http://www.tekovic.com/fixing-timeout-between-nginx-and-php-fpm
ssh root@ip create droplet adduser demo add sudoers nano /etc/sudoers # User privilege specification root ALL=(ALL:ALL) ALL demo ALL=(ALL:ALL) ALL ssh demo@ip sudo apt-get update sudo apt-get upgrade sudo apt-get install nginx sudo apt-get install php5-fpm sudo apt-get install php5-curl sudo apt-get install php5-mcrypt sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available sudo php5enmod mcrypt #erikaheidi setup swap sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 sudo mkswap /swapfile sudo swapon /swapfile sudo nano /etc/fstab /swapfile swap swap defaults 0 0 setup php5-fpm sudo nano /etc/php5/fpm/php.ini cgi.fix_pathinfo=0 sudo nano /etc/php5/fpm/pool.d/www.conf listen = 127.0.0.1:9000 to listen = /var/run/php5-fpm.sock setup nginx sudo nano /etc/nginx/nginx.conf uncomment server_names_hash_bucket_size 64;
Reply