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 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"