mkdir not working

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

    #1

    mkdir not working

    Hi

    The following does not create a directory neither does it give any error
    message. Any ideas?

    $umask=umask(0) ;
    $where="/var/www/vhosts/example.com/httpdocs/friday/";
    mkdir ($where,0777);
    umask($umask);

    Regards
    John



  • Michael Fesser

    #2
    Re: mkdir not working

    ..oO(John)
    >The following does not create a directory neither does it give any error
    >message. Any ideas?
    >
    >$umask=umask(0 );
    >$where="/var/www/vhosts/example.com/httpdocs/friday/";
    >mkdir ($where,0777);
    >umask($umask );
    error_reporting set to E_ALL|E_STRICT? display_errors ON?

    Micha

    Comment

    • John

      #3
      Re: mkdir not working


      "Michael Fesser" <netizen@gmx.de wrote in message
      news:g361q3ds70 v9t9veq9hdg93uo vmjmskd7t@4ax.c om...
      .oO(John)
      >
      >>The following does not create a directory neither does it give any error
      >>message. Any ideas?
      >>
      >>$umask=umask( 0);
      >>$where="/var/www/vhosts/example.com/httpdocs/friday/";
      >>mkdir ($where,0777);
      >>umask($umask) ;
      >
      error_reporting set to E_ALL|E_STRICT? display_errors ON?
      >
      Micha
      Thanks. Now got a message.

      Warning: mkdir() [function.mkdir]: Permission denied in
      /home/john/example.com/adhoc.php on line 25

      [Line 25 is mkdir]

      Regards
      John





      Comment

      • Michael Fesser

        #4
        Re: mkdir not working

        ..oO(John)
        >"Michael Fesser" <netizen@gmx.de wrote in message
        >news:g361q3ds7 0v9t9veq9hdg93u ovmjmskd7t@4ax. com...
        >.oO(John)
        >>
        >>>The following does not create a directory neither does it give any error
        >>>message. Any ideas?
        >>>
        >>>$umask=umask (0);
        >>>$where="/var/www/vhosts/example.com/httpdocs/friday/";
        >>>mkdir ($where,0777);
        >>>umask($umask );
        >>
        >error_reportin g set to E_ALL|E_STRICT? display_errors ON?
        >
        >Thanks. Now got a message.
        >
        >Warning: mkdir() [function.mkdir]: Permission denied in
        >/home/john/example.com/adhoc.php on line 25
        >
        >[Line 25 is mkdir]
        Should be pretty clear now. The web server doesn't have write access in
        the given directory.

        Micha

        Comment

        • John

          #5
          Re: mkdir not working


          "Michael Fesser" <netizen@gmx.de wrote in message
          news:ho71q3hfk8 2b3ev008c9t93nm vnjcha4ll@4ax.c om...
          .oO(John)
          >
          >>"Michael Fesser" <netizen@gmx.de wrote in message
          >>news:g361q3ds 70v9t9veq9hdg93 uovmjmskd7t@4ax .com...
          >>.oO(John)
          >>>
          >>>>The following does not create a directory neither does it give any error
          >>>>message. Any ideas?
          >>>>
          >>>>$umask=umas k(0);
          >>>>$where="/var/www/vhosts/example.com/httpdocs/friday/";
          >>>>mkdir ($where,0777);
          >>>>umask($umas k);
          >>>
          >>error_reporti ng set to E_ALL|E_STRICT? display_errors ON?
          >>
          >>Thanks. Now got a message.
          >>
          >>Warning: mkdir() [function.mkdir]: Permission denied in
          >>/home/john/example.com/adhoc.php on line 25
          >>
          >>[Line 25 is mkdir]
          >
          Should be pretty clear now. The web server doesn't have write access in
          the given directory.
          >
          Micha
          Got it. The directory above the one being created needs write chmod.
          Many thanks. Working now.
          Regards
          John


          Comment

          Working...