LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2010, 08:07 AM   #1
dannyu
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
installing WEB SERVER on linux (CENTOS)


Hi,

I'm trying to install a thttp web server which is part of a TI software package for embedded video systems.

after running the configuration file I did a make install which
seemed to be running and printed put lines, but eventually got error
because of chgrp command which failed. (see attached).

cp makeweb /usr/local/sbin/makeweb
chgrp www /usr/local/sbin/makeweb
chgrp: invalid group `www'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/user/dvsdk_2_10_01_18/examples/dm365/thttpd-2.25b/extras'
make: *** [installsubdirs] Error 2


Can anyone give me a hint, what to do next/how to define this group?

Thank you,
Danny
 
Old 11-10-2010, 08:09 AM   #2
Mark1986
Member
 
Registered: Aug 2008
Location: Netherlands
Distribution: Xubuntu
Posts: 87

Rep: Reputation: 11
Using Google: http://linux.die.net/man/8/groupadd

Hope this helps you.
 
Old 11-10-2010, 08:29 AM   #3
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
I'm a little surprised that Centos doesn't already have the 'www' group in the /etc/group file.
Assuming you are installing an Apache web server, you should see something like below.

Run this command from a terminal.
Code:
grep www /etc/group

www:x:8:
If nothing shows up as an answer, than create the group yourself with the 'groupadd' command.
Look at the /etc/passwd file to see if there's a 'wwwrun' user there, and use the group number from that to create the group.
Code:
grep wwwrun /etc/passwd

wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
Here the group number is '8' in the above line. You should assign the group number the same as what yours shows.

Last edited by udaman; 11-10-2010 at 08:30 AM.
 
Old 11-10-2010, 09:56 AM   #4
cparapat
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26

Rep: Reputation: 0
Why don't try with easy feature from centos.

Quote:
Originally Posted by dannyu View Post
Hi,

I'm trying to install a thttp web server which is part of a TI software package for embedded video systems.

after running the configuration file I did a make install which
seemed to be running and printed put lines, but eventually got error
because of chgrp command which failed. (see attached).

cp makeweb /usr/local/sbin/makeweb
chgrp www /usr/local/sbin/makeweb
chgrp: invalid group `www'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/user/dvsdk_2_10_01_18/examples/dm365/thttpd-2.25b/extras'
make: *** [installsubdirs] Error 2


Can anyone give me a hint, what to do next/how to define this group?

Thank you,
Danny
Hi Dannyu,

How if you try a easier feature from CentOS using with "yum" ?
Try this, "yum install httpd". It will not spent your time only for installing the webserver. Except, if you want to learn for try installing from the source code.
 
Old 11-10-2010, 10:04 AM   #5
cparapat
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26

Rep: Reputation: 0
Quote:
Originally Posted by udaman View Post
I'm a little surprised that Centos doesn't already have the 'www' group in the /etc/group file.
Actually, in Centos is not using www as a user and group as default for apache directory. In OpenSuSE, yes it is. It using a user "apache" as a user and group as default. And the root directory is different from openSuSE. It goes to "/var/www/" as default.
 
Old 11-11-2010, 01:34 AM   #6
dannyu
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by udaman View Post
I'm a little surprised that Centos doesn't already have the 'www' group in the /etc/group file.
Assuming you are installing an Apache web server, you should see something like below.

Run this command from a terminal.
Code:
grep www /etc/group

www:x:8:
If nothing shows up as an answer, than create the group yourself with the 'groupadd' command.
Look at the /etc/passwd file to see if there's a 'wwwrun' user there, and use the group number from that to create the group.
Code:
grep wwwrun /etc/passwd

wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
Here the group number is '8' in the above line. You should assign the group number the same as what yours shows.
Thanks for the input.
The grep failed to find any results on both the direcotries you suggested.
Also this command is being rejected within the command line.
it doesn't work as there is no gropuadd command in the os.
Afterwards I saw in the response by CPARAPAT saying that CENTOS doesn't support this.
Thanks again,
Danny

Last edited by dannyu; 11-11-2010 at 01:38 AM.
 
Old 11-11-2010, 01:54 AM   #7
dannyu
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cparapat View Post
Hi Dannyu,

How if you try a easier feature from CentOS using with "yum" ?
Try this, "yum install httpd". It will not spent your time only for installing the webserver. Except, if you want to learn for try installing from the source code.
Thank you,

ofcourse I prefer to install it with yum (which as I understand
works like windows install/setup), but this also failes to perform.
Since I had a thought that maybe files are missing within the TI software package I got (DVSDK 365), I downloaded the thttpd package again from a website to find out that all matches (i.e. all files exists). (but still no sccess).

Thanks,
Danny
 
Old 11-11-2010, 06:41 AM   #8
dannyu
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mark1986 View Post
Using Google: http://linux.die.net/man/8/groupadd

Hope this helps you.
Thanks!
 
Old 11-11-2010, 06:46 AM   #9
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi dannyu

When you tried yum install httpd - what was the error you got? Apache(httpd) is a part of the official RHEL and CentOS repos so it should work provided that your yum repositories are correctly configured. Do other installs with yum work?
 
Old 11-11-2010, 09:33 AM   #10
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
Quote:
Originally Posted by cparapat View Post
Actually, in Centos is not using www as a user and group as default for apache directory.
The OP showed the makefile error as being
Code:
chgrp: invalid group `www'
make[1]: *** [install] Error 1
The RPM was built by Centos, but RPMs don't always agree with the developers of the source code. The source code was clearly looking for the "www" group, and the OP was trying to install source code, not RPMs.

I roll with the fact, not what I think is fact.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5.4 Apache 2.2.3 web server problem with virtualhost dalvis Linux - Server 1 07-30-2010 02:28 AM
Problem installing ghostscript on web server (Linux 2.6.9-023stab048.4-smp) rantastic Linux - Newbie 4 12-11-2009 04:08 PM
centOS web and mail server problem rockrockers23 Linux - Newbie 1 11-26-2008 01:23 AM
CentOS Web Server - Where to Keep Website Files Ascendancy5 Linux - Server 5 11-21-2008 12:39 PM
Web Server setup- CentOS 5.2 64-bit jwinstallations Linux - Server 3 08-31-2008 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration