Hello I'm using a CentOS VPS with PHP and I'm trying to create a folder using the script below:
mkdir('/home/kache407/public_html/uploads/folder', 0775);
I'm getting the below error:
Severity: Warning Message: mkdir(): Permission denied
In terminal this is the permissions I have for my directories:
drwxr-x--- 7 kache407 nobody 4096 Jun 6 10:57 ./
drwx--x--x 17 kache407 kache407 4096 Jun 6 06:43 ../
drwxr-xr-x 7 kache407 kache407 4096 May 26 12:32 assets/
-rw-r--r-- 1 kache407 kache407 13835284 Jun 6 06:23 assets.tar.gz
drwxr-xr-x 2 kache407 kache407 4096 May 11 04:52 cgi-bin/
-rw-r--r-- 1 kache407 kache407 130 Jun 6 10:52 .htaccess
-rw-r--r-- 1 kache407 kache407 14 May 11 04:38 index.html
-rwxr-xr-x 1 kache407 kache407 10294 May 16 16:58 index.php*
drwxr-xr-x 12 kache407 kache407 4096 May 11 06:35 phpMyAdmin/
drwxr-xr-x 2 kache407 kache407 4096 Jun 3 16:35 uploads/
drwxr-xr-x 3 kache407 kache407 4096 May 10 14:35 .well-known/
I don't see any permissions wrong. Any help please? Thanks