Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2010, 10:34 AM
|
#1
|
LQ Newbie
Registered: Aug 2009
Posts: 27
Rep:
|
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.
|
|
|
12-04-2010, 12:13 PM
|
#2
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
12-06-2010, 12:29 PM
|
#3
|
LQ Newbie
Registered: Aug 2009
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
12-06-2010, 01:23 PM
|
#4
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
12-07-2010, 08:11 AM
|
#5
|
LQ Newbie
Registered: Aug 2009
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
12-07-2010, 09:16 AM
|
#6
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
12-07-2010, 09:49 AM
|
#7
|
LQ Newbie
Registered: Aug 2009
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
12-10-2010, 02:07 AM
|
#8
|
LQ Newbie
Registered: Apr 2010
Posts: 5
Rep:
|
Quote:
Originally Posted by didland
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
|
|
|
All times are GMT -5. The time now is 09:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|