Author |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
Posted: Fri 26 Aug '11 22:42 Post subject: Manually Installing Apache ? |
|
|
Hello everybody!
I’m happy to have join the Apache Lounge. My name is max-21, you can call me max-21 . I’m a computer geek want-to-be but I’m not that good so I guest I am a computer novice. I use to write tons of ASM desktop programs just to get use to ASM, but that was in the 9x days. Now I’m teaching myself C++ and JAVA to move more toward developing Web-top applications since the desktop is dead. The only people who see “A” desktop is the programmer while the rest of the world google with APACHE.
Anyway, to get started I installed Apache and friends on Win-XP and Win-7 just last week. But when I do dumb things that I don’t have a clue about I have no idea where to search to fix the problem. Win-7 Windows Defender and crew would jump in the way and convince me to click “SAVE ME” ... so I click this time since I don’t have a clue anyway ,,, now my host file don’t block my list of browser-hogging website’s anymore and the Apache system-tray icon has been permanently removed. That just happened a few hours ago before I join. It’s time to take control. So I plan to install everything WEB wise manually where ever possible so that my little app (once created) or me will live in-between the big-3 and the OS so when the OS tell me “I ain’t going to do it”, I’ll have my own Defender for the true offender.
My question is how do I install the Apache zip format to run as a service under Win-XP and Win-7 manually. Is there a detailed list or how-to around. I’m sure it don’t take much but I don’t know how to do it. I prefer the actual registry entries but I’ll take what I can get.
Thanks in advance
http://www.apachelounge.com/download/ |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sat 27 Aug '11 0:16 Post subject: |
|
|
See the Apache part of this
http://www.apachelounge.com/viewtopic.php?t=2394
One thing, in Win7, open that console (command prompt) as Administrator, e.g. right click on icon and choose "Run as Administrator" |
|
Back to top |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
Posted: Sat 27 Aug '11 2:27 Post subject: |
|
|
count me in. httpd -k uninstall pop the services right out of there. I don't plan to miss a beat.
Thanks glsmith |
|
Back to top |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
Posted: Sat 27 Aug '11 6:53 Post subject: |
|
|
I have a few more questions. I'm working with two machines. One has the httpd.msi install and the other has the httpd.zip install that I'm working with bit-by-bit. I'm using the httpd.msi to get an idea of where everything is so I can make the same entries on my main zip machine. Once completed I'm going to use a .bat file to fire-up Apache. I think that will work?? ... Anyway I am amazed at how stand-along Apache can be. I never had a clue until now.
1)
Where is the entry for Network Domain. I use localhost and I can't find it in the httpd.conf file.
Network Domain: localhost
2)
I notice that the Server Name has three entries but they are all commented out in the httd.conf. Do I uncomment them myself?
Server Name: My-Machine-Name
# ServerName MACHINE-1:80
# Redirect permanent /foo http://MACHINE-1/bar
# ErrorDocument 402 http://MACHINE-1/subscription_info.html
3)
No problem here.
Admin Email: (any email. real or fake)
ServerAdmin maxwell-222@lycos.com
4)
Are there any more of these entries located else where? If so, where exactly are all they located. As long as they not in the Windows Registry, that will be a plus
5)
One final question but I save it for latter since it is unrelated.
Thank again in advance
PS:
About my .bat file idea. This is intended so that I don't have to make any entries in Windows Services inorder for Apache to run. Am I'm asking too much? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sat 27 Aug '11 12:04 Post subject: |
|
|
I should not answer this .. it is way early AM and have had a few drinks ... but one thing I think I can say without anyone here arguing is .... delete the msi and empty the recycle bin .. it will cause not much but headaches!
If in the meantime no one has read and responded to your last post there, which I cannot read right now. .. sorry ... I will |
|
Back to top |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
Posted: Sat 27 Aug '11 18:01 Post subject: |
|
|
glsmith, I thought programmer was not suppose to enjoy life. Shame on you... anyway, what pub did you go to? .. the Apache Lounge
It been 24 hours and I learn a lot. My Apache-zip install is doing just fine. I will have more info by tonight just for the record. About the delete thing, I agree and I'll me tell U why by tonight.
Delete DONE! |
|
Back to top |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
Posted: Sat 27 Aug '11 23:01 Post subject: |
|
|
APACHE is on root C:\Apache2
LoadModule php5_module "d:/php5/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "d:/php5"
I'm sure I followed all the instructions to the letter, checking every tiny detail, repeating it many, many times, erase it, rebbot and do it again to lock it in my head ... The tute is perfect. Just one miss-spell word ot = to and see if wherething loads ... so I did not miss a beat.
When I comment-out the the "LoadModule php5_module" Apache will work and create start the service. If I leave it in creating the service will not work. I checked at lease 7 times with reboot... and I always count the registry keys a program creates. It's a habit. because of my ripping, it's either 6 or 7 for Apache-zip. Local_Machine only, that fine by me.
C:\Apache2\bin>httpd -S
httpd: Syntax error on line 130 of C:/Apache2/conf/httpd.conf: LoadModule takes
two arguments, a module name and the name of a shared object file to load it from ...
|
|
Back to top |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
Posted: Sun 28 Aug '11 1:31 Post subject: |
|
|
It seem I went the wrong route. I followed the instructions but I thought it was the manual installer responsibility to insert his own user info before hand so I spend all night trying to find where to insert it, and comparing to an standard install.
I should have simple ask, and I'm going to ask now:
What is the command line or what ever that will allow me to set my user information?
OK, this time 100% by the How-To. I just unzipped and put these two lines in the .conf. Everything else is already set and it worked, but now Apache still "cannot determine the server's fully qualified domain name" The How-To say nothing about inserting user-info and my guest work did not solve the problem but it was a great learning experience. But right now, I need some help before I get lost again.
LoadModule php5_module "d:/php5/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "d:/php5" |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 28 Aug '11 2:08 Post subject: |
|
|
"cannot determine the server's fully qualified domain name"
Cause, in httpd.conf if you look at the line with ServerName, it is probably #commented out ... it's not a big deal however, if you have an actual hostname (localhost is fine if the server is not talking outside your walls) use it. |
|
Back to top |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
|
Back to top |
|
max-21
Joined: 26 Aug 2011 Posts: 10 Location: Mars
|
Posted: Sun 28 Aug '11 2:28 Post subject: |
|
|
glsmith, we posted at the same time. The forum got lots of info and that is about the best How-To I ever read. It so down to earth.
Thanks |
|
Back to top |
|