Originally Posted by Fou-Lu
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
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.
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?