Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]phpmyadmin doesn't show the login screen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wenyongming
n00b
n00b


Joined: 22 Sep 2013
Posts: 4
Location: wuhan, hubei province, China

PostPosted: Sun Sep 22, 2013 1:08 pm    Post subject: [Solved]phpmyadmin doesn't show the login screen Reply with quote

I just installed mariadb and then the apache and phpmyadmin, after typed the http://localhost/phpmyadmin/ in firefox I didn't get the login screen but some files like ChangLog, browse_foreigners.php ,etc. I found it is the files in /var/www/localhost/htdocs/phpmyadmin/, and if I typed the http://localhost/phpmyadmin/index.php, it showed that "You don't have permission to access /phpmyadmin/index.php on this server."I use the default configurations and I can use mariadb in shell. Any suggestions?

Last edited by wenyongming on Tue Sep 24, 2013 11:13 am; edited 1 time in total
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1519

PostPosted: Sun Sep 22, 2013 2:43 pm    Post subject: Reply with quote

Try that:
Code:
(root)# USE="apache2" emerge -v --oneshot php
Back to top
View user's profile Send private message
wenyongming
n00b
n00b


Joined: 22 Sep 2013
Posts: 4
Location: wuhan, hubei province, China

PostPosted: Mon Sep 23, 2013 8:18 am    Post subject: Reply with quote

quilosaq wrote:
Try that:
Code:
(root)# USE="apache2" emerge -v --oneshot php

I had enabled the apache2 use.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3919
Location: Hamburg

PostPosted: Mon Sep 23, 2013 9:59 am    Post subject: Reply with quote

/me assumes, you've te unstable apache alreday installed ? Then look for the .htaccess file of phpmyadmin, it isn't recognized by the newer apache version. The apache2 log should point in addition to that file.
Back to top
View user's profile Send private message
wenyongming
n00b
n00b


Joined: 22 Sep 2013
Posts: 4
Location: wuhan, hubei province, China

PostPosted: Mon Sep 23, 2013 12:13 pm    Post subject: add the setup use Reply with quote

after add the use 'setup' to phpmyadmin, it works.thanks for your replies.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Mon Sep 23, 2013 2:28 pm    Post subject: Reply with quote

just a heads up, this program needs to be protected by an IDS, or else you can brute force passwords. id make note of how to disable the login page once configured for now.
Back to top
View user's profile Send private message
wenyongming
n00b
n00b


Joined: 22 Sep 2013
Posts: 4
Location: wuhan, hubei province, China

PostPosted: Tue Sep 24, 2013 12:40 am    Post subject: Reply with quote

666threesixes666 wrote:
just a heads up, this program needs to be protected by an IDS, or else you can brute force passwords. id make note of how to disable the login page once configured for now.

what kind of IDS? I've never used such things before. And it warns me to delete the configuration file, what should I do?
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Tue Sep 24, 2013 2:29 am    Post subject: Reply with quote

something that monitors logs, and stops people from repeatedly giving bad passwords. fail2ban is my best guess, but i don't know how to set fail2ban up.

personally id just do manipulations to databases and turn phpmyadmin off when not using it. if i need to turn it back on ssh into machine and re link.

my move is

Code:

#move phpmyadmin out of web root, to symlink instead.
sudo mv /var/www/localhost/htdocs/phpmyadmin/ /var/www/localhost/phpmyadmin
#turned on
sudo ln -s /var/www/localhost/phpmyadmin/ /var/www/localhost/htdocs/phpmyadmin
#turned off
sudo rm -rf /var/www/localhost/htdocs/phpmyadmin/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum