Firewalld not running

perfomed below commands:

sudo yum install -y firewalld
sudo service firewalld start
sudo systemctl enable firewalld

unfortunately status shows not running.
see screen short attached.

Above issue is for E-commerce lab task 2.

Hello @San.tech,
I went through your post and I see you have been having trouble with the firewalld service, but this task is not part of the two project labs in the end.
Here are the steps to be followed for that specific lab:

1  yum install -y mariadb-server
2  service mariadb start
3  systemctl enable mariadb
4  mysql (and the in the prompt)
  MariaDB > CREATE DATABASE ecomdb;
 MariaDB > CREATE USER 'ecomuser'@'localhost' IDENTIFIED BY 'ecompassword';
 MariaDB > GRANT ALL PRIVILEGES ON *.* TO 'ecomuser'@'localhost';
 MariaDB > FLUSH PRIVILEGES;
  
5  mysql < /opt/db-load-script.sql
6   yum install -y httpd php php-mysql
7  sed -i 's/index.html/index.php/g' /etc/httpd/conf/httpd.conf
8  service httpd start; systemctl enable httpd
9  yum install -y git; git clone https://github.com/kodekloudhub/learning-app-ecommerce
10 sed -i ‘s/172.20.1.101/localhost/g’ /var/www/html/index.php

Thanks,
KodeKloud Support

I was following the steps on github documentations.
thinking the firewalld needs to be started before proceeding.

will proceed with your advise.
thanks for clarifying

You are welcome.
Happy learning!

Hi,
I was going through the same task again, by creating database in mariadb.
unfortunately am getting access denied message.
See screen shot attached.

Regards

by the way the above task is for “LABS – SETUP E-COMMERCE APP – DISTRIBUTED”.

Thanks

Hello @San.tech
Please use the sudo before the command. Seems like a Thor user doesn’t have enough permission to perform this task.

Regards,
KodeKloud Support

Hi,
Sudo within Mariadb? i thought sudo is reserved for Linux only.
i have tried it as suggested:

Sudo CREATE DATABASE ecomdb; 

Am getting syntex error.

I am saying for the mysql command: -

sudo mysql