LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-04-2010, 10:34 AM   #1
didland
LQ Newbie
 
Registered: Aug 2009
Posts: 27

Rep: Reputation: 0
Question Transporting a Joomla website to a virtual server


Hi. I've got a Joomla website made for me. It is hosted with a hosting company. Here and there i change some of its content, but i want to practice it locally on my computer before i do bigger things on the web, so that if things get into a serious problem it is close at hand to fix it up. I've installed apache2 php5-mysql libapache2-mod-php5 mysql-server on my Ubuntu 10.04 desktop. also, I've installed Joomla up and running. my question is: how do i transport/copy my website from the web into my computer?
I know that I need to transfer the database, where do i put it in my local file system, and what additional commands are required for that?
I know that I need to transfer the public_html, where do i put it in my local file system, and what additional commands are required for that?
Thanks for any help.
 
Old 12-04-2010, 12:13 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I know that I need to transfer the database, where do i put it in my local file system, and what additional commands are required for that?
How do you access mysql currently? If you have command line access, mysqldump should be able to create a sql file containing all the data and commands to create a copy on your local mysql copy.

Quote:
I know that I need to transfer the public_html, where do i put it in my local file system, and what additional commands are required for that?
You should just be able to create a tarball of your existing site and then unpack it on your server somewhere where Apache can see it. You'll probably have to adjust your Apache httpd.conf file to point to it or use virtual hosts if you want more than one website on your local machine. Once you've transferred the site, you'll probably also have to mess with the Joomla config file (configuration.php) to make changes like users and passwords.
 
Old 12-06-2010, 12:29 PM   #3
didland
LQ Newbie
 
Registered: Aug 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks for helping. Please, I need more specific details: where is the folder on my computer where i need to place the sql file that i download from my website? [give full path, I'm very much a newbie in these things of virtual server, Apache and all that].
Quote:
You should just be able to create a tarball of your existing site and then unpack it on your server somewhere where Apache can see it.
where to unpack the tarball? please, full, absolute path to that folder.
thank you.
 
Old 12-06-2010, 01:23 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Thanks for helping. Please, I need more specific details: where is the folder on my computer where i need to place the sql file that i download from my website?
The .sql file can be anywhere, it doesn't matter. The .sql file is something you use to create a copy of the database, by itself, the .sql file can't do anything. You might want to read this to get a better idea of what is created by mysqldump and how to use the file.
Quote:
where to unpack the tarball? please, full, absolute path to that folder.
I can't do that because I don't know how your web server is set up. Basically, Apache has a document root directory (frequently something like /var/www/htdocs) and that is where you would unpack the tarball. You'll have to consult your Apache config file to find out what the DocumentRoot is.

One more thing: Since you aren't familiar with this stuff, you really, really, really don't want to expose this site to the Internet. Joomla has its share of security problems, so either start learning about securing your copy of the site or make sure that you have a firewall in place to prevent access to Apache.
 
Old 12-07-2010, 08:11 AM   #5
didland
LQ Newbie
 
Registered: Aug 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks for helping. I've found on the Internet the simple, friendly looking xampp. it has a simple GUI interface to import sql files, and seems to be able to give a shortcut from learning a lot regarding server files. but when i try to install it I run into a problem, when i reach the stage
Code:
/opt/lampp/lampp start
i get the message:
Code:
dedi@dedi-laptop:~$ sudo /opt/lampp/lampp start
[sudo] password for dedi: 
Starting XAMPP for Linux 1.7.3a...
XAMPP: Another web server daemon is already running.
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.
dedi@dedi-laptop:~$
and the Xampp window won't open up. Another [the earlier] server daemon is interfering, I've tried to apt-get autoremove it [on my Netbook only, as a test, on my Desktop the earlier packages are still going] but to no avail, a residue remains. I've tried to install, test Xampp on an Ubuntu Live Cd, it installs and works very well. How can I completely remove- without any residue the apache2 php5-mysql libapache2-mod-php5 mysql-server that i have on my computer? [so i can Install Xampp all over again]. thanks for any help.
 
Old 12-07-2010, 09:16 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I've tried to install, test Xampp on an Ubuntu Live Cd, it installs and works very well. How can I completely remove- without any residue the apache2 php5-mysql libapache2-mod-php5 mysql-server that i have on my computer? [so i can Install Xampp all over again]. thanks for any help.
I guess I'd use Synaptic to remove those packages. That is the way Ubuntu usually works.

Quote:
Thanks for helping. I've found on the Internet the simple, friendly looking xampp. it has a simple GUI interface to import sql files, and seems to be able to give a shortcut from learning a lot regarding server files. but when i try to install it I run into a problem, when i reach the stage
As you've noticed from your errors, xampp is installing the same software that is already there. Instead of installing xampp, you might consider using what Ubuntu has already installed and just install the extra xampp software like phpMyAdmin. You can install that through Synaptic as well. The benefit of using Ubuntu over xampp is that it should be easier to maintain through the normal Ubuntu update mechanisms.
 
1 members found this post helpful.
Old 12-07-2010, 09:49 AM   #7
didland
LQ Newbie
 
Registered: Aug 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks.
Quote:
just install the extra xampp software like phpMyAdmin.
yes its works. I Installed only the phpMyAdmin through Synaptic and it is up and running.
Thanks a lot.
 
Old 12-10-2010, 02:07 AM   #8
keithwilliams
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by didland View Post
Hi. I've got a Joomla website made for me. It is hosted with a hosting company. Here and there i change some of its content, but i want to practice it locally on my computer before i do bigger things on the web, so that if things get into a serious problem it is close at hand to fix it up. I've installed apache2 php5-mysql libapache2-mod-php5 mysql-server on my Ubuntu 10.04 desktop. also, I've installed Joomla up and running. my question is: how do i transport/copy my website from the web into my computer?
I know that I need to transfer the database, where do i put it in my local file system, and what additional commands are required for that?
I know that I need to transfer the public_html, where do i put it in my local file system, and what additional commands are required for that?
Thanks for any help.
If you have xampp up and running on your home PC, copying a complete Joomla site could not be easier. I have done it a few times.

What you need is Akeeba backup software. This makes a complete back up of the whole site including databases, all you need to do then is download the backup onto your PC and run Kickstart on it which will interactively install joomla and your site. Akeeba is easy to install and use and has very comprehensive documentation. https://www.akeebabackup.com/ I use it not just for the moves between servers but also to make daily backups of my sites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Joomla! 1.5: A User's Guide plus Fundamentals of Joomla! Video LXer Syndicated Linux News 0 10-26-2009 11:00 AM
joomla cant detect mysql server farid_lmu Linux - Server 6 03-04-2009 08:12 AM
joomla website compromised ? farslayer Linux - Security 14 12-29-2008 10:45 PM
Which database for Joomla website? LinuxSeeker Linux - Networking 2 07-09-2006 04:14 PM
Transporting files to other OS mayank_a Linux - General 1 10-08-2005 01:51 AM

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

All times are GMT -5. The time now is 12:27 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