So you’ve tried to access phpMyAdmin after installing Vicibox 9 iso on your bare metal or virtual server and it’s not working…..and you’re wondering why? Well, as a security precaution, phpMyAdmin is not enabled by default and needs a symbolic link created, so let’s start there. If you don’t have it installed already, “zypper in phpMyAdmin”.
Type the following command into your Linux CLI:
ln -s /usr/share/phpMyAdmin /srv/www/htdocs/
Now that we have created the symbolic link, we need to secure this directory to make sure any unwanted access isn’t permitted. We are going to accomplish this using .htaccess
Edit your phpMyAdmin.conf file in /etc/apache2/conf.d
nano /etc/apache2/conf.d/phpMyAdmin.conf
### change the following:
<Directory /usr/share/phpMyAdmin>
Options FollowSymLinks
AllowOverride All #This was "None"
<IfVersion < 2.4>
Order Deny,Allow
Allow from all
</IfVersion>
### save and exit ###
nano /usr/share/phpMyAdmin/.htaccess
####Enter the following:
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpMyAdmin/.htpasswd
Require valid-user
###save and exit
zypper install apache2-utils
htpasswd -c /etc/phpMyAdmin/.htpasswd whatever.username.u.want
Password: enter the password u want
##restart apache
service apache restart or systemctl restart apache
###go to your phpmyadmin
https://server.ip/phpMyAdmin
##Enjoy
Hopefully this will help some of you avoid some easier hacks. For more information on securing your servers, check out our free security audit!
How to - Fix Apache not starting on ViciBox There is a new issue with…
How to - Use the full functionality of the ViciDial installer by carpenox Vicidial administrators, take note: the Carpenox Auto Installer is about to change the game. This tool transforms the usually complex setup of Vicidial into a smooth, hassle-free experience. Let…
How to - Decrease SDP(short duration percent) in ViciDial There is a new feature in…
August 2024 VICIdial Security Update Please read this carefully as it contains important information regarding…
50% off by joining our discord! Unlock 50% Off Any Item in Our Store by…
Empower Your Business with a White Labeled Dialer Solution from CyburDial In today's rapidly evolving…
This website uses cookies.