Jump to content

Apache Newbie


dotolee

Recommended Posts

Hi there. I'm a newbie to apache...

I just installed the web server and it seems to work in that when I run the test :

http://localhost/

i get the page that displays: 'It works!"

 

what I'm wondering is how the directory structure works. with iis, using the GUI, I can create new virtual folders and drop in HTML / ASP pages and I'm off. But I can't find where this "It works!" page is coming from.

Also, can you recommend a good web site that has tutorials for me?

Thanks!

Link to comment
Share on other sites

Apache does not come with any GUI to manage the server. How Apache works is done by manually editting Apaches configuration file (httpd.conf).

 

The "It Works" page is being served from the C:/(path/to/Apache)/htdocs and the file being displayed is called index.html.

 

Apache will display files listed in the DirectoryIndex directive automatically if there is no file being requested in the url.

Link to comment
Share on other sites

So i started to follow some step by step configuration tutorial online and i managed to mess things up.

now when i navigate to "http://localhost" it doesn't display my treasured "it works" message. (so sad)

The error message I'm getting is that I'm not authorized to view the page.  As a test, i tried using 127.0.0.1 instead but I get the same message.

 

When I run httpd.exe, this is the output i get:

 

C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd

Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.phub.net.cable.rogers.com] does not exist

Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.phub.net.cable.rogers.com] does not exist

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Wed Apr 30 08:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

[Wed Apr 30 08:52:43 2008] [warn] NameVirtualHost *:80 has no VirtualHosts

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : make_sock: could not bind to address 0.0.0.0

:80

no listening sockets available, shutting down

Unable to open logs

 

When I initially installed apache, it detected my ISP provider (rogers) and my IP settings etc and I just accepted all defaults.  I don't really need to connect directly from my box to the LIVE production URL ...

I just need localhost to work.

What I'm trying to accomplish is the following:

create a development environment on my box where i can create HTML / PHP files with server side includes.  Once the site is working, i will manually copy the files over to a server that has already been set up for me by the IT folks in the office. 

 

Since installing apache initially, I've added a directory listing to my httpd.conf file, which may also be the cause of the problem.  My changes include:

 

<directory "c:/webprojects/*/">

    allowoverride none

    addtype text/html .shtml

    options followsymlinks +includes

    order allow,deny

    allow from all

    addoutputfilter INCLUDES;DEFLATE shtml

</directory>

I also changed the directory index to include .shtml and .php by modifying my <IfModule dir_module> section to look like:

 

<IfModule dir_module>

    directoryIndex index.html index.shtml index.php

</IfModule>

 

Finally in the <IfModule mime_module>, I uncommented the last two lines :

 

addtype text/html .shtml

AddOutputFilter INCLUDES .shtml

 

Sorry for being so verbose.  Just want to provide as much background information as possible to save time.

Cheers.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.