I recently tried to install Apache HTTP Server 2.0.64, Win32 Binary without crypto (no mod_ssl) (MSI Installer): httpd-2.0.64-win32-x86-no_ssl.msi
However, when I try to start the program I get the error "the system cannot find the file specified. No installed service named "apache2".
In the 'error' folder, I do not see an error log, but I do see some .var files. They are:
HTTP_BAD_GATEWAY.html.var
HTTP_BAD_REQUEST.html.var
HTTP_FORBIDDEN.html.var
HTTP_GONE.html.var
HTTP_INTERNAL_SERVER_ERROR.html.var
HTTP_LENGTH_REQUIRED.html.var
HTTP_METHOD_NOT_ALLOWED.html.var
HTTP_NOT_FOUND.html.var
HTTP_NOT_IMPLEMENTED.html.var
HTTP_PRECONDITION_FAILED.html.var
HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
HTTP_REQUEST_TIME_OUT.html.var
HTTP_REQUEST_URI_TOO_LARGE.html.var
HTTP_SERVICE_UNAVAILABLE.html.var
HTTP_UNAUTHORIZED.html.var
HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
HTTP_VARIANT_ALSO_VARIES.html.var
I also checked the 'services' folder, but could not find Apache there. Anyone know what I can do about this?
I tried to open it from the start menu->apache http server 2.0->control apache server-> start.
I get an error message saying "the system cannot find the file specified. No installed service named "apache2".
I also see the Apache icon on my system tray with a 'stop' icon. When I go to the Apache service monitor and click 'services', I don't see apache anywhere
I think I already disabled IIS and skype from using port 80 because I don't see address 0.0.0.0:80 as being used by anything
Start by verifying that you do not have the services with the windows services mmc, or by running an sc query. The name itself is no good, but you could have the service installed as an alternate name. I can see this being a problem if you didn't explicitly run the msi by right clicking and choosing run as administrator (assuming windows 7 or server 2008+).
You can easily create the service on the cli by running as administrator and going to the HTTPD.exe location and running: httpd.exe -k install. You may want to name it using the -n flag. That makes it easier to modify and control from the cli. This will also create the service required in windows.
Hopefully that works; I've never installed apache from an msi, but it seems to me that it probably lacked the privilege to generate the new service during installation.
Start by verifying that you do not have the services with the windows services mmc, or by running an sc query. The name itself is no good, but you could have the service installed as an alternate name. I can see this being a problem if you didn't explicitly run the msi by right clicking and choosing run as administrator (assuming windows 7 or server 2008+).
You can easily create the service on the cli by running as administrator and going to the HTTPD.exe location and running: httpd.exe -k install. You may want to name it using the -n flag. That makes it easier to modify and control from the cli. This will also create the service required in windows.
Hopefully that works; I've never installed apache from an msi, but it seems to me that it probably lacked the privilege to generate the new service during installation.
by running sc query for 'apache 2.2', I got the message "[sc] EnumQueryServicesStatus: OpenService FAILED 1060:
The specified service does not exist as an installed service"
What is the 'cli'? How do I run it as an administrator and then go the httpd.exe location? Should I just uninstall and then re-install apache? I need apache so I can use php
CLI is the command line interface. You can find it in accessories or pin it to your start bar. Right click and run as administrator. You'll need to track down the location for where you installed it, probably in program files if you didn't modify it, and the *\bin directory of the apache install will include the httpd.conf.
I would uninstall that one myself. That's a relatively old version of Apache, and you'll need a newer one to support 5.4 PHP versions.
Go here: http://www.apachelounge.com/download/
Download one of the newer versions (2.2.23 or 2.4.3 preferably). Also download the VC9 compiled handler for your php version under the modules. That one is under php5apache2_4.dll-php-5.4-win32.zip for example for 5.4.
Then go here: http://windows.php.net/download/#php-5.4 and download a version of 5.4 PHP. Use a .zip install for win32 VC9 thread safe. Extract that wherever, drop the php5apache2_4.dll into that directory, and extract the apache download wherever. Configure the httpd.conf and php.ini, then use the command line to install the httpd.exe -k install options.
Or you can use wamp as well. I hear its easy to install, and its just a bundled version of apache, mysql and PHP. That would save you having to get a mysql install as well. Personally I find all three of these easy to install, but I've also been doing it for over a decade.
CLI is the command line interface. You can find it in accessories or pin it to your start bar. Right click and run as administrator. You'll need to track down the location for where you installed it, probably in program files if you didn't modify it, and the *\bin directory of the apache install will include the httpd.conf.
so CLI is the same as the Command prompt? I couldn't find a 'command line interface' in accessories
Quote:
I would uninstall that one myself. That's a relatively old version of Apache, and you'll need a newer one to support 5.4 PHP versions.
Go here: http://www.apachelounge.com/download/
Download one of the newer versions (2.2.23 or 2.4.3 preferably). Also download the VC9 compiled handler for your php version under the modules. That one is under php5apache2_4.dll-php-5.4-win32.zip for example for 5.4.
Then go here: http://windows.php.net/download/#php-5.4 and download a version of 5.4 PHP. Use a .zip install for win32 VC9 thread safe. Extract that wherever, drop the php5apache2_4.dll into that directory, and extract the apache download wherever. Configure the httpd.conf and php.ini, then use the command line to install the httpd.exe -k install options.
Or you can use wamp as well. I hear its easy to install, and its just a bundled version of apache, mysql and PHP. That would save you having to get a mysql install as well. Personally I find all three of these easy to install, but I've also been doing it for over a decade.
I can't find any information about how to configure the php.ini file. Anyways I tried to run "httpd.exe -k install" on command prompt as an administrator and got the message: "apache2.4 service is successfully installed.
testing httpd.conf..
errors reported here must be corrected before the service can be started
httpd.exe: syntax error on line 37 of c:/program files/apache24/conf/httpd.conf: ServerRoot must be a valid directory"
however, when I tried to edit the ServerRoot line 37 of httpd.conf to ANYthing, I get the message: "cannot create the c:\program files\apache24\conf\httpd.conf file"
Trying to get php and apache to install properly has taken me this whole day. Would it be alot simpler if I just downloaded wamp, the bundled version of apache, mysql and PHP? I'm just looking into web development so I heard starting off with PHP is good for beginners like me. Does installing python, perl, or ruby involve this much of a headache?
I've never had any luck with the httpd if it throws any errors regardless of if it reports it only as being a runtime related one. I'd uninstall that first with httpd.exe -k uninstall, then configure the httpd.conf. You need to change the document root and the server software installation; I can't recall the actual names, but they are fairly clear and I believe are within the first few directives of the httpd.conf.
PHP.ini doesn't technically need modifications to run, but you typically configure it for extensions and on windows systems you'll want to configure the session and temporary directories.
Once apache is working then you can configure the PHP module for it.
I can't tell you if wamp takes longer than this or not. I've seen threads here that indicate its not configured by default either for php (which is IMO very unusual given its name and purpose). I always install separately since it lets me change individual software pieces to different versions.
Language installation is never a problem. PHP is simply unzipped (don't get the msi's that's a waste), python is a simple install as is perl. I can't remember when I last used ruby if it was troublesome to install, but if I don't remember than usually that's a good sign.