Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002

    PHP File Upload Function Problem


    I am running PHP4.0.6 on Red Hat 7.1 .

    Following is what my php.ini looks like;

    open_basedir = /home/web
    safe_mode = Off
    user_dir = no value
    upload_tmp_dir = no value

    With the above customers are unable to use the php upload function, script says;

    Warning: open_basedir restriction in effect

    When i set open_basedir = no value the script runs.

    My question is how can one use file upload function with open_basedir in effect?

    Also is the above php configuration secured?

    What can i do to make it secure without limiting php fuctions.


  2. #2
    Join Date
    Nov 2001
    Ann Arbor, MI
    Try changing the value of upload_tmp_dir to a directory beneath the open_basedir value, and then create the directory.
    -Mark Adams - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

Posting Permissions

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