When talking about CGI, we are discussing what earliest Web servers simply respond to HTTP requests from browsers and return HTML files stored on servers to browsers, static HTML. Things are constantly evolving and websites are becoming more and
Design scheme for Deploying PHP applications using Docker 1. Docker
The official definition of Docker is:
Docker allows you to package an application with all of its dependencies into a standardized unit for software development.
PHP: CGI, FASTCGI, php-fpm, mod_php, mod_cgi, mod_fcgid can be confused when some common concepts are not noticed.
1. CGI is a Common Gateway Interface. the HTTP server uses this interface program to communicate with other applications (such
Php. in ini, where is the default extension address? I used ubuntu12.04 and installed nginx + php-fpm + mysql through apt-get. The following is/etc/php5/fpm/php. extension_dir in ini; & php. in ini, where is the default extension address set?
I used
when we talk about CGI, what are we talking about?The oldest Web server simply responds to the HTTP request from the browser and returns the HTML file stored on the server to the browser, which is static HTML. Things are constantly evolving and
Ask a question about php-fpm when integrating with nginx .. Phpinfo & nbsp; Display & nbsp; pdo & nbsp; is disable under apache, and PDO is enabled. Under nginx php-fpm also enable & nbsp; PDO Ah ------ solution -------------------- PHP-FPM is
Create PHP users and user groups
Start by creating a user named PHP with no login rights and a user group named PHP
###### #新建php用户和php组 [root@localhost ~]# groupadd-r php && useradd-r-G php-s/bin/false-d/usr/local/php7-m ph P
Compile the
How does the HTTP server support PHP ?. Currently, there are three types of server HTTPServer support for PHP: the built-in modules of HTTPServer, for example, mod_php5 of Apache, similar to the built-in mod_perl of Apache, the following three types
This is a creation in
Article, where the information may have evolved or changed.
Statement: The test framework here is a very common framework, do not go with some wonderful but the so-called performance of the framework of a very high contrast
As
My VPS, 2 GB memory, 8-core CPU test, but I did not use the above yum installation, but all installed with source code compilation. the test results are as follows:
PHP 5.3.1
MySQL 5.0.89
Nginx 0.8.33 or 0.7.65 (optional)
This is much better than
Alibaba technical article: Talking about Node. js and PHP process management, PHP occupies half of the server programming language, just as Wang Feng is in the music circle. As Node. js gradually stepped onto the stage of server-side programming,
Local use of the APACHE+PHP+MYSQL environment, the server with the Nginx+php-fpm+mysql, the code deployed to the server, and then the home page is normal, all other links in the station is invalid, but click on the link, with Firebug view, is found
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
A URL to the Nginx server, the language is PHP, the middle of the process is how.
Reply content:
A URL to the Nginx server, the language is PHP, the middle of the process is how.
The communication between Nginx and PHP-FPM can use TCP network
Some idiotic questions about php-fpm I heard that the combination of nginx + php-fpm can build a high-performance web server. what is the principle? What is php-fpm? what is the relationship with fastcgi? what is the relationship with the php parser?
Recently debug public number function, do not want to submit to the server every time to read the log
So on the server with the Nginx reverse proxy to the server 80 port received the request forwarded to the 127.0.0.1:9000
Then using SSH to tunnel
Lab Requirements:1, CentOS 7, NPM rpm package, php-fpm;A) a virtual host to provide WordPress, another virtual host to provide phpmysamin;b) Providing HTTPS services to Phpmyadmim;
Lab Environment:Linux Server OS version: CentOS Linux release 7.2
Currently, HTTP servers support PHP in three ways:
Implemented through the built-in modules of HTTP Server, such as Apache mod_php5. Similar to Apache's built-in mod_perl, perl can be supported;
Through CGI, this is like the previous perl CGI.
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.