Apmserv prompts "Apache startup failed, please check related configuration" SOLUTION

Source: Internet
Author: User
Tags apm

One solution:

Hook up the SSL in the lower-left corner. If you do not use the certificate, remove it. Some friends can just remove it. It is also possible that SSL can be installed on the certificate hook.

Solution 2:

After reading the above instructions, the method for removing SSL cannot be solved. Later, I checked Kabbah and didn't see any impact on the settings. I used a feature provided by APM to solve software conflicts, and the problem remained after execution. Check whether the parent folder of the folder where APM is located is in Chinese. If it affects the parent folder, you can delete and recreate the folder. Check Operating System "Settings
-The telnet option in the management tool-service is disabled. This reminds me that after installing XP, the remote collaboration is disabled due to security concerns, it is estimated that the Telnet function is disabled. Therefore, set it to manual.
After telnet is enabled, restart apmserv5.2.0.

Solution 3:

It is recommended that you do not load or uninstall Apache frequently. When debugging and adding virtual hosts and directories, you suddenly find that there is a problem with restarting apmserv. Apache cannot be loaded, because yesterday and solved this problem, I thought. After reading this in the forum, we suggest you do not restart apmaerv frequently, so uninstall and shut down. After a while, start apmserv and find that it is normal. In addition, the Telnet set yesterday has not been started manually yet.

Conclusion:
1. Yesterday's post was inaccurate. Although yesterday's adjustment of Telnet had something to do with normal startup, today is okay, and the reason is unclear. (Remote collaboration may be enabled today)
2. Frequent startup and shutdown of apmserv is indeed not good, which may cause abnormal loading.

Solution 4:

Is it installed in a directory with Chinese characters? This program cannot use a Chinese directory. If yes, delete and reinstall it.

Solution 5:

1. You can try to set the installation directory of PHP to the environment variable of the system: right-click "my computer"-"properties"-"advanced"-"environment variables"-"system variables", modify the path, and add "D:/apmserv5.2.6/PHP; D: /apmserv5.2.6/PHP/EXT "path.
Be sure to separate them with semicolons (;). The above "D:/apmserv5.2.6/PHP; D:/apmserv5.2.6/PHP/EXT" is my installation path. Replace it with your path.
2. Copy the DLL to the System32 folder of the operating system. Copy the. DLL files under PHP and PHP/EXT to the C:/Windows/system32 folder.

Solution 6:

The above five methods still cannot be solved, but the extension_dir configuration in PHP. INI is correct or not, it may be that PHP has been installed on the local machine before, there are some residual files, Windows
The PATH variable or the DLL file copied to C:/Windows/system32 is preferentially loaded by Apache, instead of the DLL in the Apache directory to be loaded,
Note: The order in which Windows loads DLL files is based on the directory specified in the path of the system environment variable, which is usually % SystemRoot %/system32; % SystemRoot %, when you install Apache + PHP
"To load dynamic library" is incorrect. If the configuration file is correct, be sure to check whether there are files of the same name in different DLL versions required by the current PHP version under these directories.

Solution 7:
I tried the above six methods and tried again. I tried and modified it again, but it still didn't work after N times. Click "Apache settings (a)-view running log (E )", the following text is found:
PHP warning: [eaccelerator] This build of "eaccelerator" was compiled for PHP version 5.2.6. Rebuild it for your PHP version (5.2.9) or download precompiled binaries./N in unknown on line 0
PHP fatal error: unable to start eaccelerator module in unknown on line 0

The above log clearly determines the reason for the PHP version. Because PHP version (5.2.6)
It will not be changed, so the problem is that the eaccelerator version needs to be 5.2.9 during compilation.

Open the D:/apmserv5.2.6/Zend/eaccelerator folder and you will immediately see the eaccelerator. dll file. Then search for the keyword containing eaccelerator under the folder D:/apmserv5.2.6/PHP.
It can be found that only Php. ini contains eaccelerator. dll references. Now the only key is to download the eaccelerator version 5.2.9,
After finding the file for a long time, I finally found it: Listen 0953 for PHP 5.2.9. Don't get the wrong file.
Directly put it in the D:/apmserv5.2.6/Zend/eaccelerator folder, and then go to the php. ini file
[Eaccelerator]
Zend_extension_ts = "D:/apmserv5.2.6/Zend/eaccelerator. dll"
Change
[Eaccelerator]
Zend_extension_ts = "D:/apmserv5.2.6/Zend/eaccelerator/eaccelerator0953_5.2.9.dll"
You can.
Note: The related paths mentioned above are based on the path set when you decompress ampserv. The system is Windows 2003 Server.


-----------
I'm a cute separator -----------

By the way, the default password of the root account after MySQL is installed in apmserv5.2.6 is blank, Which is insecure and needs to be changed.

Start-run-
Enter cmd to run
D:/apmserv5.2.6/mysql5.1/bin> mysql-u root MySQL

Mysql> Update user SET Password = PASSWORD ('new password') where user = 'root ';
Mysql> flush privileges;

 

 

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.