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: bash Copy code sudo 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 http://195.35.23.26/phpmyadmin/ 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 Rewrit
How to to deploy python app sepratly on same server (previous one ) /root/demo - Deploy Python app on Ubuntu Server using ssh Terminal - by Vasu Birla
hello friends , am Vasu Birla and Today we will deploy Python App.. in previous post we have deployed NODE js app on 0.0.0.0 (your server IP) and acess it using http://0.0.0.0/ Now If you want to deploy a Python app separately on the same server, in the /root/demo directory, and access it using http://0.0.0.0/demo, you can use Apache2 and mod_wsgi to host the Python app. Additionally, you can configure Apache2 to proxy the requests for the /demo path to your Python app without affecting the Node.js app hosted at the root. First of all put your python project folder on root location of server , using putty with cloning git repo or using FTP server and direct paste folder (in previous post we aleady discussed it) lets suppose your folder name is demo .. location would be /root/demo install necessery things to support your python app . like pip install or django ..etc as well install in virtual enviorment also .. -> python3 -m venv venv -> source v