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,170 points
554 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,060 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 22, 2019 in Linux Administration by Ishaan
162 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,090 points
4,798 views
0 votes
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,060 points
79,518 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
260 views
0 votes
2 answers

Install postgreSQL on Ubuntu

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

answered Nov 11, 2020 in Database by Prachi
• 140 points
238 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
163 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 8, 2020 in Linux Administration by MD
• 95,060 points
612 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 13, 2020 in Linux Administration by MD
• 95,060 points
3,896 views