how to fix this error(the attached image), I just finished installing xampp just now, but I can’t transfer my work in the xampp directory /opt/lampp/htdocs, because the ownership is root… hmp…
How can I access the file system drive where the owner is root, how to change ownership?.. and the next is how to fix that error?..
I would be so happy if someone could give me the right answer…
Newbie here.. still exploring the world of Linux UBUNTU 12.04
Try the following commands to change permissions of the file to include your user.
$ cd /opt/lampp/
$ sudo chmod u+rwx htdocs/
If that doesn’t work you may need to change ownership of the directory.
Let us know how you get on.
Now the problem left is that I can’t access the http://localhost/phpmyadmin because of the error which you already have seen in the attached file… how can I fix that error?
Did the permission change work?
According to the error it looks like there may be a problem with the configuration file. Could you post your configuration file so we can have a look through it.
The file should be called [b]my.cnf[/b]
and is located in [b]/etc/[/b]
or [b]/etc/mysql/[/b]
According to this article the solution is to restart the [b]mysqld[/b]
service.
Yup, turn it off and on again…
Let us know how you get on.
[EDIT] Source: softlayer.com > knowledgebase
now the next problem is this… whenever I access http://localhost/phpmyadmin I get this “Wrong permissions on configuration file, should not be world writable!”, I can see the configuration file of phpmyadmin which is at /etc/phpmyadmin/config.inc.php and the other configuration files from apache /etc/apache2/conf.d/phpmyadmin.conf or /etc/phpmyadmin/conf.d … what configuration file does this error points at?.. because when I installed xampp I didn’t configure any of the phpmyadmin files but before when I was on LAMP server I was asked to configure the one in the apache and maybe also the phpmyadmin but it didn’t had any error before… hmp…
I wonder what’s wrong… can you help me pinpoint whats the right thing to do?
Open a terminal, and run:
ls -l /etc/phpmyadmin
What is the output ?
[EDIT]
For comparison:-
mark@xxxxxx:~$ ls -l /etc/phpmyadmin/
total 32
-rw-r–r-- 1 root root 871 2010-04-14 09:31 apache.conf
-rw-r----- 1 root www-data 549 2012-02-17 00:07 config-db.php
-rw-r–r-- 1 root root 168 2008-12-09 20:00 config.footer.inc.php
-rw-r–r-- 1 root root 168 2008-12-09 20:00 config.header.inc.php
-rw-r–r-- 1 root root 3864 2010-01-03 14:46 config.inc.php
-rw-r----- 1 root www-data 8 2010-12-06 04:12 htpasswd.setup
-rw-r–r-- 1 root root 570 2008-12-09 20:00 lighttpd.conf
-rw-r–r-- 1 root root 295 2010-01-03 14:46 phpmyadmin.service
total 40
-rw-r----- 1 root root 1058 May 23 14:41 apache.conf
-rw-r----- 1 root www-data 537 May 23 15:42 config-db.php
-rw-r–r-- 1 root root 168 Feb 15 03:24 config.footer.inc.php
-rw-r–r-- 1 root root 168 Feb 15 03:24 config.header.inc.php
-rwxr-xr-x 1 root root 4390 May 24 21:08 config.inc.php
-rw-r----- 1 root www-data 8 May 22 20:05 htpasswd.setup
-rw-r–r-- 1 root root 570 Feb 15 03:24 lighttpd.conf
-rw-r–r-- 1 root root 198 Feb 15 03:24 phpmyadmin.desktop
-rw-r–r-- 1 root root 295 Feb 15 03:24 phpmyadmin.service
this was the output… what does the command do? the one made me do??
Run:
sudo chmod 644 /etc//phpmyadmin/config.inc.php
then post the output from:
ls -l /etc/phpmyadmin
again
total 40
-rw-r----- 1 root root 1058 May 23 14:41 apache.conf
-rw-r----- 1 root www-data 537 May 23 15:42 config-db.php
-rw-r–r-- 1 root root 168 Feb 15 03:24 config.footer.inc.php
-rw-r–r-- 1 root root 168 Feb 15 03:24 config.header.inc.php
-rw-r–r-- 1 root root 4390 May 24 21:08 config.inc.php---------------- this is not bold green anymore why is that?..
-rw-r----- 1 root www-data 8 May 22 20:05 htpasswd.setup
-rw-r–r-- 1 root root 570 Feb 15 03:24 lighttpd.conf
-rw-r–r-- 1 root root 198 Feb 15 03:24 phpmyadmin.desktop
-rw-r–r-- 1 root root 295 Feb 15 03:24 phpmyadmin.service
but it(http://localhost/phpmyadmin) still give’s me this “Wrong permissions on configuration file, should not be world writable!”
no it still give the message “Wrong permissions on configuration file, should not be world writable!” …
hmp… :3 I kept searching but still the same output…
Oops … sorry, missed the last bit … try rebooting, though as far as I’m aware the changes should apply straight away ???
Your /etc/phpmyadmin/apache.conf also seems to have the wrong permissions (640 compared to mines 644) … though I doubt if this is causing that error, and probably isn’t an issue.
This may be a work around but I would only use it to confirm the fault. It isn’t a good idea from a security point of view to use live.
The only other solutions I came across are the same as the one Mark suggested.
http://techgurulive.com/2011/04/20/wrong-permissions-on-configuration-file-should-not-be-world-writable/
As Mark said try to reboot and let us know if it works.
now I don’t know if I fixed it, I just did what glitch first link told me to, but it just gave me around back to my first and now current error the attached image… :3
Uncomment those 2 lines … it was not intended as a fix … just as a test.
Then reboot … and tell us if you still get the “Wrong permissions on configuration file, should not be world writable!” error.
and now I’m confuse about which line was it that I should comment out… because he didn’t specify which line… :3
glitch’s first link told you to comment out 2 lines … is that what you did ?
yes I just did that and fixed it along the way so there is no way the message will show up again, but now the real problem is the attached image… that is my final problem… hmp…
I don’t know which configuration file does this error points to… :3