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 = 5s

 

 

4.

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

http://extJS2.iteye.com/blog/1750398

 

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

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值