LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing WEB SERVER on linux (CENTOS) (https://www.linuxquestions.org/questions/linux-newbie-8/installing-web-server-on-linux-centos-843441/)

dannyu 11-10-2010 08:07 AM

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

Mark1986 11-10-2010 08:09 AM

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

Hope this helps you.

udaman 11-10-2010 08:29 AM

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.

cparapat 11-10-2010 09:56 AM

Why don't try with easy feature from centos.
 
Quote:

Originally Posted by dannyu (Post 4154760)
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.

cparapat 11-10-2010 10:04 AM

Quote:

Originally Posted by udaman (Post 4154778)
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.

dannyu 11-11-2010 01:34 AM

Quote:

Originally Posted by udaman (Post 4154778)
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

dannyu 11-11-2010 01:54 AM

Quote:

Originally Posted by cparapat (Post 4154834)
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

dannyu 11-11-2010 06:41 AM

Quote:

Originally Posted by Mark1986 (Post 4154762)
Using Google: http://linux.die.net/man/8/groupadd

Hope this helps you.

Thanks!

alli_yas 11-11-2010 06:46 AM

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?

udaman 11-11-2010 09:33 AM

Quote:

Originally Posted by cparapat (Post 4154841)
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.


All times are GMT -5. The time now is 10:51 PM.