Help with apache
Posted by: mukilan (---.216.22.125.airtelbroadband.in)
Date: December 02, 2006 05:52PM

I just installed Wamp 1.6
I couldnt get my Apache sever to start while the mysql server has started
I dont use any firewall or antivirus
My modem is an adsl beetel 220bx and i have forwarded the port 80 already
it starts when i use the default conf file but refuses when i modify to use a virtual host

here is what i have done
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
#### locahost ####
#

<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot C:/wamp/www
ServerName localhost
ErrorLog C:/wamp/apache2/logs/error.log
CustomLog C:/wamp/apache2/logs/access.log common
<Directory "C:/wamp/www">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

#
#### www.mysite.com####
#

<VirtualHost *:80>
ServerAdmin admin@www.mysite.com
DocumentRoot c:/wamp/users/www.mysite.com/public_html
ServerName www.mysite.com
ServerAlias mysite.com
ErrorLog c:/wamp/users/www.mysite.com/logs/error.log
CustomLog c:/wamp/users/www.mysite.com/logs/access.log common
<Directory "c:/wamp/users/www.mysite.com/public_html">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>



Include "c:/wamp/apache2/conf/alias/phpmyadmin.conf"
Include "c:/wamp/apache2/conf/alias/sqlitemanager.conf"



Post Edited (12-02-06 18:41)

Options: ReplyQuote
Re: Help with apache
Posted by: dEUS101 (---.access.telenet.be)
Date: December 02, 2006 06:45PM

You should set your second vhost to port 81. There cannot be two websites with the same port smiling smiley ( Be sure to forward port 81 aswell...)

If you use multiple websites, set the ports the server has to listen to.

I.E.:

now open up your httpd.conf file in notepad. find
Listen 80

below it add:
Listen 81

(From the tutorial by Yfastud)

I suggest you read this tutorial smiling smiley @ [forum.wampserver.com]

Cheers,
dEUS



Post Edited (12-02-06 18:46)

Options: ReplyQuote
Re: Help with apache
Posted by: yfastud (---.mia.bellsouth.net)
Date: December 02, 2006 07:09PM

Thanks dEUS101 for mentioning my old post, but actually it depends on whether you have real domain and dns or not. If yes, use only one port 80, and if not, of course you have to setup different ports so all your sites can work the same time.

Sorry guys, due to the purpose of wampserver is for developers, not for productions, so I've removed the section to setup vh for worldwide accessible in that old post.

To mukilan, if mysite.com is a real domain, and you substitute for anonymous name to use in forum, you can leave the port 80 as is. However, base on your setup, you don't really need this part for each vh setup

<Directory ".......................................................">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>

So your vh setup can be like this

# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
#### locahost ####
#

<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot C:/wamp/www
ServerName localhost
ErrorLog C:/wamp/apache2/logs/error.log
CustomLog C:/wamp/apache2/logs/access.log common
</VirtualHost>

#
#### www.mysite.com####
#

<VirtualHost *:80>
ServerAdmin admin@www.mysite.com
DocumentRoot c:/wamp/users/www.mysite.com/public_html
ServerName www.mysite.com
ServerAlias mysite.com
ErrorLog c:/wamp/users/www.mysite.com/logs/error.log
CustomLog c:/wamp/users/www.mysite.com/logs/access.log common
</VirtualHost>



Post Edited (12-02-06 19:10)

Have fun,

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

Options: ReplyQuote
Re: Help with apache
Posted by: mukilan (---.65.22.125.airtelbroadband.in)
Date: December 03, 2006 03:04AM

thanks for your response,but i figured out that the problem was caused because i misspelt my folder name,
Now Apache starts fine, but when i try to go to my website from firefox or ie,i goes to my
ROUTERS login page
It is an beetel 220bx with my isp' username and password inbuilt in it
I have a dynmaic ip address so i use EveryDNS.net to point to my ip address



Post Edited (12-03-06 03:06)

Options: ReplyQuote
Re: Help with apache
Posted by: yfastud (---.mia.bellsouth.net)
Date: December 03, 2006 03:29AM

check my old post for port forward
[forum.wampserver.com]

Options: ReplyQuote
Re: Help with apache
Posted by: mukilan (---.6.144.59.airtelbroadband.in)
Date: December 03, 2006 03:53AM

it doesnt help

Options: ReplyQuote
Re: Help with apache
Posted by: yfastud (---.mia.bellsouth.net)
Date: December 03, 2006 06:47AM

every router has little different setup but still has same feature, so in my old post I only give you the idea and you have to figure out to do it w/ your router, and it should work if doing it right.

Options: ReplyQuote
Re: Help with apache
Posted by: mukilan (---.66.22.125.airtelbroadband.in)
Date: December 03, 2006 07:39AM

i tried evry thing by doing a lot of search and research on the net .But couldnt get it to work

Options: ReplyQuote
Re: Help with apache
Posted by: yfastud (---.mia.bellsouth.net)
Date: December 03, 2006 06:53PM

I've been installing wamp for friends in more than 50 units, and I think the easiest router to setup is Netgear.

Besides, I know for sure that some isp already routed the signal before coming to you. I'm personally working on 1 of this type, so either you have to convince your isp give it to you w/o MENTION about web server or find another way around which I'm still working on.

In addition, check this post in which I'm trying my best to help a new wampserver user and in the end he found out that he made a little mistake

[forum.wampserver.com]



Post Edited (12-03-06 18:55)

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.