In the previous Article blog post introduced the installation and configuration of lamp. Here is a special introduction to PHP in a fastcgi way with the httpd integration of the case, how to compile and configure. Also assume that httpd, MySQL, as
Here to declare, for nginx PHP installation and for Apache PHP installation is different, becauseFor Nginx in the PHP is a fastcgi way to combine Nginx. Can be understood as Nginx proxy php fastcgi,and Apache is calling PHP as its own module.
12.21 PHP-FPM's PoolUnlike lamp, in the LNMP architecture, a PHP-FPM-seat standalone service exists. Since it is a standalone service, it must have its own configuration file.The PHP-FPM configuration file is/usr/local/php-fpm/etc/php-fpm.conf,
Install Nginx, PHP 5.5.15 and php-fpm on Fedora 20/19/18/17, CentOS 7/6.5/5.10, Red Hat (RHEL) 7/6.5/5.101. Change to root user.Su 2. Install needed repositoriesCentOS 7/6.5/5.10 and Red Hat (RHEL) 7/6.5/5.10 Remi
Nginx and Apache are not the same, in Apache can directly specify the error log php, so that in the PHP implementation of the error message directly into the PHP error log, you can easily query.
In Nginx, things have become like this: Nginx only
Prepare the article:CentOS 7.0 System installation Configuration Diagram tutorialHttp://www.jb51.net/os/188487.html
First, configure the firewall, open 80 ports, 3306 ports
CentOS 7.0 uses firewall as a firewall by default, and this is iptables
First, configure the firewall, open 80 ports, 3306 ports
CentOS 7.0 uses firewall as a firewall by default, and this is iptables firewall instead.
1. Close firewall:
#停止firewall服务Systemctl Stop Firewalld.service #禁止firewall开机启动Systemctl Disable
Source: http://www.cnblogs.com/wangtao_20/archive/2013/09/13/3320497.html
Download the source package URLHttp://pecl.php.net/package/xhprof
It says, the PHP version that each version applies to.
Planning (figuring out ideas beforehand)One, this is
For advanced versions such as PHP5.5, this article requires the addition of--enable-opcache parameters at compile time
After compiling the installation, we begin to configure the Opcache
Copy Code code as follows:
[Opcache]
Zend_extension
php-5.2.14 version
The code is as follows
Copy Code
./configure–prefix=/usr/local/php-5.2.14–with-config-file-path=/usr/local/php-5.2.14/etc–with-gd–with-iconv–
In the work encountered such a demand, need to use Nodejs to upload files, before also just know how to upload files through the browser, with nodejs words, the equivalent of analog browser behavior. Google after a while, understand that the browser
Prepare the article:
First, configure the firewall, open 80 ports, 3306 ports
Vi/etc/sysconfig/iptables #编辑防火墙配置文件
# Firewall configuration written by System-config-firewall
# Manual Customization of this file is not
1, Installation XCache expansion
TAR-XVF xcache-3.2.0.tar.gzCD xcache-3.2.0./configure--with-php-config=/usr/local/php/bin/php-config--enable-xcacheMake && make install
Will generate similar information like the following
[Root@master xcache-3.2.0
First recommend an article PHP 7 release Date Arrived:will developers adopt PHP 7? -PHP Classes Blog.
Inside said whether will go to use PHP7, personally, I do not hesitate to use, but the production environment is not my decision, so can only own
Secure PHP Security Configuration
Date Created: 2001-11-12 update: 2003-08-06
Article Properties: Original
Article Source: http://www.xfocus.net
Article submission: san (san_at_xfocus.org)
Finishing: San
Version: 0.02
Date Created:
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.