Cause Analysis of PHPWAMP self-startup exception. Apache and other services will not be restarted automatically after the server is restarted

Source: Internet
Author: User
Cause Analysis of PHPWAMP self-startup exception, Apache and other services will not automatically restart after server restart when "PHPWAMP automatic task" is used, many students encounter the following problems:

"The website service will not be started automatically after the computer (server) is restarted in the phpwamp green integrated environment"

(This method can also be used if this problem is encountered in other environments or during self-built environments)


The content of this article is as follows:

Why can't I restart my website service after it is changed from manual to automatic?

Why does it change to manual after I set the service to automatic?

Why does the service not automatically restart after the server (computer) restarts?

Why does the website service not automatically restart after windows server is restarted.

Why cannot I restart the server (computer) service after the service is set to automatic?

The msconfig settings are invalid, automatic, delayed, and invalid. how can I prevent the website service from automatically restoring to manual?

Preface:

PHPWAMP is a pure green integrated environment integrated with VC, supports customizing PHP versions, running multiple versions at the same time, force modification of any environment database password, one-click removal of non-80 ports of the domain name, forced uninstallation of any environment, forced removal of environmental obstacles, automatic scheduled task system and other practical functions, some students recently found that after restarting the computer, phpwamp's website service will not be restarted. they need to manually start the website service to run the website normally, so what is the cause of this situation? now I will analyze and solve it for you.

Similarly, this issue has nothing to do with PHPWAMP itself. it is caused by computer settings or automatic recovery of anti-virus software.

Students ask the following questions:

Student: I use PHPWAMP or other integrated environments for my teacher. after a computer restarts, the website service will not automatically restart with the system? What's amazing is that some computers can start normally with the system? Is my posture incorrect? After you set the related website service to automatic, it's still a bird's cake! I checked a lot of online materials and did what I wrote above. The results were all futile. I went there and it was just a Pitfall! How can this problem be solved?

In this way, the system will run the service after loading.

Ultimate general solution:

If none of the above methods works, you can create a bat file for the service to be started with the system, and then add the startup item.

For example, the service names of Apache and mysql in the PHPWAMP integration environment are. phpwamp_apache2.4 and. phpwamp_mysql. the corresponding bat code is as follows:

(For other integrated environments or self-installed environments, check the corresponding Service Name and check the check box)

@ Echo off set PHPWAMP_version = Updated Date: 20160226 title phpwamp % PHPWAMP_version % running-% ~ Dp0 net stop. phpwamp_apache2.4 net stop. phpwamp_mysql

Of course, you can also write some other PHPWAMP services.

@ Echo off set PHPWAMP_version = Updated Date: 20160226 title phpwamp % PHPWAMP_version % running-% ~ Dp0 net stop. phpwamp_apache2.2 net stop. phpwamp_apache2.4 net stop. phpwamp_mysql net stop. phpwamp_nginx net stop. phpwamp_php-cgi net stop. phpwamp_svnserve net stop. phpwamp_memcached net start. phpwamp_apache2.2 net start. phpwamp_apache2.4 net start. phpwamp_mysql net start. phpwamp_nginx net start. phpwamp_php-cgi net start. phpwamp_svnserve net start. phpwamp_memcached

Friendly reminder: If the added service has not been installed, there may be corresponding error prompts when it is started, which can be ignored.

Open txt, copy the above code, and save it as a bat suffix file,

Name the bat file as a start-up.bat, start-up is the meaning of the English start, the name is random.

Note that the error opening time is correct. The first window is 3.18 minutes, and the second window is 03:28. The service starts later than the server.

For more information about the causes of PHPWAMP self-startup exceptions, Apache and other services will not be restarted automatically after the server is restarted!

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.