Configure Tomcat in Fedora

To configure tomcat in fedora follow the bellow steps Step 1: Check version of java $ java -version Output : openjdk version “11.0.7” 2020-04-14 LTS OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing) Step 2 : Download tomcat any version (latest preferred) from https://tomcat.apache.org/ Extract file apache-tomcat-9.0.56.tar.gz […]

Install MariaDB in fedora 33

Solved: To install mysql or myriadb in fedora 33 is quite simple. Step 1: For that open a terminal and simply type the following command. [root@localhost ~]# dnf install mariadb-server  -y Step 2: In second step run the following commad to enable the firewall for mysql [root@localhost ~]# firewall-cmd –add-service=mysql –permanent [root@localhost ~]# firewall-cmd –reload […]

How to create a virtual host in fedora.

Solved: First: Create a file at /etc/httpd/conf.d/ location with .conf extension and insert the following code block. <virtualhost *:80>   DocumentRoot “/var/www/project-folder”   ServerName domain-name    <Directory “/var/www/project-folder”>       Options Indexes FollowSymLinks       AllowOverride All       Require all granted   </Directory></virtualhost> Second: create a project under /var/www/     named “project-folder” as virtualhost DocumentRoot. Insert the domain in hosts file at /etc/hosts […]

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

Solved: Login to new mysql server by following command: $ sudo mysql MariaDB [(none)]> use mysql; MariaDB [mysql]> ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘password’; Now you can login with the following command: $ mysql -u root -p Enjoy.