Php Security? Problems
Php has many problems during installation, but the installation usually prompts the error at the end.
Then yum install-y xxx can be used. The installation was successful at home yesterday and all the problems were solved. However, this problem occurs during installation in the company today. after a long time, I checked the information online and finally understood it. The problem is as follows:
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using -- with-apxs2 =/path/to/apxs
3. Apache was not built using -- enable-so (the apxs usage page is displayed)
Configure: error: Sorry, I cannot run apxs. either you need to install Perl or you need to pass the absolute path of apxs by using -- with-apxs =/absolute/path/to/apxs
First, pass the error prompt,We know that "I cannot rum apxs". I always thought that there was a problem with the installation of apxs, but I have not found a reasonable explanation and solution for a long time.
So I directly run the "/usr/local/apache/bin/apxs" script,The following error message is displayed:
Bash:./apxs:/replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory
Run "vi/usr/local/apache/bin/apxs" to get the following content:
#! /Replace/with/path/to/perl/interpreter-w
Finally, we found that the correct perl execution program location is not specified here!
Change this line "#! /Usr/bin/perl-w ". run php again !. /Configure.