Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    Des Moines, Iowa
    Posts
    219
    Thanks
    0
    Thanked 0 Times in 0 Posts

    open_basedir variable

    Argh!

    I'm really torqued off at this variable in my php.ini!

    According to phpinfo() it is set this way:

    open_basedir
    /home/httpd/vhosts/domainhere/httpdocs:/tmp off

    The "Local Variable" is /home/httpd/vhosts/domainhere/httpdocs:/tmp
    and the "Master Variable" is "off".

    I'm on a Red Hat 9.0 box running Plesk 7.1 reloaded control panel and Zend Optimizer... I'm running into open_basedir errors when trying to install my billing package (Modernbill).

    I've done a "locate" for php.ini and changed every open_basedir to ;open_basedir.

    Somehow - the "local" is still getting set. Any thoughts? Could Zend or Plesk be overriding?

    Is there a command I can run to find /home/httpd/vhosts/domainhere/httpdocs:/tmp in a file somewhere... I tried grep /home/httpd/vhosts/domainhere/httpdocs:/tmp but it has yet to come up with anything.

    Help! :-)
    Rich S. Wyatt
    D3 Web Creations

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    Plesk

    If you installed Zend optimzer yourself then your real php.ini may well turn up in /usr/local/Zend/etc/php.ini & your /etc/php.ini may well be a symlink to that. ( phpinfo() output will tell you where your php.ini should be , cd to that directory and $> ls -al to see if it is indeed a symlink)

    The open_basedir path you note is 2 paths , not 1 , the colon is the seperator so your open basedir paths are

    /home/httpd/vhosts/domainhere/httpdocs
    &&
    /tmp

    but with plesk the open_basedir restrictions are mostly set in the httpd.include files

    /etc/httpd/conf/httpd.include (global)
    &&
    /home/httpd/vhosts/@domain@/conf/httpd.include (per domain)

    so if your application is being installed globally (for all users) then look into the /etc/httpd/conf/httpd.conf , if per domain then you need to look at them all !
    Last edited by firepages; 10-19-2004 at 03:10 AM.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    Regular Coder
    Join Date
    Jan 2004
    Location
    Des Moines, Iowa
    Posts
    219
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks... Plesk is trouble! I'm beginning to not like it much! :-)

    Anyhow - I figured out that by leaving off " " around the dir helped.

    In fact - I made a vhost_ssl.conf in the conf/ directory. In it I made the basedir / otherwise my billing module wouldn't work right.

    Hopefully this isn't a huge security issue for just this domain?
    Rich S. Wyatt
    D3 Web Creations


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •