Web-Portal is a web-based tool that simplifies network configuration, service management, and system administration tasks. It can be installed on any Linux distribution, including Fedora CoreOS. This tutorial will guide you through the steps to install Web-Portal from GitHub repository on Fedora CoreOS Latest.
Before you start with the installation process, ensure that you have the following prerequisites:
To run Web-Portal on Fedora CoreOS, you need to install some dependencies first. You can install them by running the following command in the terminal:
sudo dnf install git curl wget httpd mod_ssl php php-cli php-mysqlnd php-json php-mbstring php-gd php-xml php-fpm php-opcache php-zip -y
This command installs Git, Apache web server, PHP, and other required packages.
Next, you need to download the Web-Portal source code from GitHub repository. You can do this by running the following command:
git clone https://github.com/enchant97/web-portal.git
This command clones the Web-Portal repository into the current directory.
After downloading Web-Portal, you need to edit the configuration files. Navigate to the web-portal directory and open the config.ini file with your preferred text editor:
cd web-portal
sudo nano config.ini
In the config.ini file, you can specify the database credentials, login credentials, and other settings as per your requirements.
To configure the Apache web server, you need to create a new virtual host for Web-Portal. Create a new file called web-portal.conf
in the /etc/httpd/conf.d/
directory:
sudo nano /etc/httpd/conf.d/web-portal.conf
Add the following configuration to the web-portal.conf file:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/web-portal
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/web-portal
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/localhost.crt
SSLCertificateKeyFile /etc/ssl/private/localhost.key
</VirtualHost>
Save and close the file.
PHP-FPM (FastCGI Process Manager) is a PHP processor that works with Apache web server to handle PHP scripts. Install PHP-FPM by running the following command:
sudo dnf install php-fpm -y
Next, edit the php-fpm.conf
file:
sudo nano /etc/php-fpm.conf
Update the following lines:
pid = /run/php-fpm/php-fpm.pid
listen = /run/php-fpm/www.sock
Save and close the file.
Start the Apache and PHP-FPM services by running the following commands:
sudo systemctl start httpd
sudo systemctl start php-fpm
Enable these services to start on system boot:
sudo systemctl enable httpd
sudo systemctl enable php-fpm
You can now access the Web-Portal on your Fedora CoreOS by opening a web browser and entering the following URL:
http://<your-ip-address>/web-portal/
Replace <your-ip-address>
with the IP address of your Fedora CoreOS system.
In this tutorial, you learned how to install Web-Portal on Fedora CoreOS Latest. By following these steps, you can easily set up the Web-Portal and start using it for network configuration, service management, and system administration tasks.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!