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: installing apache Page 1, 2  Next
Author
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sat 13 Sep '08 4:43    Post subject: installing apache Reply with quote

Im a very new newbie and have fallen at the first fence. I have tried to install apache but I get errors saying it cant find apache2.

So. Back to square one. I've uninstalled it so i can check the settings were right i put into it. When i was installing apache, a window came up asking me three questions:

1) network domain
I dont know what this question is asking for. Apache filled in this textbox with the name of my router which is Belkin. But this doesnt seem right.

2)Server Name.
Not sure about this either. Again Apache has filled this in with the name of my computer (markets2-36e36) plus the name of the router. Thus:
markets2-36e36.Belkin
This again seems odd

3)Administrators email.
Apache has put in admin@Belkin. This is nt my email. This looks very odd and has made me question whether I should be putting in different vaues at this point in the installation.

So are these values likely to have been correctly and automatically put in by apache as it configured itself?



thanks for your help

cass27
Back to top
glsmith
Moderator


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

PostPosted: Sat 13 Sep '08 6:24    Post subject: Reply with quote

Network Name ... funny, it's useless .. only used in the comments in the httpd.conf file .. not used in any configuration setting

ServerName .. Important .. with your computer name and it should be connected to the servers LAN IP .. fine as long as it resolves to an IP the server is actually using (loopback test) which it does.


AdminEmail ... shows in default error pages .. I never put a real one in there .. so really doesn't matter.
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sat 13 Sep '08 6:39    Post subject: Reply with quote

So, I dont need anything in network name.

also i neednt worry about the email either.

LAN IP Not sure what this is. Apache puts in the name of the computer with the name of the router like this:

markest2-362e36.Belkin

Is this ok?
Back to top
glsmith
Moderator


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

PostPosted: Sat 13 Sep '08 8:34    Post subject: Reply with quote

I think it will force you to put something in the Network Name .. it just has no use.

And as for the other .. yes computer name is fine for the server name


LAN = Local Area Network (behind the router)
WAN = Wide Are Network (the world)
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sat 13 Sep '08 11:22    Post subject: Reply with quote

For Server could I just put localhost?

And it doesnt really matter what I put under network?

thanks. sorry if it sounds Im being picky but i feel if i know the settings are right in the first place I need to look elsewhere to solve the error message.

cass27
Back to top
glsmith
Moderator


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

PostPosted: Sat 13 Sep '08 12:15    Post subject: Reply with quote

Yes you could use localhost, but using localhost it will only be available on that computer, the localhost.

using computer name it will be accessible to all computers inside the router, and the world if you forward the port though the router to the server.
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sat 13 Sep '08 12:39    Post subject: Reply with quote

thanks for your help glsmith.

I shall install again but i have a funny feeling i will be back.

cass27
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sat 13 Sep '08 14:05    Post subject: Reply with quote

I told you id be back....

Well I installed it again. I left Belkin under Network. Made the servername localhost and changed the email to my own e mail.

The apache monitor appears to have started but nothing else. when i go into restart in the console I get the following error message:

The system cannot find the file specified. No installed service named apache2.

However it obviously showing up in the menu and in my program files.

I ought to add that I have IIS on the computer so i have changed the Listen comand to:

#Listen *:8080

Any idea what could be wrong here?

cass27
Back to top
glsmith
Moderator


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

PostPosted: Sat 13 Sep '08 19:17    Post subject: Reply with quote

Apache's error log says? Probably says something about not being able to open socket on port 80.

Should have mentioned IIS first.

You need to take the # off the front of the listen line.

in the console (not Apache Monitor) type

if Apache 2.0.x: apache -k install
if Apache 2.2.x: httpd -k install

If there are any more errors in your config Apache will tell you now or if not, then after a little while the service should show up in the Apache Monitor which you can then start the service with it.
Back to top
James Blond
Moderator


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

PostPosted: Sat 13 Sep '08 22:16    Post subject: Reply with quote

cass27 wrote:

#Listen *:8080


That is a wrong syntax. Correct would be Listen 8080 Wink
# = a outcomment
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sat 13 Sep '08 23:29    Post subject: Reply with quote

Right. Now Im getting somewhere.

I have reinstalled and re configured the httpd file to:

I also clicked the radio button so it would listen on port 8080. I have checked the httpd file and it says Listen 8080.

Now installed. (2.0.58 by the way)

No errors! The monitor is there.

When i click Start in console the console comes up. however when i type nothing registers in the box. There is no type at all. I have checked my keyboard. no problem there.

What could be the problem?

Also when i click test configuration the console like window flashes on to the screen and then disappears.

cass27
Back to top
James Blond
Moderator


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

PostPosted: Sun 14 Sep '08 15:04    Post subject: Reply with quote

Quote:

however when i type nothing registers in the box


You can do NOTHING in that box Wink

Open a browser and type http://localhost:8080

Why did you installed such an old version of apache?
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sun 14 Sep '08 22:45    Post subject: Reply with quote

hi,

When I try to see it in the browser under localhost:8080 I get an error page saying the page cannot be displayed.

could it be I havent configured the httpd.conf properly? Various lines dont seem to look right:


ServerName markets2-363e36.Belkin:80

#should this be localhost 8080

UseCanonicalName Off

#is this right?

UserDir "My Documents/My Website"

#should i be putting in an actual path here?

As you can see im really scratching around in the dark. Any ideas would be appreciated.

Quote:
Why did you installed such an old version of apache?


I am installing an old version because it came as a free cd with a book called PHP, MYSQL and APACHE by Sams 24 hour series. I would rather have an up to date one but I go to the apache site and get totally lost with mirrors, binarries, windows 32 - im worried about downloading the right one.

Quote:
You can do NOTHING in that box


Then what is this box for?

Do you know there will come a day when i will look over to Bill Gates and I'll say "do you know bill, there was a time when i knew b****** all about apache..."

cass27
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Sun 14 Sep '08 23:13    Post subject: Reply with quote

WOW!!!!!!!!!
Laughing
I downloaded the new version of apache with the msi installer.

After fiddling about a bit I eventually got a page that said "IT Works!!"

Great. Thanks for all your help.

Now, Ive got it, what amn I going to do with it? I shall carry on reading my book php, mysql, and apache by Sams 24 hour series.

Thanks again

cass27

P.s. i think ill be back....
Back to top
James Blond
Moderator


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

PostPosted: Mon 15 Sep '08 10:46    Post subject: Reply with quote

You may follow our setup manual and jump directly to the PHP part

http://www.apachelounge.com/viewtopic.php?t=2394

If you still have a question please ask again.
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Mon 15 Sep '08 16:09    Post subject: Reply with quote

Quote:
You may follow our setup manual and jump directly to the PHP part

http://www.apachelounge.com/viewtopic.php?t=2394


Thanks for that it seems useful. I dont quite understand this part:

THIS MUST BE ACCOMPLISHED (see note below): Add the folder that you put the PHP files into in the PATH ENVIRONMENT (System Properties | Advanced | Environment Variables | System variables | Path).

Example:

Variable name: Path
Variable value: C:\php5;%SystemRoot%\system32;.....

I am not sure what I should be doing here at all. Can you expand a little?

At the moment the testing server seems to be working but cannot find local files. Only files on my remote server. If I want to test pages i have to put upload them. this seems to defeat the object of having a local testing server so I must be doing something wrong.

cass27
Back to top
James Blond
Moderator


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

PostPosted: Mon 15 Sep '08 19:50    Post subject: Reply with quote

If your variable is

Code:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem


Just add your PHP path to the end

e.g.
Code:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\php


Quote:

t the moment the testing server seems to be working but cannot find local files. Only files on my remote server.


Please post what is in your error.log about that. (do not post the whole error.log Wink )
Back to top
cass27



Joined: 13 Sep 2008
Posts: 12
Location: kent, England

PostPosted: Mon 15 Sep '08 20:56    Post subject: Reply with quote

Quote:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem


Where would i find this code to add the path to?

Quote:
Please post what is in your error.log about that. (do not post the whole error.log


I wouldnt know what to look for in my error log but I have noticed when I attempt to see local files in the browser nothing is added to the error record.
I am working with Dreamweaver. What happpens is this:
When I wish to view a file locally in the browser I click f12. After installing Apache it comes up with Page not found error message in the Browser like this:

Not Found
The requested document was not found on this server.


--------------------------------------------------------------------------------

Web Server at louandelcats.co.uk

louandelcats is the name of my web site.

Do you think it is somehow linking to the remote server rather than the local machine?

cass27
Back to top
glsmith
Moderator


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

PostPosted: Tue 16 Sep '08 0:16    Post subject: Reply with quote

louandelcats.co.uk -> 91.186.30.8 -> kingair.eukhost.com

Is that you or the remote server?
Back to top
James Blond
Moderator


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

PostPosted: Tue 16 Sep '08 11:27    Post subject: Reply with quote

You can try:

http://localhost and http://localhost:8080

Do you see anything than?
Back to top


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