Installing PHPMyAdmin Through Command Line

This will guide will show you what you need to do to install phpmyadmin on CentOS via command line. In order to install phpMyAdmin you need to add a repository that contains the download. You can add the repository by executing the following command.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm

Once the repository has been added you will need to update the sources.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
yum check-update
yum check-update
yum check-update

Now that the repository has been added you can install phpMyAdmin

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
yum install phpMyAdmin
yum install phpMyAdmin
yum install phpMyAdmin

Once installed restart the server in order to pick up the application.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
service httpd restart
service httpd restart
service httpd restart

Now you can now use PhpMyAdmin through your web browser by visiting /phpmyadmin

If You Get Error 403 Forbidden

Sometimes you might get a 403 forbidden error. This is because phpmyadmin is denying access from outside the local domain. If you are accessing a remote server via SSH you will most likely have this issue. To resolve it you will need to either remove the IP restriction or simply remove all restrictions. This is done by editing the phpmyadmin conf file.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
vi /etc/httpd/conf.d/phpMyAdmin.conf
vi /etc/httpd/conf.d/phpMyAdmin.conf
vi /etc/httpd/conf.d/phpMyAdmin.conf

You will see a few blocks of code that look like the code below. You will need to either remove these (not recommended) or replace 127.0.0.1 with your own IP address. You can get the IP address of your address by typing “whats my ip” into google.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip 127.0.0.1 Require ip ::1 </RequireAny> </IfModule>
<IfModule mod_authz_core.c>
    # Apache 2.4
    <RequireAny>
        Require ip 127.0.0.1
        Require ip ::1
    </RequireAny>
</IfModule>

Related Articles

Related Questions

Help! My New PC Won’t Power On

Hey everyone! I just built a new PC and I'm running into a major issue – it won't power on! The fans are working,...

Scaling Docker Trading Bots on AWS for More Users

I'm currently developing a platform where users can run Python trading bots, with each strategy executed in its own Docker container. Given that I...

Why is my CS2 performance not as smooth as expected?

Hey everyone! I recently built a new PC with some pretty powerful specs, specifically for playing CS2, but I'm running into a bizarre issue....

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Tools

OpenAI Token Calculator

This tool is a simple OpenAI token calculator, web-based utility designed to help you quickly estimate the number of tokens in your text when...

List Sorting Tool

Welcome to our innovative list ordering and management tool. This next-level platform enables you to sort a list of items in ascending or descending...

Sudoku Solver

Welcome to our free online Sudoku solving tool, an interactive platform for puzzle enthusiasts seeking a break from a Sudoku conundrum. This advanced platform...

Apply Image Filters To Image

Digital imagery in the modern world is all about reinforcing emotions and stories behind each photo we take. To amplify this storytelling, we are...

Add Watermark To Image

As the world is increasingly consumed by digital media, protecting your original images is paramount. We are thrilled to introduce you to our innovative...

CSV To Xml Converter

Welcome to our CSV to XML converter tool, a convenient and user-friendly solution for all your data conversion needs. This versatile tool on our...

Latest Posts

Latest Questions