logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Virgin Page 1, 2  Next
Author
Diana



Joined: 05 Oct 2012
Posts: 17
Location: Canada

PostPosted: Fri 05 Oct '12 21:32    Post subject: Apache Virgin Reply with quote

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! Smile
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7304
Location: Germany, Next to Hamburg

PostPosted: Fri 05 Oct '12 21:49    Post subject: Reply with quote

Hi Diana,
we have a how to topic for that http://www.apachelounge.com/viewtopic.php?t=2394

if you still have a question please ask again!
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3059
Location: Hilversum, NL, EU

PostPosted: Fri 05 Oct '12 21:50    Post subject: Reply with quote

We all started as a newbie. Do not worry yet about SSL (is for https sites).

A start is http://www.apachelounge.com/viewtopic.php?t=2394 It written 2.2, but it is same for 2.4.

Steffen
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3059
Location: Hilversum, NL, EU

PostPosted: Fri 05 Oct '12 22:01    Post subject: Reply with quote

James, we posted at the same time Very Happy
Back to top
Diana



Joined: 05 Oct 2012
Posts: 17
Location: Canada

PostPosted: Sat 06 Oct '12 0:11    Post subject: Reply with quote

Great minds think alike. Smile

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: 37

PostPosted: Sat 06 Oct '12 1:30    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 2:48    Post subject: Reply with quote

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: 37

PostPosted: Sat 06 Oct '12 3:16    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 3:20    Post subject: Reply with quote

No same problem.
Back to top
Materix



Joined: 30 Aug 2012
Posts: 37

PostPosted: Sat 06 Oct '12 3:23    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 3:32    Post subject: Reply with quote

Haha yeah I caught that. Same problem. Smile
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Sat 06 Oct '12 3:52    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 4:10    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 4:15    Post subject: Reply with quote

Wait I restarted my computer and I got the local host to display "It works".

Thank you everyone for all your help! Smile

On to PHP!
Back to top
Diana



Joined: 05 Oct 2012
Posts: 17
Location: Canada

PostPosted: Sat 06 Oct '12 4:17    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 5:01    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 10:06    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 14:19    Post subject: Reply with quote

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

PostPosted: Sat 06 Oct '12 14:52    Post subject: Reply with quote

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: 7304
Location: Germany, Next to Hamburg

PostPosted: Sat 06 Oct '12 14:57    Post subject: Reply with quote

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


Reply to topic   Topic: Apache Virgin View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page 1, 2  Next