I'm using apache2.2+php5.4, I'm writing a wrong extensions=xxx.dll in php.ini, and I don't see any messages about this wrong DLL in php.ini error_log. And Error.log under Apache's logs is also not looking at any of the DLL's information about this error.
Excuse me, what do I want to get information about the wrong DLL?
The reason I'm asking is because I'm loading an extra DLL, by looking at Phpinfo is not loaded successfully, but just don't know where the error message is.
Hope expert answer
: This article mainly introduces php regular expression parsing apache log file. For more information about PHP tutorials, see. Logs can be rolled hourly and analyzed using php regular expressions.
$ LogLine = '2017. 0.0.1--[22/May/2015: 17: 09: 13 + 0800] "GET/sale/images/
The server has recently suffered hacker intrusion. Intruders are skilled, delete IIS log files to erase traces, you can go to the Event Viewer to look at the warning message from W3SVC, often find some clues. Of course, for Web servers with very large access, it is almost impossible to rely on manual analysis-there's too much data! A Third-party log analysis tool can be used to describe only one of the IIS
You can scroll the logs by the hour, using the PHP regular analysis log method to solve
$logLine = ' 127.0.0.1--[22/may/2015:17:09:13 +0800] ' get/sale/images/y-select.png http/1.1 ' 1095 '; $pattern = '/^ (? P
[0-9.] +) - - \[(? P
[^\]]+] \]+ "GET (? P
[^]+) http\/1.[ 1|0|2] "(? P
[0-9.] +) (? P
[0-9.] +)/I ';p reg_match
You can scroll the logs by the hour, using the PHP regular analysis log method to solve
$logLine = ' 127.0.0.1--[22/may/2015:17:09:13 +0800] ' get/sale/images/y-select.png http/1.1 ' 1095 '; $pattern = '/^ (? P
[0-9.] +) - - \[(? P
[^\]]+] \]+ "GET (? P
[^]+) http\/1.[ 1|0|2] "(? P
[0-9.] +) (? P
[0-9.] +)/I ';p reg_match
the Installation interfaceThe main error in the case of the database and the database user name password, generally installed 2 times, the 2nd time must delete the inside of the config.php, and then run SH configure.sh in the next step to generate config.php. And then you can start using it. (I don't know why I can't copy pictures, so I can only talk about the errors and workarounds I've encountered).This article is from the "innovation sharing gallop inside and out" blog, please be sure to kee
, all content of the CGI program output to STDERR (Standard error, standard faulty device) will go directly into the error log. This means that any well-written CGI program, if there is a problem, the error log will tell us more about the problem.
However, there are drawbacks to outputting the CGI program error to the error log, and there will be many things in t
You can also customize the log format, for example:
LogFormat "% h % l % u % t \" % r \ "%> s % B \" % {Referer} I \ "\" % {User-Agent} I \ "" combine
The combine format is defined. \ "% {Referer} I \" \ "% {User-Agent} I \" is the request header sent to the server and the Referer link.
------------------------------------- I am a split line -------------------------------------
How to enable Apache Rewrit
region with the UTC time difference of-5 hours, this parameter should be "-300 ". FilesizeM specifies to scroll by filesizeM file size, rather than by time or time difference. An example of setting in Windows is as follows:# Restrict the error log file to 1 MBErrorLog "| bin/rotatelogs.exe-l logs/error-% Y-% m-% d. log 1 M"# Generate an error log file every day#
profile to open it:# vim/usr/local/apache2.4/conf/httpd.confLoadModule Rewrite_module modules/mod_rewrite.soGet rid of this line of #.#/usr/local/apache2.4/bin/apachectl-tSyntax OK#/usr/local/apache2.4/bin/apachectl Graceful#/usr/local/apache2.4/bin/apachectl-m |grep RewriteRewrite_module (Shared)The module loads well and starts testing:# curl-x 127.0.0.1:80 2111.com.cn-ihttp/1.1 301 Moved Permanently status code 301Date:fri, APR 2018 12:17:18 GMTserver:apache/2.4.33 (Unix)
11.18 Apache user authenticationChange the contents of a virtual hostVim/usr/local/apache2.4/conf/extra/httpd-vhosts.confAdd user name and password? /usr/local/apache2.4/bin/htpasswd-c-m/data/.htpasswd aming-C is the creation of-m specified typeView the generated password document contentsHe's gone up there already. htpasswd directory, then create in memory does not require-CSpecify the domain name hosts on WIC:\Windows\System32\drivers\etcAuthenticat
1. Apache Access LogEnter command cat/usr/local/apache2.4/conf/extra/httpd-vhosts.conf, enter, see,The access log for this virtual machine is inside the/logs/111.com-access_log, enter the command ls/usr/local/apache2.4/logs/, you can see the access log file, see,You can use the command Cat/usr/local/apache2.4/logs/111.com-access_log to view the contents, enter, s
, hostname (domain name) is not www.123.com meet conditionRewriterule ^/(. *) $ http://www.123.com/$1 [r=301,l]//define rewrite rules that are not executed until the above conditions are met/usr/local/apache2/bin/apachectl-m|grep-i rewrite//Without this module, you need to edit the configuration file httpd.conf, delete the front of the Rewrite_module (shared) #Curl-x127.0.0.1:80-i 123.com//Status Code 30111.21 Configuring access LogsAccess log records
and other services under Linux are the same, encounter to view the error log after the error, according to the error message to determine the cause of the errors. How do you see the error message in PHP? When the encounters an error, our visit to the website usually shows a white page, nothing, and a status code of 500. In the first case, to directly display the error message in the browser, configure t
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.