Jump to content

Creating Data base folder in Prestashop


Recommended Posts

Hi there,

 

I just have changed my host provider and after uploading the website files into their server getting this error"

 

Warning: require(/home/sagal816/public_html/config/config.inc.php): failed to open stream: No such file or directory in /home/sagal816/public_html/index.php on line 27

Fatal error: require(): Failed opening required '/home/sagal816/public_html/config/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sagal816/public_html/index.php on line 27

 

Could some one help me out with this please?

 

Link to comment
Share on other sites

It seems that the files that are causing the issue are not existing on your server, or they don't have required permission.

 

If you are running Prestashop on Linux server, kindly ensure that the following file is present on the server.

 

/config/defines.inc.php

 

If you are running PrestaShop on a windows server then you can try after following below steps:

 

Open /config/defines.inc.php

 


Try changing following line: 

define('PS_ROOT_DIR', realpath($currentDir.'/..'));

into this:

define('PS_ROOT_DIR', dirname($currentDir)); 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...