When running
$id = mysqli_num_rows($resultSelect) + 1;
$uploadDir = "/projects/$id/";
mkdir($uploadDir,0777,true);
I get the errors
Warning: mkdir() [function.mkdir0]: Permission denied in /var/www/devx.online/html/php/newProject.php on line 9
The directory is owned by www-data and the group is www-data. The permissions is 777 for testing, and even still permissions are denied. I am running Ubuntu 18.04 LTS with Apache2.