setting up phpMyAdmin on Ubuntu Server 22.04. Let's go step by step to get phpMyAdmin working correctly for you:
Download phpMyAdmin: First, ensure that you have phpMyAdmin installed on your server. You can download it using the following command:
bashsudo apt update sudo apt install phpmyadmin
During the installation, you will be asked to choose a web server. Select apache2 using the arrow keys and press Enter.
Now after this the most important work is to set it on URL for example on server's root URL or IP if you
have already deployed any python or node project and you want to access phpmyadmin outsite of that Document
Root then you have to use Allias
for example your server url is 195.35.23.26 and you want to access it on
then you have to make changes in your default conf file like below
<VirtualHost *:80>
ServerName 195.35.23.26
DocumentRoot /root/homemapp
# Rewrite rules for phpMyAdmin
RewriteEngine On
RewriteRule ^/phpmyadmin(/.*)?$ /usr/share/phpmyadmin$1 [L,QSA]
# ProxyPass for Python project
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
<Directory /root/homemapp>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
After this please Restart your Apache server
sudo systemctl restart apache2
- Get link
- Other Apps
- Get link
- Other Apps
Comments
Post a Comment