safe mode help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rdlowrey

    #1

    safe mode help

    Hi, I'm pulling my hair out trying to make this work and any help
    would be appreciated ...

    When I try to move the uploaded file:
    move_uploaded_f ile($_FILES["file"]["tmp_name"],"/var/www/vhosts/
    mydomain.com/intranet/httpdocs/lib/slips/in/$filename.pdf") ;

    I get the following error:
    Warning: move_uploaded_f ile(): SAFE MODE Restriction in effect. The
    script whose uid is 10001 is not allowed to access /var/www/vhosts/
    mydomain.com owned by uid 0

    However, my phpinfo() tells me that the master value for safe mode is
    Off. Why do I keep getting SAFE MODE errors iwhen php tells me that
    safe mode is turned off?

    Pleeeease help. Thanks.
  • Jerry Stuckle

    #2
    Re: safe mode help

    rdlowrey wrote:
    Hi, I'm pulling my hair out trying to make this work and any help
    would be appreciated ...
    >
    When I try to move the uploaded file:
    move_uploaded_f ile($_FILES["file"]["tmp_name"],"/var/www/vhosts/
    mydomain.com/intranet/httpdocs/lib/slips/in/$filename.pdf") ;
    >
    I get the following error:
    Warning: move_uploaded_f ile(): SAFE MODE Restriction in effect. The
    script whose uid is 10001 is not allowed to access /var/www/vhosts/
    mydomain.com owned by uid 0
    >
    However, my phpinfo() tells me that the master value for safe mode is
    Off. Why do I keep getting SAFE MODE errors iwhen php tells me that
    safe mode is turned off?
    >
    Pleeeease help. Thanks.
    >
    What's the local value for safe_mode in phpinfo()? Are you loading the
    phpinfo() page from the same directory as you're calling
    move_uploaded_f ile() (i.e. safe_mode could be set on a per-directory
    instance)?

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • rdlowrey

      #3
      Re: safe mode help

      Thanks for the quick response.
      What's the local value for safe_mode in phpinfo()?
      The local value for safe_mode in phpinfo() is set to On and I've tried
      to figure out how to change that because I thought it might have
      something to do with it but I've been unsuccessful.

      Are you loading the
      phpinfo() page from the same directory as you're calling
      move_uploaded_f ile()?
      The upload form is in this directory:
      /var/www/vhosts/mydomain.com/intranet/httpdocs/receiving/

      And it posts to a form-handling php file in the same directory where
      the phpinfo call is made:
      /var/www/vhosts/mydomain.com/intranet/httpdocs/form_submits.ph p
      /var/www/vhosts/mydomain.com/intranet/httpdocs/phpinfo.php

      I'm getting the error in the forms.php file

      Comment

      • rdlowrey

        #4
        Re: safe mode help

        Correction to the last line of my response:
        I'm getting the error in the forms.php file
        Should read: I'm getting the error in the form_submits.ph p file

        Comment

        • Jerry Stuckle

          #5
          Re: safe mode help

          rdlowrey wrote:
          Thanks for the quick response.
          >
          >What's the local value for safe_mode in phpinfo()?
          The local value for safe_mode in phpinfo() is set to On and I've tried
          to figure out how to change that because I thought it might have
          something to do with it but I've been unsuccessful.
          >
          >
          >Are you loading the
          >phpinfo() page from the same directory as you're calling
          >move_uploaded_ file()?
          >
          The upload form is in this directory:
          /var/www/vhosts/mydomain.com/intranet/httpdocs/receiving/
          >
          And it posts to a form-handling php file in the same directory where
          the phpinfo call is made:
          /var/www/vhosts/mydomain.com/intranet/httpdocs/form_submits.ph p
          /var/www/vhosts/mydomain.com/intranet/httpdocs/phpinfo.php
          >
          I'm getting the error in the forms.php file
          >
          Check your httpd.conf file.

          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          • rdlowrey

            #6
            Re: safe mode help

            Thanks for the help. I just needed to make some changes in my
            vhost.conf file ...

            Between your suggestions and a little Googling I've gotten it working.
            Many thanks!

            Comment

            Working...