Can't create/write to file - Errcode 13 "Permission Denied"

Hey all!

I just downloaded XAMPP and I'm having a brutal time with permissions in folders. I feel like I have resolved all issues but one has me stuck. To start XAMPP I use

sudo /opt/lampp/lampp start

Here is what I get back (note I changed my local name to user):

Starting XAMPP for Linux 8.1.1-2...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...already running.
user:~$ /opt/lampp/bin/mysqld_safe_helper: Can't create/write to file '/opt/lampp/var/mysql/user.err' (Errcode: 13 "Permission denied")
/opt/lampp/bin/mysql.server: 263: kill: No such process

In my files, when I got and click on Permissions for this file, it looks like I have permissions, but if anyone has a command that they'd recommend trying I would greatly appreciate it!

Can you please try changing the permissions:

sudo chmod 777 /opt/lampp/var/

sudo chown -R mysql:mysql /opt/lampp/var/mysql/

sudo lampp restart

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.