Moving from one server to another with new folder structure

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Kangarooo
New Member
New Member
Posts: 6
Joined: Fri Jul 06, 2012 12:17 pm

Moving from one server to another with new folder structure

Post by Kangarooo »

What i didnt do?
I had server with linux folders like /var/
I want to put on free server with has only /public_html/

Heres config i edited to:
#This is your database connection information. Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'mysql1.000webhost.com';
$config['db_username'] = 'a7633053_cms';
$config['db_password'] = 'xxxxxx';
$config['db_name'] = 'a7633053_cms';
#Change this param only if you know what you are doing
$config["db_port"] = '';


#If app needs to coexist with other tables in the same db,
#put a prefix here. e.g. "cms_"
$config['db_prefix'] = 'cms_';

#Use persistent connections? They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;

#Use ADODB Lite? This should be true in almost all cases. Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;

#-------------
#Path Settings
#-------------

#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. "http://blah.com
$config['root_url'] = 'http://medus.web44.net';

#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://medus.web44.net';

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/';

#Name of the admin directory
$config['admin_dir'] = 'admin';

#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/tmp/cache';

#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';

Now my website shows error in http://medus.web44.net/

PHP Error Message

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(//lib/classes/class.CGExtensions.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a7633053/public_html/lib/autoloader.php on line 39

Free Web Hosting

PHP Error Message

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(//lib/classes/interface.CGExtensions.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a7633053/public_html/lib/autoloader.php on line 45

Free Web Hosting

PHP Error Message

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(//lib/classes/class.CmsRegularTaskHandler.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a7633053/public_html/lib/autoloader.php on line 39

Free Web Hosting

PHP Error Message

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(//lib/classes/interface.CmsRegularTaskHandler.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a7633053/public_html/lib/autoloader.php on line 45

Free Web Hosting

PHP Error Message

Fatal error: Class 'CmsRegularTaskHandler' not found in /home/a7633053/public_html/include.php on line 360

Free Web Hosting
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Moving from one server to another with new folder struct

Post by Dr.CSS »

I'm not so sure a free hosing server is the best idea, but what I do to make sure all the paths are correct is to put the install folder from the version of CMSMS that you are using back in the root then run install, but...

STEP IN 5 WHERE YOU PUT THE DB INFO, DON'T CREATE TABLES NOR INSTALL DEFAULT CONTENT
Kangarooo
New Member
New Member
Posts: 6
Joined: Fri Jul 06, 2012 12:17 pm

Re: Moving from one server to another with new folder struct

Post by Kangarooo »

Maybe then i can shoot 2 rabits by upgrading to latest using install folder from latest version?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Moving from one server to another with new folder struct

Post by Dr.CSS »

If you add the install folder from a newer version there is a good chance it won't work, use the one for your version first with the steps above then upload a new version of CMSMS and run upgrade is best way to make sure you don't wreck what you have...
Kangarooo
New Member
New Member
Posts: 6
Joined: Fri Jul 06, 2012 12:17 pm

Re: Moving from one server to another with new folder struct

Post by Kangarooo »

Ok so i have 1.8.2
So i dl 1.8.2 full but copy from it only install folder
I remove config.php and config_lang.php so new could be generated yes?
Then i make new empty config.php couse somehow it asks for that new to be made. Config_lang.php i dont need to make empty yes?
So i do /install/install.php 1st or upgrade?
Maybe i do install/install so all is working with current?

So then i dl newest version or some version between latest? And i copy not just install but all yes? And do install/upgrade.php yes?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Moving from one server to another with new folder struct

Post by Dr.CSS »

Yes, after you get it to show correctly then upgrade to latest, /install/upgrade.php...
Locked

Return to “[locked] Installation, Setup and Upgrade”