Debian 6 + Nginx + Mysql + Php + Zend + eaccelerator website setup

Source: Internet
Author: User
Tags idn recode

Debian 6 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. 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 squeeze main non-free contrib

Deb squeeze-proposed-updates main contrib non-free
Deb squeeze/updates main contrib non-free

Deb-src squeeze main non-free contrib
Deb-src squeeze-proposed-updates main contrib non-free
Deb-src squeeze/updates main contrib non-free

Deb stable all
The deb-src stable all

Cat dotdeb. gpg | apt-key add-

Apt-get update & apt-get upgrade
4. Solve terminal garbled characters:
Comment out others and add a line:

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

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

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
Chmod 0777/tmp/eaccelerator
Sudo mv ZendGuardLoader. so/usr/zend/ZendGuardLoader. so
Tar xvjf eaccelerator-
Cd eaccelerator-
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.
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:
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: 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.