Problems with installing Apache
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:
I also checked the 'services' folder, but could not find Apache there. Anyone know what I can do about this?
This error is a windows system error, not an error with the httpd service itself.
Are you trying to start it from the services mmc, from the apache monitor, or from the command line with httpd?
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:
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.
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.
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
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.
|All times are GMT +1. The time now is 02:44 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.