Problem using subdomains
Posted by: darkling235 (---.genesis.csps.com)
Date: February 15, 2008 08:38PM

I've been poking around with wamp for a few days now and am trying to enable subdomains. I uncommented the include statement for httpd.conf that includes http-vhosts.conf but when I do so the default subdomains defined by that file

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "/www/docs/dummy-host.localhost"
ServerName dummy-host.localhost
ServerAlias www.dummy-host.localhost
ErrorLog "logs/dummy-host.localhost-error_log"
CustomLog "logs/dummy-host.localhost-access_log common"
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.localhost
DocumentRoot "/www/docs/dummy-host2.localhost"
ServerName dummy-host2.localhost
ErrorLog "logs/dummy-host2.localhost-error_log"
CustomLog "logs/dummy-host2.localhost-access_log common"
</VirtualHost>

don't work. In point of fact that wamp server itself doesn't seem to work very well under those circumstances. I admit I'm very new at the whole concept this is the first time I've ever tried to work with subdomains so I may be overlooking something critical. Can anyone help me?
Thanks


EDIT:
Ok i have since discovered that apparently vhosts doesn't have anything to do with subdomains so I'm wrong from beginning to end. Can anyone explain how to set up subdomains on wamp?
Thanks



Edited 1 time(s). Last edit at 02/15/2008 08:54PM by darkling235.

Options: ReplyQuote
Re: Problem using subdomains
Posted by: yfastud (Moderator)
Date: February 15, 2008 09:31PM


Options: ReplyQuote
Re: Problem using subdomains
Posted by: darkling235 (---.genesis.csps.com)
Date: February 15, 2008 09:39PM

Yeah I tried that stuff but for some reason the sever refuses to start if the vhost include is uncommented. Any idea why that would be?

Options: ReplyQuote
Re: Problem using subdomains
Posted by: yfastud (Moderator)
Date: February 15, 2008 10:37PM

Make sure it has no space in front of that line when you uncomment and you must have all associated folders w/ your vh

Have fun,

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

Options: ReplyQuote
Re: Problem using subdomains
Posted by: darkling235 (---.genesis.csps.com)
Date: February 19, 2008 02:01PM

I've been trying to get this working. I uncomment
Include conf/extra/httpd-vhosts.conf
with no spaces, I checked but the server just stops as soon as it starts.

The logs are spectacularly unhelpful.

[Fri Feb 15 14:00:43 2008] [notice] Apache/2.2.6 (Win32) PHP/5.2.5 configured -- resuming normal operations
[Fri Feb 15 14:00:43 2008] [notice] Server built: Sep 5 2007 08:58:56
[Fri Feb 15 14:00:43 2008] [notice] Parent: Created child process 4880
[Fri Feb 15 14:00:43 2008] [notice] Child 4880: Child process is running
[Fri Feb 15 14:00:43 2008] [notice] Child 4880: Acquired the start mutex.
[Fri Feb 15 14:00:43 2008] [notice] Child 4880: Starting 250 worker threads.
[Fri Feb 15 14:00:43 2008] [notice] Child 4880: Starting thread to listen on port 80.
[Tue Feb 19 07:51:49 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Feb 19 07:51:49 2008] [notice] Child 4880: Exit event signaled. Child process is ending.
[Tue Feb 19 07:51:50 2008] [notice] Child 4880: Released the start mutex
[Tue Feb 19 07:51:51 2008] [notice] Child 4880: Waiting for 250 worker threads to exit.
[Tue Feb 19 07:51:51 2008] [notice] Child 4880: All worker threads have exited.
[Tue Feb 19 07:51:51 2008] [notice] Child 4880: Child process is exiting
[Tue Feb 19 07:51:51 2008] [notice] Parent: Child process exited successfully.



So basically I have no way of debugging the problem. IS there a way of getting better verbose errors out of wamp? Thanks

Options: ReplyQuote
Re: Problem using subdomains
Posted by: yfastud (Moderator)
Date: February 19, 2008 03:29PM

Quote

you must have all associated folders w/ your vh
you should check Setup Virtual Host on my personal website

Have fun,

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

Options: ReplyQuote
Re: Problem using subdomains
Posted by: darkling235 (---.genesis.csps.com)
Date: February 19, 2008 03:40PM

I do have all those folders and I did follow the tutorial but something isn't right and the server won't start. Is there anyway of getting verbose information out of the logs (as opposed to I started, I stopped) so I can debug the problem and figured out what piece isn't done correctly.

Options: ReplyQuote
Re: Problem using subdomains
Posted by: rkm519 (---.dyn.grandenetworks.net)
Date: February 20, 2008 06:07PM

Directive errors (problems in your conf file) and missing or invalid directories are NOT recorded in the error.log I struggled with this same problem when I tried installing WAMP and Subversion. I kept looking for problems in error.log, then I remembered how I found directive errors in Unix and that is to invoke the httpd daemon (service in Windows) manually. Here is how I did this with WAMP. Obviously your service cannot be running to do this and it won't be if you have directive errors.

Move to your Apache binaries directory
C:> cd \wamp\bin\apache\apache2.2.6\bin
Invoke the httpd daemon
C:> httpd.exe

Now, the daemon will report errors in the directives to your screen before it terminates. If everything is good, then the service starts and I press Control+C or Control+Break to terminate it, then start it with the WAMP systray icon.

Hope this helps.

Russell - Corpus Christi, Texas



Edited 1 time(s). Last edit at 02/20/2008 06:08PM by rkm519.

Options: ReplyQuote


Sorry, only registered users may post in this forum.