Server Name??
Posted by: [Oblivion] (---.mco.bellsouth.net)
Date: October 28, 2006 10:26PM

OK, because Im using WAMP5 (latest version of course) to test my site before I put it up on the web I need help changing the server name to somthing other then "localhost" is there any way to do this? Ive been looking for days and cant seem to find a sloution. I need to basicly make a compleat copy of the server bu on my computer.

Options: ReplyQuote
Re: Server Name??
Posted by: CyberSpatium (71.237.217.---)
Date: October 29, 2006 12:48AM

there is no reason to change server name unless you have your own domain name.

[httpd.apache.org]

CyberSpatium
English Forum Admin

Options: ReplyQuote
Re: Server Name??
Posted by: [Oblivion] (---.mco.bellsouth.net)
Date: October 29, 2006 01:03AM

Thats because I do have my own domain name.

Oh and I found a config file

wamp/phpmyadmin/config.inc.php

this config file is were you can change the server name but then you end up with an error on phpmyadmin saying the mysql didnt accept the connection to that server. Anyone know where i go next?

Options: ReplyQuote
Re: Server Name??
Posted by: yfastud (---.cable.mindspring.com)
Date: October 29, 2006 03:34AM

Hey CyberSpatium, congratulation for your new title!!!



Post Edited (10-29-06 05:31)

Have fun,

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

Options: ReplyQuote
Re: Server Name??
Posted by: CyberSpatium (71.237.217.---)
Date: October 29, 2006 08:10AM

ServerName is an Apache directive, not a phpMyAdmin setting.


CyberSpatium
English Forum Admin

Options: ReplyQuote
Re: Server Name??
Posted by: [Oblivion] (---.mco.bellsouth.net)
Date: October 29, 2006 07:45PM

ok pardon my noobish ways but this is driving me insaine. The change needs to be made in the "httpd.conf" file right?

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName localhost:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName off

so all id need to do is replace the "ServerName localhost:80" with the alternative value such as "ServerName newservername:80"??? @_@ did that but no change...

Options: ReplyQuote
Re: Server Name??
Posted by: CyberSpatium (71.237.217.---)
Date: October 30, 2006 10:48PM

just leave the server name as is, there is no reason to change it. any time you edit your httpd.conf file or php.ini file you need to restart apache for the new settings to take effect.


CyberSpatium
WAMP English Forum Administrator

Options: ReplyQuote
Re: Server Name??
Posted by: roms (---.fbx.proxad.net)
Date: November 08, 2006 11:00PM

To give you a answer and help you start having a solution :

- create a virtualhost for your domain name in httpd.conf (see the apache doc)
- add this domain name in your hosts file in windows and make it point to your localhost

I konw it's not very detailed help but it would take too long to explain everything and I'm sure that google will be more accurate then me ;-)



Romain

Options: ReplyQuote


Sorry, only registered users may post in this forum.