Article 6JM5P What should be the permissions of /usr/share/javascript ?

What should be the permissions of /usr/share/javascript ?

by
Pedroski
from LinuxQuestions.org on (#6JM5P)
I am using Ubuntu 22.04 I keep it updated all the time.

phpMyAdmin worked fine before.

2 days ago I got nasty red messages and phpMyAdmin was unusable.

Quote:
Fatal javascript error Do you want to send a report?
When I clicked "Send a report" I just got more such messages. phpMyAdmin could not load anything.

I checked my database directly in bash using mysql. No problems.

I had these errors in /var/log/apache2/error.log

Quote:
[Tue Feb 13 18:39:25.841601 2024] [core:error] [pid 41089] [client ::1:43850] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/themes/pmahomme/jquery/jquery-ui.css
[Tue Feb 13 18:39:25.844046 2024] [core:error] [pid 35848] [client ::1:55694] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/jquery/jquery-ui.min.js
This is a symlink:

Quote:
/usr/share/phpmyadmin/themes/pmahomme/jquery/jquery-ui.css
with target:

Quote:
../../../../javascript/jquery-ui/themes/base/jquery-ui.css
and so is this:

Quote:
/usr/share/phpmyadmin/js/vendor/jquery/jquery-ui.min.js
with target:

Quote:
../../../../javascript/jquery-ui/jquery-ui.min.js
The owner and group of all these was set to root.

I changed the permissions to myself and group www-data.

Quote:
sudo chown -R pedro /usr/share/javascript
sudo chgrp -R www-data /usr/share/javascript
Now phpMyAdmin works.

Until recently, phpMyAdmin worked fine, but I hadn't opened it in a while. I wanted to check something and got the "Fatal javascript error"

How is /usr/share/javascript ever going to work with phpMyAdmin in a browser if all the permissions require root as user?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments