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 2.2.9 directory structure
Author
RICT1



Joined: 23 Jul 2009
Posts: 6
Location: Rishton, Lancashire

PostPosted: Thu 23 Jul '09 23:12    Post subject: Apache 2.2.9 directory structure Reply with quote

Hello All,
I am a complete beginner to Apache and I have installed the binary version of Apache- apache_2.2.9-win32-x86-openssl-0.9.8h-r2 for windows.

I am attempting to install it on my Windows XP home edition PC. When the installer has done its job and I try and find the httpd.conf file in order to edit it, I find it at /Apache2.2/conf/original/httpd.conf. I attempt to start apache from the console, it tells me that httpd.exe cannot open httpd.conf because it cannot find it and informs me it has looked for it at
/Apache2.2/conf.
There is no mention in the path name of a directory called 'Original' where my httpd.conf file is located. If I copy the file 'outside' the directory so it resides in Conf then I still get the same error message.

I don't know if this makes any difference but I am running with the windows firewall on and using Kaspersky anti-virus.

I would be grateful for any assistance that may come my way.
Back to top
glsmith
Moderator


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

PostPosted: Fri 24 Jul '09 2:00    Post subject: Reply with quote

move it up a directory to /apache2.2/conf
why 2.2.9 and not 2.2.11?
Back to top
RICT1



Joined: 23 Jul 2009
Posts: 6
Location: Rishton, Lancashire

PostPosted: Fri 24 Jul '09 21:15    Post subject: Reply with quote

Quote:
move it up a directory to /apache2.2/conf
why 2.2.9 and not 2.2.11?


Thanks gl,
I have tried to do this and I still get the same error. As for which version, I have both versions and neither of them will install for the same reason as outlined above. No where in any Apache literature I have come across on websites etc. have I seen reference to the "Original" directory contained in Apache2.2/conf. There is another folder called "Extra" contained in conf also.

RICT1
Back to top
glsmith
Moderator


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

PostPosted: Sat 25 Jul '09 1:20    Post subject: Reply with quote

well .. typically you would not see it ... I never knew it existed till I started compiling 2.2.x. Then again I have never used apache.org's msi installer for 2.2.x

"Extra" however is supposed to be there .. you'll notice there is a dupe of it in "Original" as well

but ok .. let's bypass
Create a file in apache2.2/conf called httpd.conf
in it have a single line

Code:
Include conf/original/httpd.conf


see what happens

If it works ... just copy original/httpd.conf back to
conf/httpd.conf overwriting the one liner file.

Apache is hard coded to look for that file in /conf .. nowhere else.
If still a problem would you post just that error message verbatim (not the whole error file)

On a side note .. 2.2.12 if it passes testing should be out soon .. the test tarballs have been released and they are voting on it now. I now see 4 binding Yes votes and no No votes so it should be real soon.
Back to top
RICT1



Joined: 23 Jul 2009
Posts: 6
Location: Rishton, Lancashire

PostPosted: Sat 25 Jul '09 23:51    Post subject: Reply with quote

Thanks gl,

I feel I am getting close now (famous last words i'm sure)

Code:
Include conf/original/httpd.conf
Quote:


I have tried this and have got a different response, is there a terminating character I should be using at the end of the line? And is there any significance in the fact that the directory dividers slope in different directions?

This is the window I get;

httpd.exe: Syntax error on line 1 of C:/Program files/Apache Software Foundation/Apache2.2/ocnf httpd.conf: Could not open configuration file C:\\Program Files\Apache Software Foundation\Apache2.2\\./conf/original/httpd.conf: The system cannot find the file specified. Note the errors or messages above, and press the <ESC> key to exit. 6....

Regards,
RICT1
Back to top
glsmith
Moderator


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

PostPosted: Sun 26 Jul '09 2:07    Post subject: Reply with quote

usually never hurts to have a blank line as the end of the file

I'm seeing fuuny business in that erroe.
Yes / and \ matter ... it is either single foward seprating or double back

Also, always enclose that full path in quotes if you go all the way to the C Root. (because of the spaces in program files and apache software foundation)

So for instance ...
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
or
ServerRoot "C:\\Program Files\\Apache Software Foundation\\Apache2.2"

If that path string is not enclosed in quotes, Apache sees as far as the first space and nothing beyond

ServerRoot C:/Program

This is a mess
C:\\Program Files\Apache Software Foundation\Apache2.2\\./conf/original/httpd.conf

2\\./c huh?

It however seems to be finding the file which is why it states error in line 1

feel free to send me file if you wish your original/httpd.conf
AL0003 at justmyspace dot org

We do need to get it in the right place .. just trying to sort this out .. and the answers may be in that file
Back to top
RICT1



Joined: 23 Jul 2009
Posts: 6
Location: Rishton, Lancashire

PostPosted: Sun 26 Jul '09 10:52    Post subject: Reply with quote

Thanks gl,

I have sent you httpd.conf as requested.

Regards,
RICT1
Back to top
glsmith
Moderator


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

PostPosted: Sun 26 Jul '09 19:55    Post subject: Reply with quote

I was hoping to see the big one at
conf/original/httpd.conf that's you've been working with
Back to top
RICT1



Joined: 23 Jul 2009
Posts: 6
Location: Rishton, Lancashire

PostPosted: Sun 26 Jul '09 21:34    Post subject: Reply with quote

I think it should have arrived by now, you never know, it may even be the right one Very Happy
Back to top
RICT1



Joined: 23 Jul 2009
Posts: 6
Location: Rishton, Lancashire

PostPosted: Mon 27 Jul '09 12:30    Post subject: Reply with quote

Many, Many thanks to my new mate glsmith, who spent much time and gave his expertise willingly, to help a total stranger....ME!!

The problem apparently, was to do with the installer package from apache.org, that windows uses to place apache onto the machine. The installer from apache is supposed to drop a temporary file (awk.exe), which replaces the "@@WhatEver@@' stuff in the in. file, with the info from where the .msi installed Apache. After that, it then copies that file to just plain old/conf. Gl thought I may be using Vista (as opposed to the XP I do use), as he could see the UAC getting in the way of this part of the install process.

Solution
Gl was able to modify a default configuration to match my set up once I told him the true path to the httpd.exe file which in my case was C:/program files/apache software foundation/apache2.2. The configuration files are set for localhost(127.0.0.1) which means Apache will not answer outside the local machine until the "ServerName" is either changed or commented out. My configuration has "ServerName localhost:80". This suits my needs perfectly as I am experimenting with PHP and mysql in a local environment.

Gl made the files available to me via a zip file which I unzipped into the /Apache2.2 folder (after getting rid of the conf folder and all its contents). The unzipped contents provided a completely new conf directory with all the required files, appropiately configured.

I would like to link to the source of the zip file that Gl gave me, but I won't for 2 reasons. Firsty, I have not got permission, secondly, the configuration I have been given may not be the right one for other machine environments.

My Apache2.2 web server now works perfectly and I am indebted to Gl, who I cannot thank enough, as I have spent a lot of time installing, uninstalling, altering this and reconfiguring that, and without him, I would have spent an awful lot longer trying to get my web server to work.

Its good to know that with all the crap going on out there, there are still some good guys left in the world. Very Happy
Thanks again,
RICT1
Back to top


Reply to topic   Topic: Apache 2.2.9 directory structure View previous topic :: View next topic
Post new topic   Forum Index -> Apache