Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:08 am EST

Geeklog Forums

Warning: open_basedir restriction in effect

Page navigation


Mitch

Anonymous
Dirk... thank you for your fast response. I have contacted my host and the screwed with the PHP.ini file

1) Changed open_basedir = none to open_basedir = off
(that's how it was before.. do they have a clue?)

2) Affirmed that Safe Mode was off

Still getting the open_basedir error.

Also, on the check.php page, it's just loaded with errors like:
Parse error: parse error in /home/httpd/vhosts/mydomain.com/httpdocs/lib-common.php on line 4210

Warning: Use of undefined constant LB - assumed 'LB' in /home/httpd/vhosts/mydomain.com/httpdocs/admin/install/check.php on line 48
LB
Warning: Use of undefined constant LB - assumed 'LB' in /home/httpd/vhosts/mydomain.com/httpdocs/admin/install/check.php on line 49
LB


and


Testing logs directory ...
LBCould not open error.log and access.log
Warning: Use of undefined constant LB - assumed 'LB' in /home/httpd/vhosts/mydomain.com/httpdocs/admin/install/check.php on line 73
for writing.
Please check that you have set the logs directory and the files error.log and access.log in that directory to chmod 775.LB
Warning: Undefined variable: _CONF in /home/httpd/vhosts/mydomain.com/httpdocs/admin/install/check.php on line 74

Warning: Undefined variable: _CONF in /home/httpd/vhosts/mydomain.com/httpdocs/admin/install/check.php on line 75


Also, I did try the chmod 777 as detailed in the install doc.

Thanks for any advice, I really appreciate your time.

Mitch
 Quote

Mitch

Anonymous
Figured it out.... Had to edit the vhost.conf file for that domain. So it went something like this:

From Root
1)
Text Formatted Code
cd /home/httpd/vhosts/mydomain.com/conf
 


2)
Text Formatted Code
pico vhost.conf
 


3) Edit like this:

Text Formatted Code
<Directory /home/httpd/vhosts/mydomain.com>
php_admin_value open_basedir "/home/httpd/vhosts/mydomain.com :/"
</Directory>
 


4) INSTALL CONF FILE
Text Formatted Code
/usr/local/psa/admin/bin/my_apci_rst -v -u mydomain.com
 


5) RESTART APACHE
Text Formatted Code
apachectl -k restart
 


Still having some issues however so this is not a complete solution but it has gotten me closer.

Let me know if you have any questions.

Best Regards,
Mitch
http://www.xpancom.com
mitchmoccia@xpancom.com
 Quote

Someone not happy

Anonymous
Uhhhhh Forget it all. Never worked... Switching to different script. Confused
 Quote

Someone not happy

Anonymous
Confused
 Quote

mrzero

Anonymous
I had this problem whith php and PLESK
the only thing i could do was to create a symlink to the right place and put it in the directory where the script was operating from.

i.e:
my script was running from
/home/httpd/vhosts/mydomain.com/httpdocs/somedir/anotherdir/

but was trying to access

/home/httpd/vhosts/mydomain.com/httpdocs/someotherdir/andanotherdir/

in order to write to.
however this just wasnt working under any kind of setuup even when i was messing around with php config variables (i have root ssh acces to the box)
anyway to cut a long story short i fixed it by chmoding the write directory
"chmod -R 777 /home/httpd/vhosts/mydomain.com/httpdocs/someotherdir/andanotherdir/"

then creating the symlink by using
#cd /home/httpd/vhosts/mydomain.com/httpdocs/somedir/anotherdir/
#ln -s /home/httpd/vhosts/mydomain.com/httpdocs/someotherdir/andanotherdir/ andanotherdir

this mean that instead of accesssing the write dir in long form from my script i could address it as simply "andanotherdir/"

bit of a fiasco for such a simple thing... i think it has somthing to do with PLESK in my case but if your server is running somthing similar it might have somthing to do with it
Z..
 Quote

Page navigation

All times are EST. The time is now 01:08 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content