SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    437
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    a line from apache vhost setting

    Code:
    <VirtualHost *:80>
        php_admin_value open_basedir "/var/www/html/web/yourcharmstyle.com/htdocs/:/tmp/"
    what the line meaning and do? thank you. why it add
    Code:
    /:/tmp/
    ? why it adds the line?

  2. #2
    SitePoint Member
    Join Date
    Mar 2012
    Location
    Scottsdale, AZ
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    runeveryday,

    You can review this particular basedir setting here.

  3. #3
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    437
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    if i add the line in the apache vhost setting, what's the effection of it?

  4. #4
    SitePoint Member
    Join Date
    Mar 2012
    Location
    Scottsdale, AZ
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    runeveryday,

    The open_basedir function defines the locations or paths from which PHP is allowed to access files using functions like fopen() and gzopen(). If a file is outside of the paths defined by open_basdir, PHP will refuse to open it. In this case you can access files in both /var/www/html/web/yourcharmstyle.com/htdocs/ and /tmp/ with functions like fopen() and gzopen().


Bookmarks

Posting Permissions

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