Page 1 of 1

Htaccess phpmyadmin htaccess

Posted: Sat May 04, 2019 11:47 am
by Sv3n
Hi, can help me?

I will my phpmyadmin with a htaccess how can I do that?

Re: Htaccess phpmyadmin htaccess

Posted: Sat May 04, 2019 3:44 pm
by daz123
Hi,

I am guessing you want to protect phpmyadmin from public access.

In the file:

Code: Select all

/etc/httpd/conf.d/phpMyAdmin.conf
You can find and change:

Code: Select all

<Directory /usr/share/phpMyAdmin/>
   Order Deny,Allow
   Deny from All
   Allow from 12.34.56.78
</Directory>
replace

Code: Select all

12.34.56.78
with your own ip, you can add multiple lines.

Restart/reload apache after the change.

Re: Htaccess phpmyadmin htaccess

Posted: Sat May 04, 2019 4:25 pm
by Sv3n
I am testing.
and how do I do that with cp and roundcube htaccess

Re: Htaccess phpmyadmin htaccess

Posted: Sat May 04, 2019 5:38 pm
by daz123

Code: Select all

/etc/httpd/conf.d/roundcubemail.conf
You do the same kind of thing with that file, btw if you are worried about those apps being hacked in the future, you could just install mod_security

Re: Htaccess phpmyadmin htaccess

Posted: Mon Jun 10, 2019 5:25 am
by James
daz123 wrote:
Sat May 04, 2019 5:38 pm

Code: Select all

/etc/httpd/conf.d/roundcubemail.conf
You do the same kind of thing with that file, btw if you are worried about those apps being hacked in the future, you could just install mod_security
Thank. I have the same problem, I hope it will help me mod_security for my site.

Re: Htaccess phpmyadmin htaccess

Posted: Mon Mar 16, 2020 4:59 pm
by jrdavid
Create a backup copy before you edit any .htaccess file. I am giving you a reference article, might this help you https://mythemeshop.com/blog/edit-htaccess-file/

Re: Htaccess phpmyadmin htaccess

Posted: Tue Jun 16, 2020 10:12 pm
by saaamantha
jrdavid wrote:
Mon Mar 16, 2020 4:59 pm
Create a backup copy before you edit any .htaccess file. I am giving you a reference article, might this help you https://mythemeshop.com/blog/edit-htaccess-file/
Hey grillguru, I agree with this guy so hard. Learned the hard way for my dear site to ALWAYS back up back up back up!!! Not going into detail, because it just makes my blood boil. grrrr. Also jrdavid! Nice article - read the whole thing and learned a lot. So neat my guy 👌

Re: Htaccess phpmyadmin htaccess

Posted: Sat Jun 20, 2020 12:46 am
by ah_ah_arthur
James wrote:
Mon Jun 10, 2019 5:25 am
daz123 wrote:
Sat May 04, 2019 5:38 pm

Code: Select all

/etc/httpd/conf.d/roundcubemail.conf
You do the same kind of thing with that file, btw if you are worried about those apps being hacked in the future, you could just install mod_security
Thank. I have the same problem, I hope it will help me mod_security for my site.
You know what, this is useful for me too. I also need mod security for my site. I want the best for it. This thread also reminded me to backup everything.

Re: Htaccess phpmyadmin htaccess

Posted: Sun Aug 02, 2020 2:52 pm
by meckyzzz
You just save my Ass!! My websitesuffering from this issue for a long time. Now I need to backup my website.