Elxis CMS Forum

Support => Technical support => Topic started by: tapaparis on February 21, 2007, 12:55:34

Title: How can I upload a website from local to a server?
Post by: tapaparis on February 21, 2007, 12:55:34
I have created a whole site locally on my PC, using easy PHP. Now I am trying to upload the site but it won't work.

Attempt 1: I uploaded the whole site and SQL tables. It doesn't work.

Attempt 2: I Uploaded the original Elxis files and then tried to upload the SQL tables. It wont work.

Obviously I haven't got a problem with db name, user and passwd.

Is there a standard procedure to upload a site locally developed to a server?

This is quite urgent, please reply!

Paris
Title: Re: How can I upload a website from local to a server?
Post by: Coursar on February 21, 2007, 13:04:43
1. upload your site from localhost and change configuration.php with preferense of your hosting.
2. create a dump of your localhost db and then upload it to server's db
Title: Re: How can I upload a website from local to a server?
Post by: tapaparis on February 21, 2007, 13:11:21
A bit more help about the configuration file?
Title: Re: How can I upload a website from local to a server?
Post by: CREATIVE Options on February 21, 2007, 16:38:15
Try to change at list the following fields.

Code: [Select]
$mosConfig_host = '';
$mosConfig_user = '';
$mosConfig_password = '';
$mosConfig_db = '';
$mosConfig_absolute_path = '';
$mosConfig_live_site = '';

Title: Re: How can I upload a website from local to a server?
Post by: Seiyoku on March 07, 2007, 12:37:25
this is the same if I have done a website in a new folder of my webspace, and then I want to replace the old site with the new elxis based website?

Title: Re: How can I upload a website from local to a server?
Post by: CREATIVE Options on March 07, 2007, 14:39:47

Almost.

The easiest way is to make a permanent redirect from your webhosting control panel to target at the new folder.

One other way is to move only the files from the new folder to the root folder, and then you have to change only the following at the configuration.php :

$mosConfig_host = '';
$mosConfig_absolute_path = '';
$mosConfig_live_site = '';

Elxis FAN
Title: Re: How can I upload a website from local to a server?
Post by: Seiyoku on June 09, 2007, 01:33:05
I tried to move the files in the root folder,
I have this error messages

Quote
Warning: main(/includes/Core/utf8.class.php) [function.main]: failed to open stream: No such file or directory in /web/htdocs/www.domainname.it/home/includes/Core/loader.php on line 25

Fatal error: main() [function.require]: Failed opening required '/includes/Core/utf8.class.php' (include_path='.:/php/lib/php/') in /web/htdocs/www.domainname.it/home/includes/Core/loader.php on line 25

what's the meaning of them?

edit: when you say to modify
$mosConfig_host = '';
$mosConfig_absolute_path = '';
$mosConfig_live_site = '';   
it means I have to write that lines just like that with nothing between '' ?
Title: Re: How can I upload a website from local to a server?
Post by: Ivan Trebješanin on June 09, 2007, 10:52:24
You fill the blanks with your data, eg:

$mosConfig_live_site = 'http://www.mysite.com';
$mosConfig_absolute_path = '/home/mysite/public_html';
...
...

But, I would always recommend clean installation, and then import database. That would be an easy solution for begginer's sites, as they usually don't have large amount data to keep.
Title: Re: How can I upload a website from local to a server?
Post by: Ivan Trebješanin on June 09, 2007, 13:41:53
Additional info: https://forum.elxis.org/index.php?topic=941.msg5294#msg5294