LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2009, 01:07 AM   #1
viziony
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
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.
 
Old 09-03-2009, 01:42 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
Old 09-03-2009, 10:55 PM   #3
viziony
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5/ Apache2 and Virtual hosts metallica1973 Linux - Networking 8 08-13-2008 08:57 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
Help with Virtual Hosts? econnections Linux - Newbie 3 07-02-2005 12:39 PM
Virtual Hosts Zam Linux - Newbie 5 03-18-2003 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration