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 in Linux Administration by akhtar
• 11,270 points
58 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 by MD
• 24,500 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
83 views
+1 vote
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,060 points
3,301 views
0 votes
1 answer

What does file permission 755 mean?

A 777 permission on the directory means that everyone has access ...READ MORE

answered Dec 21, 2018 in Linux Administration by Omkar
• 69,060 points
27,909 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
144 views
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
116 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
78 views
0 votes
1 answer

not able to run netstat-tnlp in Linux.

Hi@akhtar, In Linux system netstat-tnlp command comes from ...READ MORE

answered Apr 16 in Linux Administration by MD
• 24,500 points
24 views
0 votes
1 answer