Elxis CMS Forum

Support => Technical support => Topic started by: ROUBOS on October 22, 2009, 19:46:48

Title: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 22, 2009, 19:46:48
I have not installed Elxis on the webserver and worked on that. Instead I've been using apache on my computer to develop the site.
Now its time to upload the site.

Should be simple enough... just don't want to make a mistake.

I guess uploading the files (FTP) and then trying to fix the database connection in the cPanel is the way... right?

thanks in advance
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ks-net on October 22, 2009, 22:59:31
1- copy files via ftp (preserve permissions)
2- install-update db (first fix paths urls ...search for them in text-editor)
3- update configuration.php (fix paths urls etc)
4-  softdisk =>update-system

hope not missing something....

you can do an updiag-check to be sure that all files are there

Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 27, 2009, 18:59:56
will try,
hope I don't stuff it up. I should upload to a sub directory on the server.

Will it be easier if I install from scratch on the server? (but then I'll have to set the pages up again)


softdisk =>update-system ---- ????? how do I do that? what's softdisk ?
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 27, 2009, 19:32:02
or is it easier to just fto through the administrator?
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ks-net on October 27, 2009, 20:32:49
administrator/component/softdisk/update-sytem

Quote
will try,
hope I don't stuff it up. I should upload to a sub directory on the server.
try as many times as you want.. your local site will always be there..
upload to any dir you want... but if you want to have this as your primary site for you domain then upload to the root

do as says here:
http://wiki.elxis.org/wiki/Move_Elxis_from_a_sub-dir_to_the_root_dir
is the same process.. the only difference that the root dir this time is in a public server

use ftp to upload
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 27, 2009, 20:53:32
thank you.
will do it tonight and keep you informed here.

thanks again
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 28, 2009, 00:32:17
OK, how is the database uploaded? is it sitting in the elxis folder? so when i upload the elxis folder everything gets uploaded?

OK I have uploaded the site into a subfilder on the server (" /httpdocs/subfolder/ "). I edited the configuration.php as per this: http://wiki.elxis.org/wiki/Move_Elxis_from_a_sub-dir_to_the_root_dir

Now how do I upload the database? How do I backup the database on the local machine?

The server is using a Plesk control panel.

Sorry, but could someone explain the process in detail?

thanks and sorry if this seems so stupid
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ks-net on October 28, 2009, 01:38:27
at your cpanel create db and  with your server's phpmyadmin import the file that you have previously export from your local db through your local phpmyadmin.

before importing the db open with text editor and modify paths urls etc..
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 28, 2009, 01:45:20
So I need to install phpMyAdmin onto the online server as well .... ?

any particular options required in order to export the db properly? or default ok?
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ks-net on October 28, 2009, 01:49:14
default usually is ok... you will immediately see it, if it is not ok!


99% cpanels out there have a phpmyadmin, which cpanel is?

Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 28, 2009, 01:49:59
its the Plesk Control Panel 8.6

and were do I find the exported database?

I selected my database to export, I left all option as they were, and hit go...
I got a phpMyAdmin SQL Dump in the form of a text file shown in the browser.. where do i go from there?

OK i created a database on the server, created a user for it and now can access the phpMyAdmin so I should be able to import the db.
Where does the exported DB go? and to i ftp it to a folder in the server?
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ks-net on October 28, 2009, 01:58:19
in plesk it is called as DBwebadmin
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 28, 2009, 02:22:32
sorry did not check "save as file"
sorry... must be the time of the night and the bacardi breezer ...  ::)
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ROUBOS on October 28, 2009, 02:32:26
oops got an error when importing

character set error
CREATE DATABASE `mydatabase` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;


MySQL said: 
#1007 - Can't create database 'mydatabase'; database exists



Tried once more, looks like there is an issue with the character set. When I choose to import, ii has only the 'utf8' choice. no 'utf8_general_ci'
Title: Re: how do I move my Elxis site from the local machine to an online server?
Post by: ks-net on October 28, 2009, 03:49:08
the db exists ..

you shouldn't add the  create database  option  when export the db...


in your file that you export from localhost delete all text above....

CREATE TABLE IF NOT EXISTS `elx_banner` (