Help... Setting Up An Intranet Site Using Wamp
Posted by: omalic1 (---.atodared.com)
Date: July 03, 2008 11:13AM

I have read and followed the help provided on this site as well other that refers to Intranet setup using Wamp server but I can't seem to get it working. Pls Pls Pls can someone help as I have been working on this for the last two days and its doing my head in. Many thanks in advance.

These are the settings which I've created on the Wamp server that will be access across the network.

In the httpd file, I have Remove the hush from the line second line of after the Virtual hosts

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

To setup the domain, in the httpd-vhosts file, I have create this

<VirtualHost *:80>
ServerName MathewBrown
ServerAlias MathewBrown
DocumentRoot "C:/wamp/www/MathewBrown"
ErrorLog "C:/wamp/www/MathewBrown/logs/error.log"
CustomLog "C:/wamp/www/MathewBrown/logs/access.log common"
<Directory "C:/wamp/www/mathewbrown/">
Options FollowSymLinks
AllowOverride all
Order Allow, Deny
Allow all
</Directory>
</VirtualHost>


<VirtualHost *:80>
ServerName DevServeWeb
DocumentRoot "C:/wamp/www"
ErrorLog "C:/wamp/www/logs/error.log"
CustomLog "C:/wamp/www/logs/access.log common"
<Directory "C:/wamp/www/mathewbrown/">
Options FollowSymLinks
AllowOverride all
Order Allow, Deny
Allow all
</Directory>

</VirtualHost>


In the hosts file, I have added this.


127.0.0.1 localhost
127.0.0.1 MathewBrown
127.0.0.1 DevServeWeb


In my phpmyadmin file, these have been added

<Directory "c:/wamp/apps/phpmyadmin2.11.6/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Allow from 127.0.0.1
Allow from 192.168.2.102
</Directory>


<Directory "C:/wamp/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Allow from 127.0.0.1
Allow from 192.168.2.102
</Directory>

<Directory "C:/wamp/www/MathewBrown/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Allow from 127.0.0.1
Allow from 192.168.2.102
</Directory>

Computers which will be accessing the server,
their hosts file have been changed to this.

127.0.0.1 localhost
192.168.1.100 MathewBrown
192.168.1.100 DevServeWeb

Where have I gone wrong

Options: ReplyQuote
Re: Help... Setting Up An Intranet Site Using Wamp
Posted by: toivo (---.nsw.bigpond.net.au)
Date: July 03, 2008 12:40PM

Hi,

What is working and what is not working?

Did you make a backup of the original settings? It is a good idea because then you can make only a few changes, see if that works and go back if you have problems.

If you want to limit the access to particular IP addresses or subnets, use the following directives:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.2.102

When you mention phpMyAdmin file, do you mean the file c:\wamp\alias\phpmyadmin.conf? There is no need to add folders to that file because you create databases for your websites by using phpMyAdmin and they do not need to know about directories. When you install an application, you tell the installer the name of the database and you have to have created a database user with rights to access the database.

Your document folders seem to overlap. If you are setting up two websites, you can store them anywhere like D:\www, to keep the structure tidy and easy for backups. I usually store all the logfiles in c:\wamp\logs to see all of them in one place.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: Help... Setting Up An Intranet Site Using Wamp
Posted by: yfastud (Moderator)
Date: July 03, 2008 03:28PM

Quote

<Directory "C:/wamp/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Allow from 127.0.0.1
Allow from 192.168.2.102
</Directory>

<Directory "C:/wamp/www/MathewBrown/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Allow from 127.0.0.1
Allow from 192.168.2.102
</Directory>

Quote

Computers which will be accessing the server,
their hosts file have been changed to this.

127.0.0.1 localhost
192.168.1.100 MathewBrown
192.168.1.100 DevServeWeb
1. Based on your setups, you don't need to put those directory in vh.
2. This "192.168.1.100 MathewBrown" in second quote does not match the addresses are allowed in first quote

Quote

Allow from all
Allow from 127.0.0.1
Allow from 192.168.2.102
This setup is conflict

For simple solution, just follow my step by step instruction guide precisely here

[guides.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.