The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mkdir() not working

Discussion in 'General Discussion' started by tgavin, Jun 13, 2007.

  1. tgavin

    tgavin Well-Known Member

    Joined:
    Jul 27, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    This should be simple, but it's not working. I'm trying to create a dir in the public_html dir using the following php script
    PHP:
    // create the user directory
    $dir '/home/site/public_html/'.$username
    $make mkdir($dir0644);
    if(!
    $make) {
        die(
    'Can not create the folder for this user.');
    }
    However, I keep getting permission denied errors.

    This is a brand new installation. Is there something I should be looking for?
     
Loading...

Share This Page