This error is due to file permissions. The php/apache user does not have the permissions to write in the directory. One way of fixing that is to change the mod byte of the directory with the command chmod . You need super permissions to execute this modification if your session user does not own the directory
You can run the command below in a terminal to give the htdocs folder and all of it's contents all permissions (read/write/execute for all users). Note that this is not safe in any way, especially in production!
$ sudo chmod -R 777 /opt/lampp/htdocs/
0 Comments