First off, I have an existing geeklog site setup and working fine. I am in the midst of transferring to another host. However, the new host uses Ensim as their CP. I am not as knowledgeable in linux as I wish I was.. but this appears to be some sort of directory restriction in effect.
Taken from Ensim:
ServerName www.myDomain.com
DocumentRoot /var/www/html
pwd upon SSH login gives me : /home/myUsername
pwd after cd into mainwebsite_html gives me: /var/www/html
however if I define in lib-common.php
Text Formatted Code
require_once( '/home/myUsername/config.php' );
I receive:
Warning: Unable to access /home/myUsername/config.php in /home/virtual/site62/fst/var/www/html/lib-common.php on line 69
Fatal error: Failed opening required '/home/myUsername/config.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site62/fst/var/www/html/lib-common.php on line 69
so then I try and use the full path:
Text Formatted Code
require_once( '/home/virtual/site62/fst/home/myUsername/config.php' );
and I receive:
Warning: Unable to access /home/virtual/site62/fst/home/myUsername/config.php in /home/virtual/site62/fst/var/www/html/lib-common.php on line 69
Fatal error: Failed opening required '/home/virtual/site62/fst/home/myUsername/config.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site62/fst/var/www/html/lib-common.php on line 69
If I move the other geeklog directories as well as config.php inside the mainwebsite_html directory... all is well (however I believe this to be a security risk -- yes?). I didn't have to do this for my current host as /public_html (aka mainwebsite_html) was really /home/user/public_html and not a hardlink to /var/www/html
So, finally my question.. is there a way to get this working securely where config.php is called from my /home directory without having to move into the public realm?