group apache does not exist - using root

0 votes

I am trying to install apache webserver in my system, but I am getting this below warning and also not able to start werserver.

$ yum install httpd
warning: group apache does not exist - using root
warning: user apache does not exist - using root
warning: group apache does not exist - using root
warning: group apache does not exist - using root
warning: user apache does not exist - using root
warning: group apache does not exist - using root
warning: user apache does not exist - using root
warning: group apache does not exist - using root
warning: user apache does not exist - using root
warning: group apache does not exist - using root
  Verifying  : httpd-2.4.6-80.el7.x86_64                                           1/1
useradd apache
useradd: existing lock file /etc/gshadow.lock without a PID
user apache does not exist - using root
useradd: cannot lock /etc/gshadow; try again later
$ systemctl start httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details
Apr 14, 2020 in Linux Administration by akhtar
• 38,230 points
3,467 views

1 answer to this question.

0 votes

Hi@akhtar,

When we install apache wevserver in our system, it will create one user and group named apache. But in your system apache webserver is not able to create user apache because one PID file is already exist. So remove the file and then try to start service.

$ rm -rf /etc/gshadow
$ useradd apache

Hope this will help.

answered Apr 14, 2020 by MD
• 95,440 points

Related Questions In Linux Administration

0 votes
1 answer

Installation fails on xenial "Repository does not have a release file"

This bug is missing log files that ...READ MORE

answered May 23, 2019 in Linux Administration by Ishaan
591 views
0 votes
0 answers

Why does my tail command -n+NUM not work?

I want to understand the following command ...READ MORE

Apr 13, 2022 in Linux Administration by Soham
• 9,700 points
416 views
+2 votes
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

answered Nov 28, 2018 in Linux Administration by Omkar
• 69,210 points
7,729 views
+1 vote
2 answers

What does file permission 755 mean?

Hi, File permission 755 means that the directory ...READ MORE

answered Dec 9, 2020 in Linux Administration by MD
• 95,440 points
252,608 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
960 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
932 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
654 views
0 votes
1 answer

Volume group "mylv" not found Cannot process volume group mylv

Hi@akhtar, You got this error because your command ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,440 points
4,215 views
0 votes
1 answer

chmod: changing permissions of '/root/': Operation not permitted

Hi@akhtar, You got this error because your user ...READ MORE

answered Aug 14, 2020 in Linux Administration by MD
• 95,440 points
135,813 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP