Phpwamp self-Starting exception, server restart after the service does not automatically restart the cause analysis

Source: Internet
Author: User
When using the Phpwamp automatic task, many students encounter the following problems:

"The Web service does not start automatically after the Phpwamp Green integration Environment restarts the computer (server)"

(This is also possible if you are experiencing this problem in other environments or when setting up yourself)


This article conforms to the following:

Why does the Web service change from manual to automatic or cannot be restarted?

Why did I set the service to automatic and turn it back on manually?

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

The site service does not automatically restart the cause analysis after Windows Server restarts.

Why does restarting the server (computer) service fail to start automatically after the service is set to automatic?

Msconfig invalid setting, auto invalid, invalid delay, invalid registry, how to prevent the website service from automatically reverting to manual?

Author Preface:

Phpwamp is my development of a pure green integration of VC integration environment, support custom set PHP version, multi-version running concurrently, force modification of any environment database password, a key to remove the domain name is not 80 port, forcibly uninstall any environment, forced to remove environmental obstruction, automatic periodic task system and many other practical functions, Recently there are students in the use of automatic tasks, found that restart the computer after the Phpwamp website service will not follow the restart, the need to manually start the site services, the site can be normal operation, then what is the cause of this situation, and now I come for everyone to analyze and solve.

The same problem is not related to Phpwamp itself, is the problem of computer setup, or the automatic recovery of anti-virus software caused.

Students ' questions are as follows:

Student: Teacher for Mao I use Phpwamp or other integration environment, every time the computer restarts, the website service will not automatically restart with the system? And the wonderful thing is that some computers can normally start with the system? Did I use the wrong posture? Set the relevant website services to automatic, or a bird-like! I checked a lot of online information, according to the above to do, the results are futile, I have a go, simply pit Dad Ah! How to solve?

Author Tip: Click on the image to see the high-definition map, you can not see the article you see is reproduced in the past, please come to my blog to view the original.

What should we do if we encounter the situation of the classmate above?

In the process of solving this problem, we may encounter the following problems, only need to solve according to their own situation.

First introduce the general solution, and then introduce the use of Phpwamp to solve this problem.

1th Step Solution:

Click "View all Services" on the Phpwamp main screen

Then right click on the service that you want to boot with the computer (server), right clicking on properties.

Set it to "auto", usually we can set it up, but sometimes it doesn't, so keep looking down.

2nd Step Solution:

In the lower left corner of the input box, type msconfig, and open the System Configuration Utility to set the boot entry.

Then select the Services tab in the startup item, and in the list, locate the service you want to start up, and then reboot.

Usually there is no problem in this step, but some people do not have to set it up!

That is because some anti-virus software optimization will reset the settings, resulting in Msconfig can not be modified, always change back to the pre-modification settings.

3rd Step Solution:

In order to demonstrate the installation of 360 security guard, other anti-virus software similar. First turn on the Kill soft boot entry setting.

Find the specific optimization record of the relevant website service, click the Restore Launch button, such as (other anti-virus software same)

If you do this, you will not be able to start the Web service automatically.

Then can be Apache, MySQL and other corresponding Web services set to "automatic (delayed start)" can be.

This will run the service after the load is complete.

The Ultimate Universal Solution:

If none of the above methods work, you can make a bat file for the service that you want to start with the system, and then join the startup item.

For example, the Phpwamp integrated environment for Apache and MySQL service names are. phpwamp_apache2.4 and. Phpwamp_mysql, respectively, with the corresponding bat code as follows

(Other integrated environment or the installation of their own environment, please check the corresponding service name, the seat can be)

@echo off  set phpwamp_version= update date 20160226  TITLE phpwamp%phpwamp_version% running in-%~dp0  net stop. Phpwamp_ apache2.4  net stop. Phpwamp_mysql

Of course, you can also write down some of Phpwamp's other services.

@echo off  set phpwamp_version= update date 20160226  TITLE phpwamp%phpwamp_version% running in-%~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 tip: If you add a service that has not been installed, you may have a corresponding error when booting, which can be ignored.

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

Name the bat file start-up.bat,start-up is the English start meaning, the names are arbitrary.

Then open this folder, such as.

Copy the Start-up.bat file in so that every time it starts, it will automatically start the service in bat.

(This action antivirus software is more sensitive, set when the anti-virus software to intercept, click through/or turn off the kill soft)

Other integration environments, or your own environment, can be set up that way.

Other solutions: Comprehensive use of phpwamp to solve

If you are using Phpwamp, if you encounter the above problems, you can not use the bat method, directly with the self-feature solution.

Turn on automatic tasks that restart your computer (server) regularly, and then turn on automatic tasks that restart the service on a timed basis.

Usually we set the automatic restart of the server (restart the computer), the system will automatically start the Web services, if you encounter the above problems can not automatically restart the site services, you may restart the server, and then restart the site service, the two staggered a few minutes.

Case study: For example, I want to set the 3rd and 5th number of each month of the 3:18 A.M. automatically restart the server (restart the computer), as shown in.

These two windows look like Ha, looking at the window title and the actual content is easy to distinguish, note that the first window is to restart the server, the second window is to restart the Web services, I opened two scheduled tasks, time stagger a few minutes to be able to, specific look at the picture red box shown.

Note Stagger the time Ah, the first window is 3.18 points, the second window is 3:28, the service is more than the server started a little later.

Related Article

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.