Author |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Fri 05 Oct '12 21:32 Post subject: Apache Virgin |
|
|
Hi,
I am completely new to Apache and I am trying to set up the latest Apache 2.4.3. on my Windows 7 Ultimate(64) os.
I am literally reading PHP and Apache for Dummies.
My question is, where do I start? Is there an .MSI file anywhere that is version 2.4.3?
I downloaded the first file here: http://www.apachelounge.com/download/win64/
Note: SSL issue in 2.4 is solved in 2.4.3, see the info link.
Apache 2.4.3 IPv6 and Crypto enabled. Contains critical APR Patch
Build with apr-1.4.6 apr-util-1.4.1 apr-iconv-1.2.1 openssl-1.0.1c zlib-1.2.7 pcre-8.30 libxml2-2.7.8 lua-5.1.5 expat-2.1.0
httpd-2.4.3-win64.zip info 18 Aug '12 11.415K
PGP Signature(Public PGP key), SHA1-SHA512 Checksums
But after I unzip the folder, I don't know what to do.
I dont know anything about open ssl or non open.
Any help would be appreciated. Thank you! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Fri 05 Oct '12 22:01 Post subject: |
|
|
James, we posted at the same time |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 0:11 Post subject: |
|
|
Great minds think alike.
I have the apache under C:/Apache24
When I go to localhost, it says it cannot connect.
When I go to httpd.exe, a black box with a grey line appears, but I cant type anything.
When I start Apache Monitor there is a red dot (instead of green) and it says "The requested operation has failed!" |
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Sat 06 Oct '12 1:30 Post subject: |
|
|
Then the Apache service has not started yet.
In "C:/Apache24/logs" there is a text-file named "error.log".
Trying open it, and see if it gives a hint what is going wrong. |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 2:48 Post subject: |
|
|
It says at the top of the log
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::8d91:6068:f0ce:a270. Set the 'ServerName' directive globally to suppress this message
I have the ServerName set to localhost
Also, when I run CMD as Administrator and try to type in "httpd.exe -k install" it says "httpd is not recognized as an internal or external command". |
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Sat 06 Oct '12 3:16 Post subject: |
|
|
First go to the folder "C:/Apache24/bin", and then try to run "http.exe -k install".
Does that make any difference? |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 3:20 Post subject: |
|
|
No same problem. |
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Sat 06 Oct '12 3:23 Post subject: |
|
|
Sorry, there was a typo in my post.
It should be:
""httpd.exe -k install". |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 3:32 Post subject: |
|
|
Haha yeah I caught that. Same problem. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sat 06 Oct '12 3:52 Post subject: |
|
|
Just a stab, when you open Start -> Programs -> Accessories -> Command Prompt as a Administrator, you then need to type cd\apache24\bin
Then you can use
httpd -k install |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 4:10 Post subject: |
|
|
Omg! It worked it worked! Thank you!
Now how do I get http://localhost to work in Chrome? |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 4:15 Post subject: |
|
|
Wait I restarted my computer and I got the local host to display "It works".
Thank you everyone for all your help!
On to PHP! |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 4:17 Post subject: |
|
|
Oh and just out of curiosity, is the Apache folder not suppose to display in Start > All Programs with this method of installation? |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 5:01 Post subject: |
|
|
When I run CMD and type "php.ini -m" Im getting the error "php.ini is not recognized as an internal or external command"
I tried to change the path in the Environmental Variables but it still didn't work. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sat 06 Oct '12 10:06 Post subject: |
|
|
php.ini is a settings file, it's in readable text you can edit with notepad.
I know you say you have added it to your environment, but first time try ... at CMD
Just like you did with Apache, no need for Admin tho;
cd\phpfolder ... whatever the folder name is then type just
php -m
C:\Apache24>cd\php54
C:\php54>php -m
[PHP Modules]
bcmath
calendar
Core
... |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 14:19 Post subject: |
|
|
Thank you! I didn't realize that you have to call folders in CMD first before opening programs.
Does anyone know how to get Apache to display in all programs with the Apache HTTPD Server Folder > Control Apache Server > Start Restart etcetcetc?
I tried displaying the C:/Apache24 folder, but that doesnt help. |
|
Back to top |
|
Diana
Joined: 05 Oct 2012 Posts: 17 Location: Canada
|
Posted: Sat 06 Oct '12 14:52 Post subject: |
|
|
I also wanted to add when I type in "httpd -k start" in CMD, Im getting the error
C:\Apache24\bin>httpd - start
httpd: Syntax error on line 172 of C:Apache24/conf/httpd.conf: Cannot load C:/PHP5/php5apache2_3.dll into server: 1% is not a valid Win32 application. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 06 Oct '12 14:57 Post subject: |
|
|
The PHP guys haven't updated their handler yet. Download php5apache2_4.dll-php-5.4-win32.zip from apachelounge download page.
Code: |
LoadModule php5_module "c:/PHP5/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/PHP5"
|
Do not forget to edit the extension_dir in your php.ini
Code: |
extension_dir = "C:\PHP5\ext"
|
|
|
Back to top |
|