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

Problems with the Linux version of XAMPP, questions, comments, and anything related.

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

Postby mtstone » 20. January 2022 14:57

Hi 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
Code: Select all
sudo /opt/lampp/lampp start


Here is what I get back (note I changed my local name to user):
Code: Select all
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!
mtstone
 
Posts: 1
Joined: 20. January 2022 14:40
XAMPP version: 8.1.1
Operating System: Ubuntu

Re: Can't create/write to file - Errcode 13 "Permission Deni

Postby Nobbie » 21. January 2022 12:06

Reboot your machine and try again to start xampp. Obviously you tried to start xampp twice, xampp is starting automatically after the first install. When xampp is already running, certain files like logfiles etc. are locked by the parent process, which causes the Permission failure.

Before rebooting, issue a lampp stop command in order to clean up temporary files.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 27 guests