UBUNTU 10.10nginx + php-fpm + mysql simple setup first, we need to install MYSQL. it is very easy to install in UBUNTU. you just need to run the following command to install the MYSQL server:
Sudo apt-get install mysql-server
After installing and
Linux system security and optimization configuration 1. openssh security configuration this section focuses on SSH-related security configuration 1. 1. prohibit the root user from logging on only to normal users, and then switch to the root user
See an article that Apache Max endure concurrency number is three thousand or four thousand, Nginx is his 10 times times, but Nginx is based on the implementation of cache, Apache is the real three thousand or four thousand
Reply content:
See
Now the case is small-scale 1mysql server 1web server data operations quickly dozens of MS-level processing logic
But each visit to the local map a port to access 3306 so in the case of large concurrency, the lower port will not be mapped out
For
Project requirements to achieve a free ticket to the function, involving high concurrency problems, research for a few days, record down, welcome workers throw Bricks ~ ~
The whole project is Php+nginx+mysql architecture, because PHP is blocked
These two days need to build nginx and PHP environment on the Ubuntu14.04, the process of configuration in the fastcgi of the problem spent a lot of time, the online data mostly in disrepair, so decided to record the whole process, share to everyone.
Today, the VPS on the php5.3 upgrade to the php5.4, I use the NGINX+PHP-FPM architecture, nginx through the PHP-FPM socks file to connect.
Result Error:
Connect () to Unix:/tmp/php-cgi.sock failed (13:permission denied) while connecting to upstream
Today, the VPS on the php5.3 upgrade to the php5.4, I use the NGINX+PHP-FPM architecture, nginx through the PHP-FPM socks file to connect.Result Error:Connect () to Unix:/tmp/php-cgi.sock failed (13:permission denied) while connecting to upstream I
PHP 5.3.1
MySQL 5.0.89
Nginx 0.8.33 or 0.7.65 (optional)
Now we can quickly automate the installation of CentOS + Nginx + php-fpm + MySQL
This is much better than the online one-button installation package, highly recommended for all novices and
PHP-FPM for performance optimization and PHP-FPM performance optimization
Brief introduction:
PHP-FPM is a PHP FastCGI manager, General Nginx above the PHP program will throw PHP program to PHP-FPM to parse. All right, that's it!
PHP 5.4 began to
Correctly set the php-fpm sub-process user to improve website security and prevent Trojans. Summary: The user used by the php-fpm sub-process cannot be the website file owner. Any violation of this principle does not comply with the minimum
Nginx and php cannot upload large image (413) upload error: 413RequestEntityTooLarge modify nginx. conf in http {& nbsp; client_max_body_size10M; # add and modify vertices} modify php. in ini, upload_max_filesize10Mpos nginx and php cannot upload
1, today in the development of the project using a PHP function (mb_strcut), run the code when prompted to error "Call to Undefind function Mb_strcut", first check the function name is not written wrong, is not php.ini in the extension, and then
This period of time on the concept and mechanism of NGINX+PHP-FPM is not very clear, take advantage of colleagues to share and read a few blog posts and information, re-think of the idea of processing.First, PHP-FPM (FastCGI process Manager) is a
Referencehttp://xieminis.me/?p=216But he's not clear about the authority.There is no big difference between socket and TCP mode performancehttp://blog.csdn.net/liv2005/article/details/7741732/etc/php-fpm.d/www.conf;listen = 127.0.0.1:9000
Please refer to the article for detailshttps://www.ttlsa.com/zabbix/zabbix-monitor-php-fpm-status/https://www.ttlsa.com/php/use-php-fpm-status-page-detail/1 Enable the PHP-FPM status featureAdd this feature in the PHP-FPM configuration
PHP handlers? Mod_php? Fpm? How does the sense of the inner workings of PHP outside of our lines of code? We know we can run PHP on the server to build Web applications swiftly, but what can we optimize our environment and Config Urations to reach
Nginx reverse proxy to a single php-fpm (PHP-FPM can be located on different machines)0. First, create our website root directory "NOTE: The machine where the PHP-FPM is located" (after the code of the site is placed in this directory):Mkdir/opt/www1
DescriptionPHP 5.5 built later OpCache , OpCache the acceleration principle is to store the compiled bytecode in memory, to avoid the duplication of PHP caused by the waste of resources.Reference
How to Enable PHP 5.5 opcache on
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.