Virtual Host additions crash Apache
Posted by: rabidjade (---.om.om.cox.net)
Date: September 28, 2007 05:34AM

I am moving all of my stuff to a new computer and have installed 1.7.3. The older server had 1.7.0.

I started off by copying my virtual host modules from the old httpd.conf to the new one. This is how it looked:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.website1.com
ServerAlias website1.com
DocumentRoot "c:\wamp\www\website1"
ErrorLog "c:\wamp\logs\website1\error.log"
CustomLog "c:\wamp\logs\website1\access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerName website2.com
ServerAlias *website2.com
DocumentRoot "c:\wamp\www\website2"
ErrorLog "c:\wamp\logs\website2\error.log"
CustomLog "c:\wamp\logs\website2\access.log" common
</VirtualHost>

Restarting WAMP gives me a memory read error and a Apache won't start with this configuration so I enabled the httpd-vhosts.conf file and put the VH information into there with the same result. I made sure the proper log files and directories were created. I remove the VH information and WAMP starts just fine. I remember going from a previous version to 1.7.0 I had to revamp how the directories looked in the VH modules so maybe that is the issue now.

I even checked out the WAMP5 manual I found on these forums and used the following code from the manual:

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

What am I doing wrong?

Options: ReplyQuote
Re: Virtual Host additions crash Apache
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 28, 2007 07:10AM

if you had read my manual you would have noticed that you need to change those settings to match your computer. ServerName www.website1.com to your actual domain name, and DocumentRoot "c:\wamp\www\website1" to the actual location to your website file,etc.


10:10 PM 9/27/2007CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my WAMP User Manual/Guide here!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote
Re: Virtual Host additions crash Apache
Posted by: rabidjade (---.om.om.cox.net)
Date: September 28, 2007 07:12AM

They are my actual web site/directory names on the server. That would be common sense. I just changed the names so this thread doesn't pop up in a google search for my web site.

edit: I got it working now. Now to figure out the phpmyadmin root password



Post Edited (09-28-07 07:46)

Options: ReplyQuote
Re: Virtual Host additions crash Apache
Posted by: yfastud (---.cable.mindspring.com)
Date: September 29, 2007 01:48AM

Check Setup Password section on my site

Have fun,

[www.jlbn.net] (Basic Guide for WAMP and Add-ons)

Options: ReplyQuote


Sorry, only registered users may post in this forum.