I would like help to solve the following problem.
I was using XAMPP to run PHP applications, and I needed to edit the php.ini file in / opt / lampp / etc /
OBS: dentro da pasta opt/ tem outras 2 pastas google/ e lampp/
When you save the php.ini file permission error appeared, then I opened the Terminal and I logged in as ROOT
# sudo su
I went to the root folder and entered with the following command:
# chown -R meu_usuario /opt
(later I saw that it would have been better chown -R my_user /opt/lampp/etc/php.ini , but the poop was already done)
After this I was able to save the php.ini , however ... after restarting the machine. the Google chrome browser and the XAMPP database MYSQL do not work:
I've already returned the opt / root folder permission
# chown -R root /opt
But still, the chrome and MYSQL database does not work.
My system
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Thank you in advance for your support.