I have my web application hosted in /var/www folder. I am creating a folder from one of the PHP scripts of the web application. The default permission of the created folder is drwx------
, i.e. 700. But I want that folder to have at least 755 permission.
Up to now I tried: mkdir($path, 0755)
and chmod($path, 0755)
PHP functions but without any success.
Does anybody know how to solve my problem please?
Millions of thanks beforehand.