Jump to content

Recommended Posts

I used to have 2.0 installed but lost my hard disk in a crash.  So I just loaded apache_2.2.6-win32-x86-no_ssl.msi  and it loaded - I went to the C:/Program Files/Apache Software Foundation/Apache2.2/htdocs folders and the index.html opens and says It Worked.

 

My old 2.0 was set up with a "localhost" directory and I would specify that in my website definitions in Dreamweaver to get my sites to interact with it as a testing server.

 

I am confused with the flollowing settings - do I need to change some of these? Can I change document root to be my webfolder like c:\websites\?:

# ServerName gives the name and port that the server uses to identify itself.

# This can often be determined automatically, but we recommend you specify

# it explicitly to prevent problems during startup.

#

# If your host doesn't have a registered DNS name, enter its IP address here.

#

ServerName den.pc.ashlandfiber.net:80

 

#

# DocumentRoot: The directory out of which you will serve your

# documents. By default, all requests are taken from this directory, but

# symbolic links and aliases may be used to point to other locations.

#

DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

 

#

# Each directory to which Apache has access can be configured with respect

# to which services and features are allowed and/or disabled in that

# directory (and its subdirectories).

#

# First, we configure the "default" to be a very restrictive set of

# features. 

#

<Directory />

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    Deny from all

    Satisfy all

</Directory>

 

#

# Note that from this point forward you must specifically allow

# particular features to be enabled - so if something's not working as

# you might expect, make sure that you have specifically enabled it

# below.

#

 

#

# This should be changed to whatever you set DocumentRoot to.

#

<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">

Link to comment
https://forums.phpfreaks.com/topic/84579-solved-apache-configuration-questions/
Share on other sites

I tried changing those to make the root "c:/web site"

 

And now I get an error message when I try to start Apache:

 

OS 10048 Only one useage 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

To test to see if Apache is running properly make sure you go to http://localhost

 

That address will invoke Apache and you should either get a It Works message or a Index of page displayed. If you get either of the two mentioned then Apache is working fine. If you don't then make sure Apache is running via the Apache Service Monitor in the Taskbar.

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.