Copying LIVE JOOMLA 2.5 site to Ubuntu LAMP - Joomla! Forum - community, help and support


after having searched various sites/forums thought might provide
a quick practical guide copying live joomla 2.5.4 site localhost development.
this guide based on fresh install of ubuntu 10.04 lts , new installation of
lamp running on i86 32 bit machine. however, guide apply linux distros.
it assumed know how use ftp transfers such filezilla etc , both local phpmyadmin , live phpmyadmin.
also note shell commands used in 'super user - root' mode.

the live site referred my_site.com.

transferring my_site.com lamp.
we placing our local my_site.com apache2's /var/www directory.
this alow access our site using http://localhost/my_site.com
in our browser when have finished.

using ftp download files my_site.com directory home directory.
in filezilla accomplished right clicking my_site.com , downloading.
in home directory have /my_site.com directory files.
copy these files apache2 www directories;

cp -r my_site.com /var/www/my_site.com

now, @ point need copy of our live database.
go live phpmyadmin
export joomla database home directory later use.
note file have name of format blahblah_jo.sql guide call databasestuff_jo.sql

we ready our local site , running lamp.

before importing our database via our local phpmyadmin, ( databasestuff_jo.sql - or whatever name yours ), we must make slight change php.ini allow large file uploads.
check size of databasestuff_jo.sql file.
edit php.ini file;

cd /etc/php5/apache2

gedit php.ini or whichever editor prefer - nano? vi?

change line
upload_max_filesize

to larger datastuff_jo.sql file, eg:
upload_max_filesize = 4m

my database @ time of downloading 3 meg php.ini only
upload_max_filesize = 2m

save php.ini
restart apache2 reflect php.ini changes via

/etc/init.d/apache2 restart

bring local phpmyadmin located @ http://localhost/phpmyadmin

now create new database name of downloaded database

ie - databasestuff_jo - or name of exported/downloaded database without extension.

this new database empty.
select it.
cllick on import

browse home directory , click on databasestuff_jo.sql - or whatever name yours - downloaded earlier.

we need change configuration.php in my_site.com directory
to reflect our lamp installation - mysql.

cd /var/www/my_site.com

edit configuration.php file , make changes relate live site such as;

change lines to;

public $host = '127.0.0.1';
public $user = 'root';
public $password = 'your_password';
public $db = 'databasestuff_jo'; or database name above
public $live_site = '';

and

public $ftp_host = '127.0.0.1';
public $ftp_port = '21';
public $ftp_user = '';
public $ftp_pass = '';
public $ftp_root = '';
public $ftp_enable = '0';

and

public $log_path = '/var/www/my_site.com/logs';
public $tmp_path = '/var/www/my_site.com/tmp';

then save.

site is;
http://localhost/my_site.com/
admin is;
http://localhost/my_site.com/administrator/


my site uses large number of modules joomla extensions.
one gave me problem when running locally nanopiecemaker2 module.
the error write permissions file piecemakerxml81.xml

fix was;
cd /var/www/my_site.com/modules/mod_nanopiecemaker2/xml
this piecemakerxml81.xml is!

chmod 777 piecemakerxml81.xml

fixed!

although few assumptions linux knowledge have been assumed hope guide point in right direction.

really guide.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support