Posted on: 05/03/05 11:29am
By: Anonymous (hobbzilla)
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
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:
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?
Warning: Unable to access config.php (not the newbie version)
Posted on: 05/03/05 12:23pm
By: geKow
Warning: Unable to access config.php (not the newbie version)
Posted on: 05/03/05 12:30pm
By: trinity
Unfortunetly unless you can get your new hosting provider to fix it your gona have to place things in the webroot, but also note that most files will not load on there own becuse most of them check to see if they are being called directly and will complain and not send any thing usefull to the browser
Trinity
Warning: Unable to access config.php (not the newbie version)
Posted on: 05/03/05 02:27pm
By: Anonymous (hobbzilla)
Thats what I was afraid of.. thanks for the link & confirmation. I guess I will just have to take measures to protect the core system files from being accessed by snoopers.
Warning: Unable to access config.php (not the newbie version)
Posted on: 05/03/05 02:45pm
By: beewee
Or perhaps it's not too late to transfer to a webhost where you can install GL the way it should be.
Warning: Unable to access config.php (not the newbie version)
Posted on: 05/03/05 02:52pm
By: knuff
Are you really sure that this is correct ?
/home/virtual/site62/fst/home/myUsername/config.php
If it is just an educated guess, it could still be just a wrong path.
Did phpinfo not give you more info on your real paths ?
In addition did you try to create a directory just above your webroot instead of the home directory. If you are allowed, that should surely fix the issue.
So go to /var/www/html
do cd ..
do ls
if you are in /var/www
do mkdir geek
If this works, than use /home/virtual/site62/fst/var/www/geek as your directory
Best Regards,
Boris