LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Virtual Hosts and CentOs 5 (https://www.linuxquestions.org/questions/linux-server-73/virtual-hosts-and-centos-5-a-752293/)

viziony 09-03-2009 01:07 AM

Virtual Hosts and CentOs 5
 
I am trying to become more familiar with LAMP. A lot of information to sniff through. I am trying to setup a staging server, a VM host using FUSION. I am trying to replicate the site that I am now apparently managing. I wanted to make offline changes which not effect the actual site, so here I am.

I currently set up CentOS 5 with MySql, PHP, and Apache installed. I cannot figure out how to actually start creating the actual site to copy all the source code and data to.

on the actual LIVE server I have directories within /var/www/vhosts/website.com/httpdocs, currently on the STAGING server all I have is /var/www. My question do I have to manually create the directory within there? If I had Plesk or cPanel, would that have automatically created it using the web interface?

I am trying to learn more, I thought I asked. I have scoured the net for an answer, but I guess not enough so I thought I would post this question here on this forum and keep on hunting.

kbp 09-03-2009 01:42 AM

Hi visiony,

If the live platform is using the same versions of everything as staging you should be ok :

- rsync /var/www across
- replace your httpd.conf or /etc/httpd/conf.d/*
- copy the MySql database and my.cnf over
- copy php.ini over

.. I think that's about everything

HTH

kbp

viziony 09-03-2009 10:55 PM

Thanks for the reply and help KBP.

What about the virtual hosts? How would I tell apache that www.blahblah.com is hosted on this server?


All times are GMT -5. The time now is 03:24 PM.