chmod 777chmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.View (u)ser, (g)roup and (o)thers permissions for chmod 777 (chmod a+rwx) or use free on chmod calculator to modify permissions easily.