How to solve “Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored” in xampp
How to stop the below warning in xampp?
Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored
4 Answers
With the stopped server perform:
chmod 644 /opt/lampp/etc/my.cnf- restart the server
Hae I Got this error
👉 For more insights, check out this resource.
Warning: World-writable config file '/opt/lampp/etc/my.cnf' is ignoredWarning: World-writable config file '/opt/lampp/etc/my.cnf' is ignoredWarning: World-writable config file '/opt/lampp/etc/my.cnf' is ignored
This is how I solved it hope It work for you
👉 Discover more in this in-depth guide.
sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php I resolve this Error By the Below Commands :-
sudo chown mysql:mysql /opt/lampp/etc/my.cnf After That Do the 2nd Command:-
sudo chmod 600 /opt/lampp/etc/my.cnf Then restart the server.
It Resolve Me. Anyone face this problem try once with above cmd.
I had a similar but different problem in the end:
changing the permission was not enough, there was something else:
when validating the content of the file /etc/mysql/my.cnf i get this:
!includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mysql.conf.d/ valid that all the files exist and the first file/directory is missing, it occurred to me to proceed to comment it like this:
#!includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mysql.conf.d/ apply the procedure again with 644 permissions and restart the server, and everything works fine now with no warnings.
I can't properly set permissions to MySQL config files