Discover public questions
To set up your server with Proxmox VE and create the specified virtual machines and configurations, follow these steps:
Prepare Your Server:
Download Proxmox VE:
Create a Bootable USB Drive:
Install Proxmox VE:
Access the Proxmox Web Interface:
https://<your-server-ip>:8006
in a web browser.Create the Application VM:
Create the Database VM:
Access the Application VM:
Create Subdirectories:
/var/www
).mkdir /var/www/internet_app
mkdir /var/www/web_app
Access the Database VM:
Install MariaDB:
sudo apt update
sudo apt install mariadb-server
Secure MariaDB Installation:
sudo mysql_secure_installation
Create Databases:
sudo mysql -u root -p
CREATE DATABASE internet_app_db;
CREATE DATABASE web_app_db;
EXIT;
By following these steps, you will have set up Proxmox VE on your server, created two virtual machines for your application and database, established subdirectories for your applications, and created the necessary databases in MariaDB.
Certainly! Below are the detailed steps to install Proxmox VE, create virtual machines, set up subdirectories, and create databases as per your requirements.
Download Proxmox VE ISO:
Create a Bootable USB Drive:
Boot from USB:
Install Proxmox VE:
Complete Installation:
https://<your-server-ip>:8006
in a web browser.Log in to Proxmox Web Interface:
Create Application VM:
Application-VM
.Create Database VM:
Database-VM
and allocate resources as needed.Access the Application VM:
Install Required Packages:
sudo apt update
sudo apt install apache2 php libapache2-mod-php
Create Subdirectories:
/var/www/html
):
cd /var/www/html
sudo mkdir internet_application
sudo mkdir web_application
Set Permissions:
sudo chown -R www-data:www-data internet_application
sudo chown -R www-data:www-data web_application
Access the Database VM:
Install MariaDB:
sudo apt update
sudo apt install mariadb-server
Secure MariaDB Installation:
sudo mysql_secure_installation
Log in to MariaDB:
sudo mysql -u root -p
Create Databases:
CREATE DATABASE internet_application_db;
CREATE DATABASE web_application_db;
Create Users (Optional):
CREATE USER 'internet_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON internet_application_db.* TO 'internet_user'@'localhost';
CREATE USER 'web_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON web_application_db.* TO 'web_user'@'localhost';
Exit MariaDB:
exit;
to leave the MariaDB shell.You have now successfully installed Proxmox VE, created two virtual machines (one for applications and one for the database), established subdirectories in the Application VM, and created databases in the Database VM. You can now proceed to deploy your PHP applications and connect them to the MariaDB databases as needed.