Launching / Hosting Websites
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 09, 2009 02:32AM

I have installed the newest wampserver on windows xp pro, and I setup my zoneedit dns, could you tell me how to have more then one website up and running on wampserver at the same time, and also what folders each public_html must be in to operate correctly. And how to Install each data base into MySQL using the following
websites as an example.

www.firstwebsite.com, www.secondwebsite.com, www.thirdwebsite.com


Randy

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: toumimi (---.222.115-78.rev.gaoland.net)
Date: August 09, 2009 02:38AM

You must use virtual hosts ("vh" or "vhost" ).
To achieve this, you can use online documentation or follow JLBN guides.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com



Edited 1 time(s). Last edit at 08/09/2009 02:39AM by toumimi.

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 09, 2009 03:08AM

Okay, when does the bus stop?


You lost me....

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: toumimi (---.222.115-78.rev.gaoland.net)
Date: August 09, 2009 03:12AM

Quote

how to have more then one website up and running on wampserver at the same time

Solution : Virtual hosts = several hosts on the same computer (web server)
You must configure apache to work with virtual hosts and also server names of your desired websites.

You should read given links above...

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 09, 2009 03:21AM

I saw that part but it doesn't tell how to install Mysql Data base for more then one website that is using a shoping cart or paypal payments.

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: toumimi (---.222.115-78.rev.gaoland.net)
Date: August 09, 2009 03:33AM

You can have more than one website using a folder for each one (project in wamp homepage).
For each project, you can define a database and username/password (or more but its rare).
You can use the same database if you want, with different table if you want, but first solution is prefered..

You should use phpmyadmin to manage all your databases and to import datas if you got some.

Vhosts are use to simulate access as if you got real domain names.
For example, you can have google.com as vhost.
Note that you should not use www.google.com as server name because you would be able to access the real website.

So, to configure databases, use phpmyadmin and create several databases and users (in privileges tab) and that's it. You will see later if you want to use virtual hosts or not..

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 09, 2009 03:37AM

What are WampServer Patch (Screenshots) ?

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: toumimi (---.222.115-78.rev.gaoland.net)
Date: August 09, 2009 03:53AM

WampServer Patch is a patch I have develop to add functionnalities to Wamp menu.
You can access the home page here : WampServer Patch
You can have a quick overview with screenshots or in the dedicated topic

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 09, 2009 03:55AM

could you email me an example of the following files to edit:

httpd.conf, httpd-vhosts.conf, and hosts

also at what point do I put wampserver online?

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: toumimi (---.222.115-78.rev.gaoland.net)
Date: August 09, 2009 04:11AM

In httpd.conf, simply uncomment (#) this line : Include conf/extra/httpd-vhosts.conf

In hosts file (windows/system32/drivers/etc/hosts), add a line per project with ip and name (like dns)
127.0.0.1 localhost
127.0.0.1 mywebsite1.com
127.0.0.1 mywebsite2.com

In httpd-vhosts.conf (wamp\bin\apache\apache_version\conf\extra), add a section per project.
Here is an extract from the guide to put in that file :

<VirtualHost *:80>
ServerName mywebsite1.com
DocumentRoot C:/wamp/www/project1
ErrorLog C:/wamp/www/project1/logs/error.log
CustomLog C:/wamp/www/project1/logs/access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName mywebsite2.com
DocumentRoot C:/wamp/www/project2
ErrorLog C:/wamp/www/project2/logs/error.log
CustomLog C:/wamp/www/project2/logs/access.log common
</VirtualHost>

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

Then to put wampserver online, right click on wamp menu and use "Put online".
You must also allow wamp to go through your router by opening port 80 (manipulation depending of your router).
You should not be able to access your wamp using your wan ip but others should.
To be sure, use an online service to access your url and tel you if it can join your server (ex: [validator.w3.org] ).

As I am not a specialist in virtual hosts, you should follow the guide to get more information if needed and add comments on it if you are missing something..

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 09, 2009 04:21AM

Thank You I will try the above Thanks Again...

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 09, 2009 05:46AM

In the following was your example:

<VirtualHost *:80>
ServerName mywebsite1.com
DocumentRoot C:/wamp/www/project1
ErrorLog C:/wamp/www/project1/logs/error.log
CustomLog C:/wamp/www/project1/logs/access.log common
</VirtualHost>


And I put the following:

<VirtualHost *:80>
ServerName fudge.com
DocumentRoot C:/wamp/www/fudge
ErrorLog C:/wamp/www/fudge.com/logs/error.log
CustomLog C:/wamp/www/fudge.com/logs/access.log common
</VirtualHost>


Dose the above for www.fudge.com look right?


I got the following error when I tried to click on wampserver in the right hand corner and click on Put Online



could not execute menu item (internal error) [Exception] Could not perform service action: The service has not ben started


Randy

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Launching / Hosting Websites
Posted by: toumimi (---.222.115-78.rev.gaoland.net)
Date: August 09, 2009 06:10AM

Quote

<VirtualHost *:80>
ServerName fudge.com
DocumentRoot C:/wamp/www/fudge
ErrorLog C:/wamp/www/fudge.com/logs/error.log
CustomLog C:/wamp/www/fudge.com/logs/access.log common
</VirtualHost>

ErrorLog is used to set where errors will be logged (default wamp/logs/php_errors.log).
To get an error file per website (which is a good pratice), we indicate that we want to save errors in our project folder. So, if your folder is fudge (set in DocumentRoot then, don't change the folder in other path (ErrorLog, CustomLog), and I think you have to manually create logs folder into your projects folder.

It should be :
<VirtualHost *:80>
ServerName fudge.com
DocumentRoot C:/wamp/www/fudge
ErrorLog C:/wamp/www/fudge/logs/error.log
CustomLog C:/wamp/www/fudge/logs/access.log common
</VirtualHost>

Then, if you get this error in wamp, problem is that Apache service is not started.
So, go into wamp menu -> Apache -> Service -> Start Service.
If you could not, then check apache error log, but since it would be a config error, you shouldn't see it sad smiley

When Apache is started, try to open your projects from ther servername
Example : Type 'http://fudge.com/' to open 'C:/wamp/www/fudge/index.php'
Note that for each modification in http_vhosts file you MUST restart Apache service.

If you can see your index page then you can try to put wamp online.

I'm going to sleep and hope that you will success in putting wamp online cool smiley

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.