run, you cannot return data, such as file_get_contents (' http://localhost/ Phpinfo.php '). However, when you try to request static files such as HTML, there is no problem at all. What is the reason?!
First, we know that when File_get_contents/curl/fopen opens a TCP/IP-based HTTP request, the request data is sent to Nginx, and Nginx delegates to php-cgi (fastcgi) to process the PHP file. General situation fastcgi after processing a PHP request will immediately release the end signal, waiting fo
This was easy to configure. After a long time, I checked a lot of materials and suddenly thought that DEBp must occupy port 9000, this port cannot be modified. php-cgi is adjusted to 9001, and port 9000 is used for xdebug. The problem is solved by adding the php xdebug in php5.4.4. content zend _ in ini _
This was easy to configure. After a long time, I checked a lot of materials and suddenly thought that
example, the nginx File Parsing Vulnerability published by 80sec last year is actually a problem because fcgi and webserver have different understandings of script path-level parameters. In addition, fcgi and webserver communicate through the network, so more and more clusters are directly bound to the public network, and everyone can access fcgi. This means that anyone can pretend to be a webserver and let fcgi execute the script content we want to execute.
OK. The above is the explanation of
localhost: 88, if the following interface appears, the installation is successful:
2. install php5-fpm
Also use apt-get:
sudo apt-get install php5-fpm
3. modify the configuration file to support PHP
Open the configuration file:
# Open the configuration file sudo vim/etc/nginx/sites-available/defaultFirst, add index. php after index:
Server {listen 88 default_server; listen [:]: 88 default_server defaults 6only = on; root/usr/share/nginx/html; # modify here and add index after in
Ubuntu upgrade php7.0 to configure fpmsocket
-- (I know so much) -- nginx uses fpm (to manage fastcgi) to process requests and responses.
Nginx and php-fpm can be implemented by listening to Port 9000 (default) or socket.
The 9000 format is 127.0.0.1: 9000, which is based on the network. Use the ngxin conf file. php ends with Port
A0a40000026f2c = 9f0f // access control level
A0d6000001 [acc_c, 2, H] = 9000
A0a40000026f28 = 9f0f
A0dc0000005 [Sid, 16, H] ffffff = 9000 //00
Updates the record file, Sid system identifier, P1: Record Number, P2: Mode
P2 encoding rules
B8
B7
B6
B5
B4
B3
B2
B1
Meaning
0
0
0
0
0
-
-
-
Currently selected EF
X
X
X
X
X
-
address is localhost: 88, if the following interface appears, the installation is successful:
2. Install php5-fpm
Also use apt-get:
sudo apt-get install php5-fpm
3. modify the configuration file to support PHP
Open the configuration file:
# Open the configuration file sudo vim/etc/nginx/sites-available/defaultFirst, add index. php after index:
Server {listen 88 default_server; listen [:]: 88 default_server defaults 6only = on; root/usr/share/nginx/html; # modify here and add index after in
10.0.1.42
The IDE listens on port 9000, so Xdebug.remote_port is set to 9000
The HTTP request starts on the same machine as the IDE.
Xdebug Connecting to 10.0.1.42:9000
Debugging begins, HTTP provides a response.
Unknown ip/multiple DevelopersIf the xdebug.remote_connect_back is used, it is connected in a somewhat different way:
Ser
paths, and you can call both methods to establish a path list, and the Setinputpaths () method sets the complete list of paths at once, replacing the previous call in the Job All paths that are set on the. Their specific use method, see the following exampleSet a source path Fileinputformat.addinputpath (Job, New Path ("Hdfs://ljc:9000/buaa/inputpath1"));//Set multiple source paths, Multiple source paths are separated by commas fileinputformat.addinp
void setinputpaths (Job job,string commaseparatedpaths); The Addinputpath (), Addinputpaths () method can add one or more paths to the list of paths, and you can call both methods to establish a path list, and the Setinputpaths () method sets the complete list of paths at once, replacing the previous call in the Job All paths that are set on the. Their specific use method, see the following example1//Set a source path2 Fileinputformat.addinputpath (Job,New Path ("Hdfs://ljc:
voidSetinputpaths (Job job,string commaseparatedpaths);The Addinputpath (), Addinputpaths () method can add one or more paths to the list of paths, and you can call both methods to establish a path list, and the Setinputpaths () method sets the complete list of paths at once, replacing the previous call in the Job All paths that are set on the. Their specific use method, see the following example1 //set a source path2Fileinputformat.addinputpath (Job,NewPath ("Hdfs://ljc:
to run in Eclipse, try to run normally.Here we try to execute namenode with the command line, then run Datanode with Eclipse, and then open a command line, with the FS command, whether the previous content can be found.1. Open terminal, CD into hadoop-0.20.2 directory, execute bin/hadoop namenode commandThe following error occurred:14/12/15 17:31:47 INFO datanode. Datanode:startup_msg:/************************************************************startup_msg:starting DataNodestartup_msg:host = ub
]$ python-m simplehttpserver 8080Serving HTTP on 0.0.0.0 port 8080 ...Without any reflectionAt this point Telnet stops, enter a character "a", and then enter[[Email protected] ~]$ telnet localhost 8080Trying 127.0.0.1 ...Connected to localhost.Escape character is ' ^] '.AConnection closed by foreign host.Look at the server again[Email protected] monitor]$ python-m simplehttpserver 8080Serving HTTP on 0.0.0.0 port 8080 ...127.0.0.1--[22/aug/2014 07:15:16] code, message Bad Request syntax (' a ')1
the command. How to map the IC card loopback data (if present) and the status code to the R-APDU depends on the length of the loopback data.The process bytes returned by the IC card SW1 sw2= ' 61xx ' and SW1 sw2= ' 6Cxx ' are used to control the exchange of data between the IC card and the TTL and it will not be sent back to TAL. Procedure byte SW1 sw2= ' 61xx ' or SW1 sw2= ' 6Cxx ' denotes lifeThe processing in the IC card is not completed.If the IC card return to the TTL status code is SW1 sw
Also open the configuration file:
#打开配置文件sudo Vim/etc/nginx/sites-available/defaultFirst, add the index.php after index:
server {Listen Default_server;listen [::]:88 default_server ipv6only=on;root/usr/share/nginx/html; #修改这里, add Index.phpindex index.php index.html index.htm;# make site accessible from Http://localhost/server_name l after index Ocalhost; ....Then, you can remove the following comments, see clearly where it is:
# Pass the PHP scripts to FastCGI server liste
Nginx
After unpacking, open the nginx.conf file in the Conf directory to find
Location/{root HTML; Index index.html index.htm; } #error_page404/404. html; # REDIRECT Server error pages to theStaticPage/50x.html # Error_page - 502 503 504/50x.html; Location= /50x.html {root html; } # Proxy The PHP scripts to Apache listening on127.0.0.1: the# #location~\.php$ {# Proxy_pass http://127.0.0.1;#} # Pass the PHP scripts to FastCGI server listening on127.0.0.1:
communication channel:
Server IP is 10.0.1.2, HTTP port 80
The IDE is located on IP 10.0.1.42, so xdebug.remote_host is set to 10.0.1.42
The IDE listens on port 9000, so Xdebug.remote_port is set to 9000
The HTTP request starts on the same machine as the IDE.
Xdebug Connecting to 10.0.1.42:9000
Debugging begins, HTTP provides a response.
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.