Page 1 of 1
Problems after changes Hosting : failed to open stream
Posted: Sat Jul 12, 2014 7:10 pm
by TheICF
Hi
I have changed my server and wanted to move over store ( same domain).
I installed on new server Opencart , then moved over all folders under html_public from old server.
i then modified config.php and admin/config.php with correct folder and modified the DB names below.
i can get it to work ,
when i access the site now i get this message :
Warning: require_once(/home/seanjsc/public_html/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in /home/seanjsc/public_html/index.php on line 19
Fatal error: require_once() [function.require]: Failed opening required '/home/seanjsc/public_html/system/startup.php' (include_path='.:/usr/local/lib/php') in /home/seanjsc/public_html/index.php on line 19
i quite sure all files are in that exact folder :
server name is seanjsc and public_html is under with all folders , i guess "home" should be there by default.
can get the ADMIN panel to work either :
Warning: require_once(/home/seanjsc/public_html/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in /home/seanjsc/public_html/admin/index.php on line 17
Fatal error: require_once() [function.require]: Failed opening required '/home/seanjsc/public_html/system/startup.php' (include_path='.:/usr/local/lib/php') in /home/seanjsc/public_html/admin/index.php on line 17
i have got all backup of old site plus i have run a backup of DB from old store.
I have not access to old server anymore.
Will be happy if someone can help me
Thanks in advance
Sean
Re: Problems after changes Hosting : failed to open stream
Posted: Mon Jul 14, 2014 2:38 pm
by melbagnato
Hi sean,
I'd be happy to help. If your settings are correct, and the files are there, it sounds like it might be permissions related.
PM me some details and I'll get it working for you.
- Mel
Re: Problems after changes Hosting : failed to open stream
Posted: Mon Jul 14, 2014 10:02 pm
by cwswebdesign
Double check both config files in the DIR section very close. You're probably missing a ' or / somewhere.
DL
Re: Problems after changes Hosting : failed to open stream
Posted: Thu Jul 17, 2014 3:50 am
by TheICF
got throught that , seemed the "SYSTEM" folder was copied under a different name.
now i have 2 other issues :
1. when trying to enter ADMIN console i get a :
ERROR 404 - PAGE NOT FOUND
Why am I seeing this page?
How to find the correct spelling and folder
404 Errors After Clicking WordPress Links
How to modify your .htaccess file
2. the store does come up , but only default store , nothing from old store.
Thanks alot
Sean
Re: Problems after changes Hosting : failed to open stream
Posted: Mon Jul 21, 2014 7:58 pm
by melbagnato
Hi Sean,
it's all fixed. Can you test it out and let me know how it goes.
- Mel
Re: Problems after changes Hosting : failed to open stream
Posted: Fri Oct 17, 2014 5:24 pm
by leonardbd
Hi,
I'm having almost the same issue while I'm moving my local opencart (hosted on a PC with xampp) to the public web space.
I have changed all necessary parameters in /public_html/config.php and /public_html/admin/config.php after hosting it in real domain.
But when I load the site
http://rccraze.site11.com I'm getting the following errors..
===============Error=============
PHP Error Message
Warning: require_once(/public_html/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in /home/a8105941/public_html/index.php on line 17
Free Web Hosting
PHP Error Message
Fatal error: require_once() [function.require]: Failed opening required '/public_html/system/startup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a8105941/public_html/index.php on line 17
Free Web Hosting
Here is the content of
/public_html/config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://rccraze.site11.com/');
// HTTPS
define('HTTPS_SERVER', 'http://rccraze.site11.com/');
// DIR
define('DIR_APPLICATION', '/public_html/catalog/');
define('DIR_SYSTEM', '/public_html/system/');
define('DIR_DATABASE', '/public_html/system/database/');
define('DIR_LANGUAGE', '/public_html/catalog/language/');
define('DIR_TEMPLATE', '/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/public_html/system/config/');
define('DIR_IMAGE', '/public_html/image/');
define('DIR_CACHE', '/public_html/system/cache/');
define('DIR_DOWNLOAD', '/public_html/download/');
define('DIR_LOGS', '/public_html/system/logs/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'mysql13.000webhost.com');
define('DB_USERNAME', 'a8105941_rccraze');
define('DB_PASSWORD', 'mypassword');
define('DB_DATABASE', 'a8105941_rccraze');
define('DB_PREFIX', 'oc_');
?>
/public_html/admin/config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://rccraze.site11.com/admin/');
define('HTTP_CATALOG', 'http://rccraze.site11.com/');
// HTTPS
define('HTTPS_SERVER', 'http://rccraze.site11.com/admin/');
define('HTTPS_CATALOG', 'http://rccraze.site11.com/');
// DIR
define('DIR_APPLICATION', '/public_html/admin/');
define('DIR_SYSTEM', '/public_html/system/');
define('DIR_DATABASE', '/public_html/system/database/');
define('DIR_LANGUAGE', '/public_html/admin/language/');
define('DIR_TEMPLATE', '/public_html/admin/view/template/');
define('DIR_CONFIG', '/public_html/system/config/');
define('DIR_IMAGE', '/public_html/image/');
define('DIR_CACHE', '/public_html/system/cache/');
define('DIR_DOWNLOAD', '/public_html/download/');
define('DIR_LOGS', '/public_html/system/logs/');
define('DIR_CATALOG', '/public_html/catalog/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'mysql13.000webhost.com');
define('DB_USERNAME', 'a8105941_rccraze');
define('DB_PASSWORD', 'mypassword');
define('DB_DATABASE', 'a8105941_rccraze');
define('DB_PREFIX', 'oc_');
?>
Please let me know if u need more info to resolve this issue. Having hard time to publish the site.
Thanks
Regads
Leo
Re: Problems after changes Hosting : failed to open stream
Posted: Thu Dec 18, 2014 6:42 am
by swiftws
exactly the same issue as above . Could you please share how to solve as we are moving about 7 open carts to new hosting provider.
Warning: require_once(.vqmod/vqmod.php): failed to open stream: No such file or directory in /home/*****/public_html/index.php on line 19
Fatal error: require_once(): Failed opening required '.vqmod/vqmod.php' (include_path='.:/usr/local/lib/php') in /home/****/public_html/index.php on line 19
DOES ANY ONE ON THIS OFFICIAL FORUM CAN HELP PLEASEEEEEEEE?
Re: Problems after changes Hosting : failed to open stream
Posted: Sat Jan 10, 2015 5:34 pm
by melbagnato
Hi, I am back onliine for 2015. If you need any help with this, send me a PM.
- Mel
Re: Problems after changes Hosting : failed to open stream
Posted: Sat Jan 10, 2015 6:37 pm
by victorj
Proper path should look like this:
/home/a8105941/public_html/catalog
Change all absolute path entrys and just put /home/a8105941 in front of them.
Re: Problems after changes Hosting : failed to open stream
Posted: Wed Apr 01, 2015 8:22 pm
by r2red
Head scratching with the same sort of problem.
I had to move to a new host. I have used exactly the same database name, username and passwords so that I could keep problems to a minimum. I cannot log into the admin system, I have errors on thetop of the page. The errors seem to be to do with the caches, but I dont know how to fix the errors. I cannot log into the admin system either.
Here are the errors once I add something to the shopping basket
Warning: unlink(/var/www/vhosts/selectuniform.co.uk/httpdocs/system/cache/cache.country.status.1427717681): Permission denied in /var/www/vhosts/selectuniform.co.uk/httpdocs/system/library/cache.php on line 18Warning: unlink(/var/www/vhosts/selectuniform.co.uk/httpdocs/system/cache/cache.language.1427838838): Permission denied in /var/www/vhosts/selectuniform.co.uk/httpdocs/system/library/cache.php on line 18Warning: unlink(/var/www/vhosts/selectuniform.co.uk/httpdocs/system/cache/cache.currency.1427838838): Permission denied in /var/www/vhosts/selectuniform.co.uk/httpdocs/system/library/cache.php on line 18
Re: Problems after changes Hosting : failed to open stream
Posted: Mon Mar 07, 2016 5:16 pm
by Khal
Hi r2red
Did you manage to solve the cache errors you were getting? I have just changed server and I am getting similar errors, although I can log into my admin.
I would appreciate any help you can offer. Thanks!
Re: Problems after changes Hosting : failed to open stream
Posted: Sun Mar 20, 2016 9:53 pm
by jesicanol
I entered the forum to ask for help with a problem I can not solve alone. I have a website of friv games that I would like to transfer from name.com to godaddy. You can tell someone all steps to follow? Thanks! My page is
friv
Re: Problems after changes Hosting : failed to open stream
Posted: Tue Jul 25, 2017 6:36 pm
by yowchuan
Please double-check your .htaccess file. It's likely your .htaccess file was overwritten or not replaced when you migrated from your previous hosting environment.