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

Source: Internet
Author: User
Tags apm
Solution: hook the SSL in the lower-left corner. If you do not use the certificate, remove it. Some friends can remove it. It is also possible that SSL can be installed on the certificate hook. Solution 2: after reading the above-mentioned method to remove SSL, it cannot be solved. Later, I went to Cha Kabbah and didn't see any impact on the settings. I used an APM package to solve the software conflict.

Solution: hook the SSL in the lower-left corner. If you do not use the certificate, remove it. Some friends can remove it. It is also possible that SSL can be installed on the certificate hook. Solution 2: after reading the above-mentioned method to remove SSL, it cannot be solved. Later, I went to Cha Kabbah and didn't see any impact on the settings. I used an APM package to solve the software conflict.

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 the options in "Settings-management tools-services" in the operating system. One Telnet option is disabled. This reminds me that after installing XP, I am worried about security issues, therefore, the remote collaboration is disabled. 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 cannot be solved, but php. if the extension_dir configuration in ini is correct or not, it may be that PHP has been installed on the local machine before, and there are some residual files, windows PATH variables or copying to C: the dll files under \ WINDOWS \ system32 are preferentially loaded by Apache, instead of the dll files 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 generally % SystemRoot % \ system32; % SystemRoot %, if the "Unable to load dynamic library" error occurs while installing Apache + PHP, but 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 in 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) is not changed, the problem is that the eAccelerator version must 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 am 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;

About how to use apmserv to change the root account password on the phpmyadmin Management Interface

After setting up apmserv5.2.6, you can use apmser.5.2.6 to manage the mysql database. The phpmyadmin logon interface is automatically displayed. the root account password is blank by default, when you enter phpmyadmin, the system prompts you to change the root password or the password will be vulnerable to intrusion.

I am searching for a search engine to find a solution.

Two methods are found:

1. Use phpmyadmin to change the root password

Log on to phpmyadmin with the root account, click mysql on the left to enter the mysql database, and click mysql on the top to enter the SQL input interface. Enter the following command:

Update user set password = password ('000000') where User = 'root'

Click "execute" in the lower-right corner. The modification is successful.

Go to the libraries directory under phpmyadmin and modify the config. default. php file. Find $ cfg ['servers'] [$ I] ['Password'] = '', change to $ cfg ['servers'] [$ I] ['Password'] = '000000'; 123456 is the password. Try logging in now.

I have done everything in method 1, but when I log on to the phpmyadmin interface again, I can log on without entering the password I just set, even if I delete the cache, restarting the ampserv server and mysql is ineffective. Why?

2. Later I found out how to change the Mysql password of APMserv.

Go to the APMserv installation directory (assuming the current path is "D: \ Program Files \ APMServ5.2.6 ″).

Enter cd D: \ Program Files \ APMServ5.2.6

D: \ Program Files \ APMServ5.2.6> cd MySQL5.1 \ bin

D: \ Program Files \ APMServ5.2.6 \ MySQL5.1 \ bin> mysqladmin-u root-p password 123456

As mentioned above .. after running, the system prompts you to Enter the original Password (Enter Password): The default value is null and press Enter.

Restart APMserv.

You need to enter a password to log on to phpmyadmin using the method 2. .

I am wondering why the first method is not correct. It clearly says phpmyadmin is used to change the root password, and the SQL query execution is successful. What is the change of the first method? What is the real difference between the first and second?

If you are familiar with this area, give some advice. Thank you.

APMServ prompts "Apache startup failed, please check related configuration" solution article first appeared in WEB Front-end development-SEO-SEM | Zhu baoxiang's blog.

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.