Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

mkdir permission denied php

/*
Here's what you do in Ubuntu
1. Make sure all files are owned by the Apache group and user. In Ubuntu it is the www-data group and user
2. sudo chown -R www-data:www-data /path/to/webserver/www
3. Next enabled all members of the www-data group to read and write files
4. sudo chmod -R g+rw /path/to/webserver/www

The php mkdir() function should now work without returning errors
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mkdir #permission #denied #php
ADD COMMENT
Topic
Name
8+3 =