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.
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?
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...
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.
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 ;-)