A server is being configured recently, mainly in the lamp environment. Lamp is used because the traffic volume is not large, and lnmp environment can be used for the traffic volume.
Here, I have installed the lamp environment.
Linux environment: Description: CentOS release 5.5 (Final)
Apache environment: apache 2.x
Mysql environment: mysql 5.x
Php environment: 5.2x
The following is a simple zend Optimizer installation process.
Wget-q-O-http://www.atomicorp.com/installers/atomic.sh | sh
In this process, yum has been downloaded and configured. The next step is a sentence.
Of course, you can also directly download and then compile the installation (wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz)
Yum install php-zend-optimizer
Wait until the installation is complete.
View the phpinfo Loaded Configuration File to obtain the location of php. ini.
Select zend Optimizer file based on your php version. For example, select zend Optimizer5.2x for php 5.2x.
Add. (vim/etc/php. ini) to the last part of the configuration file php. ini)
[Zend]
Zend_optimizer.optimization_level = 15
Zend_extension = "/usr/lib/php/zend/ZendOptimizer-5.2.so"
The installation is complete.
Service httpd restart
After the server is restarted, the web page is automatically closed after refresh.
Later I thought that I had already installed php-apc as an accelerator. It is estimated that there is a conflict. The background shields php-apc and then restarts.
The following are solutions to other possible problems:
Many people say that slinux has encountered problems. It is not estimated that it is a hole. Although I have not met.
The method is as follows:
Vim/etc/selinux/config
# SELINUX = enforcin => SELINUX = disabled
Restart selinux (service selinux restart ).