I am running LAMP config on CentOS 5.6
Now, the question is how do I add a domain name to the server? I have already pointed the domain name to the server.
I think the next steps would be something like this.
- Create a user on centos
- Create a folder for the domain name within that users directory
- Create a virtual host on apache pointing the directory to the users directory
- Add content to the directory of the domain name specified in the virtual host
- Voila! A new domain name created.
Am I missing something from the list? Also, any other methods to do this or just use ssh?
You create a user, then you create a domain directory and put your files in there, then you add a virtual domain to apache and restart apache and that should be it.
Obviously dont forget to setup your dns or ask your hosting to set it up for you.