Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

Htaccess phpmyadmin htaccess

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
Sv3n
Posts: 4
Joined: Sat May 04, 2019 11:42 am

Os: Debian 9x
Web: apache + nginx
Htaccess phpmyadmin htaccess
  • Quote

Post by Sv3n » Sat May 04, 2019 11:47 am

Hi, can help me?

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

daz123
Posts: 2
Joined: Sat May 04, 2019 3:29 pm

Os: CentOS 7x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by daz123 » Sat May 04, 2019 3:44 pm

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.
Top

Sv3n
Posts: 4
Joined: Sat May 04, 2019 11:42 am

Os: Debian 9x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by Sv3n » Sat May 04, 2019 4:25 pm

I am testing.
and how do I do that with cp and roundcube htaccess
Top

daz123
Posts: 2
Joined: Sat May 04, 2019 3:29 pm

Os: CentOS 7x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by daz123 » 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
Top

James
Posts: 1
Joined: Mon Jun 10, 2019 5:12 am
Contact:
Contact James
Facebook

Os: CentOS 6x
Web: nginx + php-fpm
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by James » 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.
Top

jrdavid
Posts: 1
Joined: Mon Mar 16, 2020 3:59 pm

Os: Ubuntu 18x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by jrdavid » 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/
Top

saaamantha
Posts: 2
Joined: Tue Jun 16, 2020 8:03 am

Os: Ubuntu 16x
Web: apache
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by saaamantha » Tue Jun 16, 2020 10:12 pm

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 👌
Top

ah_ah_arthur
Posts: 2
Joined: Tue Jun 16, 2020 10:26 pm

Os: Ubuntu 16x
Web: apache
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by ah_ah_arthur » Sat Jun 20, 2020 12:46 am

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.
Top

meckyzzz
Posts: 1
Joined: Sun Aug 02, 2020 2:41 pm

Os: Debian 9x
Web: apache
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by meckyzzz » Sun Aug 02, 2020 2:52 pm

You just save my Ass!! My websitesuffering from this issue for a long time. Now I need to backup my website.
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Web Interface”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password