To agree on several directories
/USR/LOCAL/PHP/SBIN/PHP-FPM
/usr/local/php/etc/php-fpm.conf
/usr/local/php/etc/php.ini
First, the PHP-FPM start parameter
#测试php-fpm configuration
/usr/local/php/sbin/php-fpm-t
/usr/local/php/sbin/php-fpm-c/usr/local/php/etc/php.ini-y/ Usr
To agree on several directories/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.ini one, php-fpm start parameters # Test PHP-FPM configuration/usr/local/php/sbin/php-fpm-t/usr/local/php/sbin/php-fpm-c/usr/local/php/etc/php.ini-y/usr/local/ Php
connected, if you want to set some login password security access restrictions, you need to perform the following MySQL security installation instructions
1/usr/local/opt/mysql/bin/mysql_secure_installation
The main is to set the Modify root password (settings can not be set, skip), delete anonymous access, delete root network access, delete the test database. After the command is executed, login MySQL requires a password verification
1 Mysql-u root-p
3.3, boot MySQLMkdir-p ~/library/launch
Label:FromRequirements for installing Oracle 11gR2 RDBMS in RHEL (and OEL) 5 on AMD64/EM64T (document ID 880989.1)Note:starting with Oracle Database 11g Release 2 (11.2.0.2), all the 32-bit packages, except-gcc-32bit-4.3, listed in The following sections is no longer required for installing a database on Linux x86-64. Only the 64-bit packages is required. However, for any Oracle Database 11g release before 11.2.0.2, both the 32-bit and 64-bit packages listed in the following Sections is required
php5.3 comes with PHP-FPM/usr/local/php/etc/php-fpm.confPID = Run/php-fpm.pidPID settings, default in the installation directory of/var/run/php-fpm.pid, it is recommended to openError_log = Log/php-fpm.logError log, default in the installation directory of/var/log/php-fpm.logLog_level = NoticeThe error level. The available levels are: alert (which must be processed immediately), error (Error condition), warning (warning condition), notice (general imp
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 access to the page to make access log. There will be no error log information for PHP. Nginx to the PHP request to the PHP-FPM fastcgi process to deal with, the default php-
Project with PHP development, in the production process, it should be a period of time to monitor the running state of PHP script, which PHP process speed is too slow, what error log. Q: How do I check for slow-detection PHP scripts? A: Check the php-fpm slow log.
1. First find the configuration file to store the address
Find/-name php-fpm.conf
Vi/usr/servers/php/etc/php-fpm.conf
Open to see if your slow log is turned on, or where the slow log
times better than Apache (version 6th)
What is PHP-CGI
PHP-CGI is the FastCGI manager that comes with PHP. Start the PHP-CGI with the following command:
php-cgi -b 127.0.0.1:9000
PHP-CGI Deficiency
After changing the php. ini configuration of PHP-CGI, restart PHP-CGI to make the new PHP-ini take effect.
Directly kill the PHP-CGI process, and PHP cannot run. (PHP-FPM and spawn-fcgi don't have this problem, and the daemon will smoothly generate new
smooth restart
2, directly kill the php-cgi process, PHP can not run. (PHP-FPM and spawn-fcgi do not have this problem, the daemon will smoothly regenerate new child processes.) )
What is PHP-FPM
PHP-FPM is a PHP fastcgi manager that is only used in PHP and can be downloaded in http://php-fpm.org/download.
PHP-FPM
In the LNMP environment, the php-fpm startup script installs the LNMP environment,
PHP5.4.37
VersionAfter the installation is successful, when the php-fpm service is added to the system startup item, the following error occurs: service php-fpm does not support chkconfig; php-fpm service does not support chkconfig;
Ed
consumes more server memory than CGI multithreading, the PHP-CGI interpreter consumes 7 to 25 MB memory per process, multiply this number by 50 or 100, which is a large amount of memory.
The Nginx 0.8.46 + PHP 5.2.14 (FastCGI) server consumes 30 thousand MB of memory (15 MB * 10 = 150 MB) for the 10 Nginx processes enabled with concurrent connections ), the 64 opened php-cgi processes consume 1280 MB of memory (20 MB * 64 = MB). In addition, the system consumes less than 2 GB of memory. If the
Nginx and PHP-FPM restart script on the server Nginx and PHP are source code compilation and installation, does not support class #20284; the previous nginx (start | restart | stop | reload. Self-help clothes and food. The following scripts are applicable to RHEL, Fedora, and CentOS. I. Nginx startup script etcinit. dnginx #! Binbash # St Nginx and PHP-FPM startup/restart script
Nginx and PHP on the serve
This article mainly introduces the method of customizing single Nginx image for multiple PHP-FPM container, has certain reference value, now share to everybody, need friend can refer to
I've been trying to deploy a PHP micro-service that uses Docker containers recently. One of the problems is that our PHP application is set up to work with PHP-FPM and nginx (not the simple apache/php[1] setting here), so e
The previous blog post describes how to build a lamp in the way of compiling, here I am no longer one by one description, I here in detail about PHP in the way of FPM work:If you want to let the compiled PHP support MCrypt extension, here in addition to libmcrypt this package also need to installMhash-0.9.9.9-3.el6.x86_64Mhash-devel-0.9.9.9-3.el6.x86_64[[emailprotected]tmp]#tarxf Php-5.4.40.tar.bz2[[emailprotected]tmp]#cdphp-5.4.40[[emailprotected] ph
1.2 Software Installation PathZabbix is installed under the/usr/local/zabbix path, and its related configuration files and binaries are placed in it.Nginx installed under/usr/local/nginx, its related configuration files and binary execution program are placed therein.PHP is installed under/usr/local/php, and its related configuration files and binary execution programs are placed therein.Please confirm that the service ports of Nginx and PHP-FPM are i
Article Title: *. src. rpm package and * .tar.gz, *. rpm package. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Run rpm-ivh *. src. the rpm command to install it does not inst
, directly kill the php-cgi process, PHP can not run. (PHP-FPM and spawn-fcgi do not have this problem, the daemon will smooth the new child process from the newly generated.) ) What is PHP-FPMPHP-FPM is a PHP fastcgi manager that is only for PHP and can be downloaded in http://php-fpm.org/download.PHP-FPM is actually a patch of PHP source code designed to integ
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.