Debian6 + Nginx + Mysql + Php + Zend + eaccelerator website setup

Source: Internet
Author: User
Tags idn recode
Debian6 was released. I installed a server in the virtual machine and tried it over the past few days. it feels lighter than Ubuntu and faster than centos, but there is always such a small problem. The following describes the installation process. 1. install debian in Chinese without installing any services. 2. install ssh to paste the code Debian 6 on other machines, these days I have installed a server in the virtual machine and tried it. it feels lighter than Ubuntu and faster than centos, but there is always such a small problem. The following describes the installation process:

1. install debian. select Chinese and do not install any services;
2. install ssh to paste the code on other machines:
Apt-get install openssh-server
3. add the 163 and dotdeb sources:
Deb http://mirrors.163.com/debian squeeze main non-free contrib


Deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
Deb http://mirrors.163.com/debian-security squeeze/updates main contrib non-free


Deb-src http://mirrors.163.com/debian squeeze main non-free contrib
Deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
Deb-src http://mirrors.163.com/debian-security squeeze/updates main contrib non-free

Deb http://packages.dotdeb.org stable all
The deb-src http://packages.dotdeb.org stable all

Wget http://www.dotdeb.org/dotdeb.gpg
Cat dotdeb. gpg | apt-key add-
Update:

Apt-get update & apt-get upgrade
4. solve terminal garbled characters:
Vi/etc/default/locale
Comment out others and add a line:

LANG = C
5. install the website system:
Apt-get install nginx php5-common php5-dev php5-cgi spawn-fcgi php-apc php5-mysql php5-curl php5-gd php5-idn php-pear
Php5-mcrypt php5-memcache php5-ming php5-recode php5-tidy php5-xmlrpc php5-xsl mysql-server make

The following are optional installation items:

Apt-get install php5-imagick php5-imap php5-recode php5-snmp php5-sqlite php5-xmlrpc php5-suhosin php5-odbc
6, when starting the php5-fpm error:
Starting php5-fpm: PHP Deprecated: Comments starting with # are deprecated in/etc/php5/fpm/conf. d/ming. ini on line 1 in Unknown on line 0
PHP Warning: Function registration failed-duplicate name-idn_to_ascii in Unknown on line 0
PHP Warning: Function registration failed-duplicate name-idn_to_utf8 in Unknown on line 0
PHP Warning: idn: Unable to register functions, unable to load in Unknown on line 0
Segmentation fault
Failed
Solution:
First

Vi/etc/php5/fpm/conf. d/ming. ini
Change #.
Second

Vi/etc/php5/fpm/conf. d/idn. ini
I cannot think of other methods. I comment out the statements and cannot find relevant information on the Internet.

7. install eaccelerator and zendguardloader
Sudo mkdir/usr/zend
Mkdir/tmp/eaccelerator
Chmod 0777/tmp/eaccelerator
Wget http://phpcj.googlecode.com/files/ZendGuardLoader.so
Sudo mv ZendGuardLoader. so/usr/zend/ZendGuardLoader. so
Wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
Tar xvjf eaccelerator-0.9.6.1.tar.bz2
Cd eaccelerator-0.9.6.1
Cp control. php/var/www/control. php // Copy the control program to the website directory through http: // website name/control. php. the default account is
Admin. the password is eAccelertor. you can edit this file.
Phpize
Sudo./configure -- enable-eaccelerator = shared
Sudo make
Sudo make install
Sudo vi/etc/php5/fpm/php. ini
Add the following at the end of the configuration file:
Code:
Zend_extension =/usr/zend/ZendGuardLoader. so
Zend_loader.enable = 1
Zend_loader.disable_licensing = 0
Zend_loader.obfuscation_level_support = 3
Zend_loader.license_path =
Zend_extension = "/usr/lib/php5/20090626 + lfs/eaccelerator. so"
Eaccelerator. shm_size = "16"
Eaccelerator. cache_dir = "/tmp/eaccelerator"
Eaccelerator. enable = "1"
Eaccelerator. optimizer = "1"
Eaccelerator. check_mtime = "1"
Eaccelerator. debug = "0"
Eaccelerator. filter = ""
Eaccelerator. shm_max = "0"
Eaccelerator. shm_ttl = "0"
Eaccelerator. shm_prune_period = "0"
Eaccelerator. shm_only = "0"
Eaccelerator. compress = "1"
Eaccelerator. compress_level = "9"
Eaccelerator. allowed_admin_path = "/var/www/control. php"
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.