You are here: Apache and Mysql as services « PHP Programming Language « IT news, forums, messages
Apache and Mysql as services

Posted by Jon Slaughter on 05/03/07 01:18

Just for those that don't know, An easy way to start and stop windows
services such as apache and mysql if you don't want them to automatically
run would be to enter the followin a batch file and then setting up a
shortcut on the desk top for it.

@echo off

net start Apache2
if ERRORLEVEL 1 (
net stop MySQL
net stop Apache2

) ELSE (
net start MySQL
)

This will toggle apache on and off and make sure mysql is running along with
it. If Apache2 is running then it will stop it. It will also sync MySQL to
the state of Apache2.

Just a simple few lines of code that might make it easier than manually
starting and stoping through admin services.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация