Moving from one server to another with new folder structure
Posted: Sun Jul 08, 2012 10:32 pm
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
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