Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

SSL Install Problem


Recommended Posts

I've searched without success. I've installed a new osC site and I seem to have an error I'm not familiar with... or at least not sure how to fix.


It only happens when the site switches to SSL. The error reads:


Warning: file_exists(): open_basedir restriction in effect. File(/path_to_mydomain.com/httpsdocs/install) is not within the allowed path(s): (/path_to_mydomain.com/httpsdocs:/tmp) in /path_to_mydomain.com/httpdocs/includes/header.php on line 15


FYI, line 15 of header.php reads:

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {


I have a symlink that points all httpsdocs to the httpdocs folder. Seems to be working fine. I added an "install" folder and I received the highlighted error that warns me to delete the install folder. Once I removed/renamed the install folder, I get the above error again.


I have a "tmp" folder with the right permissions, and I have the sessions set to '' (not mysql).


Thanks in advance for your help.

Link to comment
Share on other sites

Interestingly, the full code on the header.php file is:


// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
     $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');


if I change the check from 'true' to 'false' the error goes away.




So I'll use this to fix it.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...