drupal 7 nginx
1.
I want to create the password file /var/www/www.example.com/.htpasswd now and store the user falko in it (you can give the password file any name you like - it's not necessary to name it .htpasswd; I just named it .htpasswd because that's the way password files are named under Apache):
htpasswd -c /etc/nginx/.htpasswd-users admin
2.
How to install PHP GB on Ubuntu using apt-get, specifically php5-gd.
To install PHP GD on Ubuntu enter the following command:
sudo apt-get install php5-gd
If your web server setup is in order, only install the php gd extension and restart php scripting interpreter and web server.
service php5-fpm restart
3.
To install MySQL, run the following command from a terminal prompt:
sudo apt-get install mysql-server
sudo apt-get install php5-mysql (MySQL Module for PHP)
service php5-fpm restart
Adjusting child processes for PHP-FPM (Nginx)
vi /etc/php5/fpm/pool.d/www.conf
pm.max_children = 200 pm.start_servers = 10 pm.min_spare_servers = 5 pm.max_spare_servers = 35 slowlog = /var/log/slow-$pool.log.slow request_slowlog_timeout = 5s4.
The simplest way to make backup is to run Drush command inside drupal root.
$ cd /var/www/example.com $ drush archive-dump --destination=/var/backup/example.com.tar.gz Archive saved to /var/backup/example.com.tar.gz
5. mysql
cd /etc/mysql/conf.d#
vi custom.cnf
add content
[mysqld]
query_cache_size = 1524M
sort_buffer_size = 20M
read_rnd_buffer_size = 1M
join_buffer_size = 20M
table_cache = 1024
innodb_buffer_pool_size = 512M
7. php
vi /etc/php5/fpm/php.ini
memory_limit = 188M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
8. install apc
sudo apt-get install php-apc
:/etc/php5/fpm/conf.d# vi apc.ini
extension=apc.so
apc.shm_size=80M
9. install memcache
https://drupal.org/node/1131468
cd /etc/php5/fpm/conf.d
vi memcache.ini
extension=memcache.so
10. curl
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl