No access to phpmyadmin and roundcube

anton1982

Verified User
Joined
Jun 12, 2016
Messages
43
I don't know exactly when this problem has started but my users cannot access phpmyadmin and roundcube through domain.ext/phpmyadmin and domain.ext/roundcube. They get an 403 error. (You don't have permission to access /phpmyadmin on this server). Before this worked fine. I have been searching the web and have read some things about permission on (and in) the /var/www/html folder (should be root:root ?) Please see the image link below for the permissions. Because the post I read on other sites are so old I thought I better ask it here.

Schermafbeelding 2016-12-27 om 16.23.43.png
 
Http or https ?
Versions? ( Config info's server , OS Apache and versions, Da version Custombuild if yes version and build and so on.)
And some updates done?

As it worked before there must be some changes somewhere, so look as narrow as possible the time this started and then the log files searching for updates, and or changed someone the rights, while as this worked before you write, then out of the bleu nothing with rights if not known.....
 
Last edited:
Thank for your replies. I tried the link Richard send but that breaks my installation (websites could not connect to mysql f.e.). I put back a snapshot from before the script. Because it's a live server I won't try it again for now. I compared the permissions on the /var/www/html folders with a working server and they are an exact match. When I look in the error log file i get the following:
[Fri Dec 30 12:25:49.078747 2016] [core:error] [pid 9733:tid 140179469592320] [client xxx.xxx.xxx.xx:65392] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/phpMyAdmin

Any clues?

@ikkeben, do you mean to share all my versions and configs?
 
Versions yes could be some old bug if old or imcompatible with eachother, for Support from DA support they need this ofcourse

Configs the parts that could involve/cause this kind of behavoir, mainly if changed defaults this is important..
Is/should your server/host all HTTPS and only https. ???


You should know yourself if you / server admin has changed user settings/rights ?
Also you should have logs of when what updates take place, so if timewindow of this is same as problem occurs?

Oyea if the Link from Richard is breaking your Install, then take care of not only snapshots but also real DATA and Databases backups, something is really wrong then i think/suspect!

All that is not default is very important to check. ( some if these things could break after updates )

Also you could book remote support At SMTALK ( MARTYNAS) or Alex here in forum, if you have direct Admin license from directadmin and not via HOSTER you could open a support ticket at directadmin.

What is You hosting company saying?
 
Last edited:
Are you using CloudLinux? If yes try disable Symlink Protection:
http://docs.cloudlinux.com/index.html?symlink_owner_match_protection.html

If so yes ( therefore i asked for versions / configs [Glass ball] is n't helping that support have to gues what you're using.) ;) maybe but that doesn't explain this?
I tried the link Richard send but that breaks my installation (websites could not connect to mysql f.e.)

Also not explaining this has worked before, because after going to a cloudlinux / changing that settings you..?
 
Last edited:
They have a bug :) The bugfix for now is:
Code:
chown webapps:webapps /var/www/html
 
Hi, recently i have same problem , roundcube url (https://domain.com/roundcube/) show this error:

Forbidden

You don't have permission to access this resource.

and also click on phpmyadmin not work (without any action!)

@smtalk
is there any new bug?! how can i solve it?
 
check the logs for more info :)
[Sat Jan 30 15:54:23.417787 2021] [cgi:error] [pid 8841:tid 140373179279104] [client 182.114.102.155:0] AH02811: script not found or unable to stat: /var/www/html/setup.cgi [Sat Jan 30 17:36:35.745410 2021] [proxy_fcgi:error] [pid 15043:tid 140373330249472] [client 45.155.205.108:0] AH01071: Got error 'Primary script unknown' [Sat Jan 30 21:05:32.947499 2021] [core:error] [pid 27616:tid 140373355427584] [client 2.181.110.246:0] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/roundcube

is there need any more log check?
 
"Symbolic link not allowed or link target not accessible: /var/www/html/roundcube"

Please let us know the output of:
Code:
ls -la /var/www/html
 
"Symbolic link not allowed or link target not accessible: /var/www/html/roundcube"

Please let us know the output of:
Code:
ls -la /var/www/html
sure. atthached
 

Attachments

  • 2021-01-31_17-04-52.png
    2021-01-31_17-04-52.png
    25.9 KB · Views: 138
For some reason your roundcube folder is owned by root. Try resetting permissions to webapps.
 
For some reason your roundcube folder is owned by root. Try resetting permissions to webapps.
done. after that it show attached error.
 

Attachments

  • 2021-01-31_21-47-22.png
    2021-01-31_21-47-22.png
    10.7 KB · Views: 125
  • 2021-01-31_21-51-42.png
    2021-01-31_21-51-42.png
    28 KB · Views: 132
Can you build again and see if that spews errors?
Code:
cd /usr/local/directadmin/custombuild
./build update
./build roundcube
 
Can you build again and see if that spews errors?
Code:
cd /usr/local/directadmin/custombuild
./build update
./build roundcube
thank you. issue solved.

and about phpmyadmin. reason of my problem was phpmyadmin_public option which i set to no. with yes it work and ask username/password in new window. but i dont want it . if i set it to no, it dont do any action. can you tell me whats problem?
 
Back
Top