chmod 777chmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.755 – This permission is mostly used in web server. Owner has all the permissions to read, write and execute. · 777 – Everyone can read write and execute. · 644