Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I enter localhost/phpmyadmin in my browser, I see the phpMyAdmin favicon.ico icon, but no login window.
apache2/error.log has this after I attempt to open phpMyAdmin in the browser:
Quote:
[Sun Feb 05 11:45:12.172578 2023] [core:error] [pid 8773] [client ::1:54076] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/lib
[Sun Feb 05 11:45:12.174276 2023] [core:error] [pid 8772] [client ::1:54084] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/addon/hint
[Sun Feb 05 11:45:12.176255 2023] [core:error] [pid 8821] [client ::1:54086] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/addon/lint
[Sun Feb 05 11:45:12.178496 2023] [core:error] [pid 9646] [client ::1:54100] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/jquery/jquery.min.js
[Sun Feb 05 11:45:12.189018 2023] [core:error] [pid 9646] [client ::1:54100] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/bootstrap/bootstrap.bundle.min.js
[Sun Feb 05 11:45:12.190280 2023] [core:error] [pid 8821] [client ::1:54086] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/jquery/jquery-ui.min.js
[Sun Feb 05 11:45:12.191505 2023] [core:error] [pid 8772] [client ::1:54084] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/jquery/jquery.mousewheel.js
[Sun Feb 05 11:45:12.192675 2023] [core:error] [pid 8773] [client ::1:54076] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/jquery/jquery-ui-timepicker-addon.js
[Sun Feb 05 11:45:12.212309 2023] [core:error] [pid 8773] [client ::1:54076] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/lib
[Sun Feb 05 11:45:12.213699 2023] [core:error] [pid 8772] [client ::1:54084] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/mode/sql/sql.js
[Sun Feb 05 11:45:12.213753 2023] [core:error] [pid 8821] [client ::1:54086] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/addon/runmode/runmode.js
[Sun Feb 05 11:45:12.213789 2023] [core:error] [pid 9646] [client ::1:54100] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/addon/hint
[Sun Feb 05 11:45:12.216240 2023] [core:error] [pid 8839] [client ::1:54116] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/addon/hint
[Sun Feb 05 11:45:12.216278 2023] [core:error] [pid 8774] [client ::1:54120] AH00037: Symbolic link not allowed or link target not accessible: /usr/share/phpmyadmin/js/vendor/codemirror/addon/lint
There is a symlink in /usr/share/phpmyadmin/js/vendor/codemirror/ called lib which points to ../../../../javascript/codemirror/lib which is /usr/share/javascript
The owner of /usr/share/javascript is root.
Should I change the owner of /usr/share/javascript to www-data? Or the group to www-data?
There was no mention of /usr/share/javascript in the tutorial I followed.
There is a symlink in /usr/share/phpmyadmin/js/vendor/codemirror/ called lib which points to ../../../../javascript/codemirror/lib which is /usr/share/javascript
The owner of /usr/share/javascript is root.
Should I change the owner of /usr/share/javascript to www-data? Or the group to www-data?
There was no mention of /usr/share/javascript in the tutorial I followed.
There is something wrong here. phpMyadmin zipfile extracts in a directory and doesn't use symlinks outside that directory.
In fact, I have a couple of phpMyadmin instances running in 2 different servers and in none of those there is a symlink /usr/share/phpmyadmin/js/vendor/codemirror/lib
That is a real directory containing 2 files (codemirror.css, codemirror.js)
And /etc/apache2/conf-enabled has a symlink to /etc/apache2/conf-available
Also, /usr/share/nodejs contains files need by apache2 for use with phpmyadmin, but that was not a fatal error, phpadmin still started, but I also changed the owner there to www-data.
After I changed the owner from root to www-data, I don't get any errors from apache2 when starting phpmyadmin.
I don't know what other programmes apart from apache2 and phpmyadmin might want to use javascript.
If I get a problem, then I will have to deal with it. I haven't noticed any problem so far.
This is not a server set-up, just my laptop. The set-up on my little cloud server seems very different, but that is Ubuntu 20.04 Server edition.
I asked the same question on stackoverflow. One of the phpadmin package maintainers gave me this link:
Specifically, this option in the php apache.conf file should fix the problem of a symlink to a directory not accessible to www-data, according to package maintainer William Desportes
Quote:
Options SymLinksIfOwnerMatch
I have not tried this yet, because phpmyadmin is working, and our new term is coming up, I need it working!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.