architecture.In this case, PHP and Apache is a dependency, Apache boot need to load the PHP module, read the php.ini file, one of the most obvious feature is: in the CGI mode after modifying php.ini do not need to restart the Web server, and Php_ Changing the php.ini in mod mode will require you to restart Apache.How does PHP combine with Nginx?fast-cgiReferring to nginx how to run PHP, you have to mention fast-cgi, to say that fast-cgi will have to
1, take the whole function (ceil up, floor down rounding)The first way:Select $ / - from dual -- rounding trunc (1.9) = 1The second waySelect ceil (66.6) N1,floor (66.6 from dual;2, exponentiation (Power) and square root (sqrt)Select Power (3,2) N1,sqrt(9 from dual;3, redundancySelect MoD (9,5 from dual;4, returns a fixed number of decimal digits (round: Rounding, Trunc: direct truncation)Select round (66.667,2) N1,trunc (66.667,2 from5, the sign
database update is performed, the CLAMD service is notified to reload the virus library When the Freshclam command is executed directly at the command line, the command is executed according to this configuration file. Users and groups of the database are ClamAV, modify/etc/cron.daily/freshclam and/var/log/clamav users and groups 650) this.width=650; "title=" Freshclam4 "style=" border-left-0px; border-right-width:0px; border-bottom-width:0px; border-top-width:0px "border=" 0 "alt=" freshclam4
Release date: 2012-03-19Updated on: 2012-03-21
Affected Systems:Apache Group mod_fcgid 2.3.6Unaffected system:Apache Group mod_fcgid 2.3.7Description:--------------------------------------------------------------------------------Bugtraq id: 52565Cve id: CVE-2012-1181
Mod_fcgid is an Apache module that is Binary compatible with mod_fastcgi.
Apache 'mod _ fcgid' has a Denial-of-Service vulnerability. After successful exploitation, it can cause a den
Use Bandwidth Mod in Apache to limit the total BandwidthEnvironment:CentOS release 5.6 + Apache 2.2.22Mod_bw v0.92Http://ivn.cl/files/source/mod_bw-0.92.tgzMod_bw v0.92 documentationHttp://legacy.ivn.cl/files/txt/mod_bw-0.92.txtDownload and install:# Wget http://ivn.cl/files/source/mod_bw-0.92.tgz# Tar zxvf mod_bw-0.92.tgz#/Data/apps/httpd2.2.22/bin/apxs-c-I-a mod_b1_cConfigure VirtualHostDocumentRoot/data/webapps/www.domain.comServerName www.domain.c
According to the algorithm of the payment card check digit in ISO 2894 the Luhn Mod-10 method stipulates:
1. Multiply each digit on the card number by the weight. The rule is that if the number of card number is even, then the first bit is multiplied by 2, otherwise it is multiplied by 1, then respectively, 1,2,1,2,1,2;2, if each digit multiplied by the weight after more than 9, you need to subtract 9;3. Sum all the weighted numbers processed, and u
Test instructionsTest instructions very clear.Ideas:A very selective approach to optimization.Using two arrays of preprocessing for O (1) operation to find out a^x (0The F1 array constructs a^0~a^ (10^5) at an interval of a.The F2 array constructs a^ (10^5) ~a^ (10^10) at intervals of a^ (10^5).This can be expressed as f2[x/(10^5)]*f1[x% (10^5) for any a^x.Thereby exchanging space for time.Code:#include "cstdlib" #include "Cstdio" #include "CString" #include "Cmath" #include "queue" #include "al
Title Address: HDU 4389The first time you encounter a need to enumerate and then the digits DP.The sum of the numbers is enumerated first, that is, 1~81, then the sum of the enumerated members in the digital DP process is the same as the number of enumerations, only the same counts.DP[I][J][K][H] denotes the number of digits of the current number of members, and for J, the number of members enumerated, and K, the current numbers of K modulo H.The code is as follows:#include #include #include #in
Topic Link: Click to open the linkTest instructions: Calculates a^b%c but where B is large and may reach 10^1000000, so there is a power-down formula a^b%c= a^ (B%phi (c) +phi (c))%c (B>=phi (c))#include Fzu 1759-super a^b MoD C (Fast power + large integer modulo + Euler function)
New Version --Http://www.cnblogs.com/zyl910/archive/2012/08/16/Gunpowder_Magazine_and_Firecracker_Workshop_V2.html
Gunpowder magazine and firecracker Workshop)
{Rule} Steel Technology found [icon_res_coal] coal){New Building} gunpowder magazine: + 15% [icon_production] production when building gunpowder/siege units. each source of [icon_res_coal] coal worked by this city produce + 1 [icon_production] production. (when setting up a firearms/suppression unit, the production capacity is increas
. Restart Apache/opt/lampp reloadapache. You should see the modsec_audit.log and modsec_debug.log files under/opt/lampp/logs.
========================================================== ====================
Install mod_evasive_1.10.1.tar.gz to prevent DDoS attacks1. Upload the file to the root directory and decompress it./Opt/lampp/bin/apxs-I-a-c mod_evasive1_cAfter compilation is successful/Opt/lampp/modules/mod_evasive1_soAnd automatically added to httpd. conf.Loadmodule evasive20_module module
Link to the question: Ultraviolet A 10692-Huge mod
Give the power of a number, and then it modulo the M value.
Solution: based on the nature of the residual series, the last line must be cyclical, so there will be AB = abmod (phi [M]) + phi [M] (phi [M] is an Euler's function of M), which can be solved based on recursion.
#include
#include
#include
const int maxn = 15;int A[maxn], k;int pow_mod (int a, int n, int M) { int
Ultraviolet A 10692-huge mod
Question Link
Question: PleaseA0A1A2...MODM
Idea: it is certainly not possible to calculate it directly. Use the Euler's theorem.AB=A(BMODPHI(M) +PHI(M))(B> =PHI(M). Then, we can use the fast power to calculate the exponential value, and the calculation process is recursive.
Code:
#include
In this question, 2 ^ X is obtained cyclically and then mod n = 1, and the time exceeds.
Use mathematical formula (M * n) % d = (M % d * n % d) % d to simplify the scenario.
The Code is as follows:
# Include
Http://acm.hdu.edu.cn/showproblem.php? PID = 1, 1005A number sequence is defined as follows:F (1) = 1, F (2) = 1, F (n) = (A * F (n-1) + B * F (n-2 )) moD 7.Given a, B, and N, you are to calculate the value of F (n ).1
Solution:F (n) = (A * F (n-1) + B * F (n-2) % 7= (A * F (n-1) % 7 + B * F (n-2) % 7) % 7Therefore, for a given a and B, You can first create a table to find out the cyclic part of the series. The Pigeon nest principle knows that the to
Install some necessary mod for Apache
PS:Apache powerful points out that it is convenient plug-ins and module technologies. Some of the modules installed here are not commonly used but very good, including mod_evasive, which prevents server attacks, mod_security for security protection such as injection prevention, and mod_deflate for web page compression.
Module:Mod_evasiveRole: Prevent DDoS attacksIntroduction: The predecessor of the mod_evasive mo
The Apache mod rewrite
Rewriteengine on Rewritebase/b2b/website/rewriterule ^article-([0-9]+) \.html$ view_details.php?browse=profile Id=$1
The above test passes. If not, the key is the server side, how to change the future to play
About the picture can add a/503 (ID)/title.htm This must not repeat, with 503 or other numbers or ABC also line, regardless of OABC also think not very ideal, learn II, he is the definition of a number of all the functions
Typically, modulo operations (MoD) and remainder (REM) operations are confused, because in most programming languages, the '% ' notation is used to represent modulo or remainder operations. Here we want to remind you to pay attention to the specific meaning of the '% ' operator in the current environment, because in the case of negative numbers, the results are different.
For integer number A,b, the method of modulo operation or remainder operation i
Release date:Updated on:
Affected Systems:ModsecurityDescription:--------------------------------------------------------------------------------Bugtraq id: 66550CVE (CAN) ID: CVE-2013-5704ModSecurity is a Web application server.ModSecurity has a Security Restriction Bypass Vulnerability. After successful exploitation, attackers can bypass filtering rules.*>
Suggestion:--------------------------------------------------------------------------------Vendor patch:Modsecurity-----------The vendor
Release date:Updated on:
Affected Systems:Apache Group mod_pagespeed Description:--------------------------------------------------------------------------------Bugtraq id: 55536Cve id: CVE-2012-4001 CVE-2012-4360
Mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources.
The Apache 'mod _ pagespeed' module has the cross-site scripting and Security Restriction Bypass Vulnerability, after successful exploitat
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.