EasyPHP
EN FR
>download >components >modules >blog >forum >faq >screenshots >introduction

For Windows Vista/Seven issues, please read the FAQ or leave a detailed message

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Solution to the "Apache Can't start" issue - Service name to be changed



Posted by: Seagram999
July 22, 2009 06:36PM
English version:
Hello, I found out the reason and the solution of this issue.

As a reminder, here are the messages in EasyPHP.log (based on my translation of french messages):

DD/MM HH:MM:xx EasyPHP Apache Can't install service: Specified file can't be found. (2)
DD/MM HH:MM:xx EasyPHP Apache Cannot run server : Specified service doesn't exist as an installed service. (1060)

What happens is that EasyPHP3.0 expects the Apache service to be named "Apache2".
However, when installing with default options, Apache sets its service name to "Apache2.2".
That's why EasyPhp3.0 can not find it and launch it (or stop it if it's already running)
The solution is to open a console and 1) to uninstall Apache with the default name 2) to install it with the proper command-line setting to force the proper name.

In the console :
-----------------

C:\>"C:\Progra~1\EASYPH~1.0\Apache\bin\apache.exe" -k uninstall
Removing the Apache2.2 service
The Apache2.2 service has been removed successfully.

C:\> "C:\Progra~1\EASYPH~1.0\Apache\bin\apache.exe" -k install -n Apache2
Installing the Apache2 service
The Apache2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.

C:\>

-----------------------

From now on, EasyPHP3.0 should be able to start/stop services at will.
It seems it works on my computer.
Hope this helps.

Version française :
Bonjour, j'ai trouvé la raison et la solution du problème.

Pour mémoire, voici les messages en français dans EasyPHP.log:

JJ/MM HH:MM:xx EasyPHP Apache Le service n'a pas pu être installé : Le fichier spécifié est introuvable. (2)
JJ/MM HH:MM:xx EasyPHP Apache Le serveur n'a pas pu être lancé : Le service spécifié n'existe pas en tant que service installé. (1060)

Ce qui se passe, c'est que EasyPHP3.0 s'attend à ce que le service Apache service soit dénommé "Apache2".
Cependant, lorsqu'il s'installe avec les options par défaut, Apache donne au service le nom "Apache2.2".
C'est pourquoi EasyPhp3.0 ne peut pas le trouver pour le lancer (ni l'arrêter s'il est déjà lancé)
La solution consiste à ouvrir une console et 1) à désinstaller le service Apache avec le nom par défaut 2) à installer Apache avec le paramètre de ligne de commande qui convient pour forcer le nom correct.

Dans la console (les textes en anglais sont les messages de Apache) :
----------------

C:\>"C:\Progra~1\EASYPH~1.0\Apache\bin\apache.exe" -k uninstall
Removing the Apache2.2 service
The Apache2.2 service has been removed successfully.

C:\> "C:\Progra~1\EASYPH~1.0\Apache\bin\apache.exe" -k install -n Apache2
Installing the Apache2 service
The Apache2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.

C:\>

-----------------------

A partir de là, EasyPHP3.0 devrait être capable de démarrer/arrêter les services à volonté. Ca semble fonctionner sur mon ordinateur.
J'espère que ça aide.

Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.