PHP mkdir() Permission denied problem solved


  • Make sure all files are owned by the Apache group and user. In Ubuntu it is the www-data group and user.
    chown -R www-data:www-data /path/to/webserver/www

  • Next enabled all members of the www-data group to read and write files.
    chmod -R g+rw /path/to/webserver/www

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Deploy laravel application to digital ocean droplet