Elxis CMS Forum
Support => Technical support => Topic started 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
-
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
-
A bit more help about the configuration file?
-
Try to change at list the following fields.
$mosConfig_host = '';
$mosConfig_user = '';
$mosConfig_password = '';
$mosConfig_db = '';
$mosConfig_absolute_path = '';
$mosConfig_live_site = '';
-
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?
-
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
-
I tried to move the files in the root folder,
I have this error messages
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 '' ?
-
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.
-
Additional info: https://forum.elxis.org/index.php?topic=941.msg5294#msg5294