Research on Security Configuration of lnmp Virtual Host0x00 background
As we all know, the security of virtual hosts is not good, especially preventing cross-directory attacks from becoming the focus. Apache + php servers are relatively simple to
Before using the signal, you need to make sure that the php-fpm.conf is configured with a PID, which is commented out by default.
;p id = run/php-fpm.pid
File in
PHP installation directory/var/run/php-fpm.pid
Signal Description:
The first step: Modify the configuration of the nginx.conf to Nginx.conf.default as a reference.#修改nginx运行账号为: Nginx user of Nginx Groupuser Nginx Nginx; Copy the 1 and 22 parts of Nginx.conf.default into the nginx.conf, notice that in 1 add
First, the source package preparationServer side is mainly installed Memcache server sideDownload: http://memcached.googlecode.com/files/memcached-1.4.4.tar.gzIn addition, Memcache used the libevent this library for socket processing, so you also
Installation Environment: CentOS 6.4PHP extension memcache to support the memcached Database cache server, the following is the installation method.1. Download: Http://pecl.php.net/package/memcacheFile name: memcache-3.0.8.tgzUpload files
Centos 6 YUM install lmp and centoslmp
Preparation:
1. configure the firewall and enable port 80 and port 3306.Vi/etc/sysconfig/iptables-A input-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT (allow port 80 to pass through the firewall)-A
System: centos6.5 MongoDB version: CurrentStable release (3.0.6) First download MongoDB on the official website Https://www.mongodb.org/downloads Select the RHEL6 version under Linux, as determined by the system. I am downloading a binary package
1. APC cache OverviewAPC, full name: Alternative PHP Cache, officially translated as "Optional PHP Cache ". It provides us with a framework for caching and optimizing PHP intermediate code. APC Cache consists of system cache and user data
Installing PHP7 and related extensionsRPM-UVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmRPM-IVH http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm (Nginx)RPM-UVH
This article provides a detailed analysis of the Nginx502BadGateway error solution. For more information, see Nginx.
Max_children = 40, each children occupies 20 M-30M of memory on average. the more children, the more concurrency can be accepted at
This article describes how to solve the mail failure of the mail function in php. it involves the configuration skills for the components related to the Linux operating platform and has some reference value, if you need it, refer to the example in
In-depth discussion: how to solve Nginx502BadGateway errors. Max_children40, each children occupies 20 M-30M of memory on average. the more children, the more concurrency can be accepted at the same time. Generally, the value of children is the
502badgateway many of my friends thought it was a problem with nginx or apache at first glance. In fact, this problem is still caused by php modules in addition to the two sessions, let's take a look. 502... 502 bad gateway many of my friends
How to add a php module through phpize
I. Advantages of phpize
When should we use phpize? When installing php:
'./configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local/mysql' '--with-zlib-dir' '--with-freetype-dir=/usr'
This article mainly introduces the solution for disabling the PHP prompt Warning: phpinfo () hasbeendisabled function. it involves the modification techniques for disabling functions in the configuration file and is very useful, for more information
The restart and termination commands of php-fpm in php5.4 are as follows:
View the php running Directory command: which php/Usr/bin/php
View the number of php-fpm processes:Ps aux | grep-c php-fpm
View running memory/Usr/bin/php-I | grep
Php extension development tutorial for PHP learning notes. PHP extension development is not something that all developers can operate on. I will demonstrate the implementation process of PHP extension development. if you need it, please refer to it.
In normal times, LNMP is installed on the same machine. I think this is not a challenge for everyone. Next we will remove them to different machines, to allow servers to directly share the original pressure, you can also add nodes to achieve load
Install PHP accelerator eAccelerator
Program description
EAccelerator is a free and open source php accelerator. It optimizes and dynamically caches content, improves the cache performance of php scripts, and makes PHP scripts have almost zero
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.