Below are few ways by which we can copy a website from local to remote server.
Upload all files using FTP such as filezilla or winscp just select all files from directory and upload it to remote host HTML directory for domain. Also another way is you can use Linux command line to upload a compressed file in zip or tar format. Create an archive file using below command line.
zip -r myjoomlaproject.zip /path_to_joomla
And upload this archive file to remote server and there you need to extract an archive file using below command.
unzip myjoomlaproject.zip
Next is to copy the local database content to Host mysql database.this will be done by creating an export file on local systema nd importing that file into your Host mysql database. Another way is you do this with the help of command line by creating a database copy using below command.
mysqldump -u user -p dbname > db-name.out
Next step is to configure the site which will be done in configuration.php file where you need to set the tmp path,log path and database credentials of your server.
Alternate way to move a site is by using Akeeba backup.It can take backups automatically
Install akeeba backup extension which produce .jpa file which contain all folders,files,database files and installer.Now you need to use kickstart to extract your backup archive which extract the .jpa file and then run the installer which also provides you the option to change configuration setting to restore onto different location.
0 Comment(s)