Post by sani.b » Sun Feb 10, 2019 12:44 am

Hi,

I am trying to move OC 2.3.0.2 from localhost, where is running fine, to free live server, before I actually buy a good hosting. I have imported the database, I have copied all the files from local 'upload' folder to htdocs folder on the server and changed both config.php files. This is one of them:
// HTTP
define('HTTP_SERVER', 'http://medicotest.turnkeyresellerwebhosting.com');

// HTTPS
define('HTTPS_SERVER', 'http://medicotest.turnkeyresellerwebhosting.com');

// DIR
define('DIR_APPLICATION', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/catalog/');
define('DIR_SYSTEM', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/');
define('DIR_IMAGE', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/image/');
define('DIR_LANGUAGE', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/catalog/language/');
define('DIR_TEMPLATE', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/catalog/view/theme/');
define('DIR_CONFIG', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/config/');
define('DIR_CACHE', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/storage/download/');
define('DIR_LOGS', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/storage/logs/');
define('DIR_MODIFICATION', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/storage/modification/');
define('DIR_UPLOAD', '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'sql308.turnkeyresellerwebhosting.com');
define('DB_USERNAME', 'trnk_23424468');
define('DB_PASSWORD', 'I HAVE TYPED THE CORRECT PASSWORD HERE');
define('DB_DATABASE', 'I HAVE TYPED THE CREATED DB NAME HERE');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

In cPanel I have the following account detailes:
Main domain: medicotest.turnkeyresellerwebhosting.com
Hosting volume: vol1_2
Home Directory: /home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468

Did I enter something wrong into config file above maybe?

When I try to access the store on live server, I am getting errors:
Warning: require_once(): open_basedir restriction in effect. File(/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/startup.php) is not within the allowed path(s): (/php_sessions:/tmp:/var/www/errors:/usr/share/pear:/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/htdocs) in /home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/htdocs/index.php on line 21

Warning: require_once(/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/startup.php): failed to open stream: Operation not permitted in /home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/htdocs/index.php on line 21

Fatal error: require_once(): Failed opening required '/home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/system/startup.php' (include_path='.:/usr/share/pear/') in /home/vol1_2/turnkeyresellerwebhosting.com/trnk_23424468/htdocs/index.php on line 21

In OC 2.3.0.2 I use extentions:
- Live Price Update 2.3.x from E-Intelligence
- aGDPR 1.1.40 from Advertikon

I am totally stuck, I really need help.

Newbie

Posts

Joined
Sat Feb 09, 2019 10:51 pm

Post by OSWorX » Sun Feb 10, 2019 4:50 am

That message tells you all:
open_basedir restriction in effect
Means the server has limitations you cannot override.

Forum Rules [en]: viewtopic.php?f=176&t=200480
Commercial Request: viewforum.php?f=88
Dedicated Support: https://dedicated.opencart.com/
Marketplace Support: https://www.opencart.com/index.php?rout ... rt/support
Documentation: http://docs.opencart.com/en-gb/extension/theme/

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by victorj » Sun Feb 10, 2019 11:46 pm

You made error in path of your configuration files.
You forgot /htdocs/
It should be
/trnk_23424468/htdocs/

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Eigen productie en snelle levering.
https://123-deurrubbers.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland
Who is online

Users browsing this forum: No registered users and 3 guests