The request operation has failed solution appears when you configure the Apache server

Source: Internet
Author: User

As required by the project, you need to configure the Apache and PHP interpreters. When installing Apache Web Service, the error message "the request operation has failed" appears. on my computer, choose "manage"> "fail ".
-W-n "apache2"-K start, but the "release" directory is displayed, as shown in my installation directory: cd f: \ apache install final file \ bin, and then input httpd.exe-w-n "apache2"-K start in the command line. C:/PHP/php5apache2_2.dll cannot be found. Pay attention to this path, this path must be the installation path in your PHP interpreter, and there must be a php5apache2_2.dll file in it, if it is php5apache2. change the DLL name to php5apache2_2.dll. Note the following two points: the path name must not contain Chinese characters, therefore, we usually try not to use a path name containing Chinese characters when installing software. In addition, after modification, we need to modify the configuration file in the installation directory of the Apache server, for example, my F: \ apache
Install httpd in final file \ conf. conf. use Ctrl + F to find the Error Path displayed on the command line, for example, C:/PHP/php5apache2_2.dll, and modify the path name for storing php5apache2_2.dll, remember that if your port number is not modified and it will not be occupied by other software, you should keep the original configured port number for additional processing. Then start the Apache server and start it. Then the feather becomes a triangle. After Entering http: // 127.0.0.1 in the browser, if it still cannot be displayed, it may be a port problem, keep the original port or try to modify it. Then write a PHP file and put it in htdocs. Enter http: // 127.0.0.1/02/test in the browser. PHP, can be displayed, complete! Here we will share with you how to avoid detours for others.

Appendix 1: Test. php is written in a text box. The suffix is changed to PhP when the file is saved. The content is as follows:

<? PHP
Phpinfo ();
?>

Appendix 2: original port number configuration in the configuration file/CONF/httpd. conf:

# Listen 12.34.56.78: 80
Listen 80

Gains: ① when the software cannot be run or cannot be executed, it is best to execute it using the command line, because the execution can still view the error information, so that it can be found step by step.

② When you want to find a sentence in the file, if the file is too large, you can use crtl + F to query

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.