PHP is installed with a lot of problems, but generally installed to the end there will be a hint where the error.
Then yum install-y xxx on it. Yesterday at home installation is still smooth, the problems have been solved. But today in the company installed in this problem, have been engaged for a long time, and then surf the Internet to find information, finally understand. The problem is as follows:
Sorry, I cannot run APXS. Possible reasons follow:
1. Perl is not installed
2. APXS is not found. Try to pass the path using--WITH-APXS2=/PATH/TO/APXS
-
3. Apache was isn't built using--enable-so (the APXS usage page is displayed)
-
Configure:error: sorry,i cannot run APXS. Either you need to install Perl or need to pass the absolute path of APXS by using--with-apxs=/absolute/path/to/apxs< /span>
first of all, we learned "I cannot rum apxs" by error. I always thought it was a problem with the APXS installation, but it hasn't been properly explained and solved for a long time.
so I run the "/usr/local/apache/bin/apxs" script directly , get the following error prompt:
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:
#!/replace/with/path/to/perl/interpreter-w
finally found that there is no location to indicate the correct Perl execution program!
change this line to "#!/usr/bin/perl-w". Run PHP again!. /configure can do it.
This article is from the "Game" blog, be sure to keep this source http://9883552.blog.51cto.com/9873552/1641031
Problems with PHP installation