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:
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:
This is a symlink:
Quote:
with target:
Quote:
and so is this:
Quote:
with target:
Quote:
The owner and group of all these was set to root.
I changed the permissions to myself and group www-data.
Quote:
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?
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? |
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 |
Quote:
/usr/share/phpmyadmin/themes/pmahomme/jquery/jquery-ui.css |
Quote:
../../../../javascript/jquery-ui/themes/base/jquery-ui.css |
Quote:
/usr/share/phpmyadmin/js/vendor/jquery/jquery-ui.min.js |
Quote:
../../../../javascript/jquery-ui/jquery-ui.min.js |
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 |
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?