Current time: 04-26-2024, 04:01 AM Hello There, Guest! (LoginRegister)


Post Reply 
(CentOS) ERROR: Unknown user 'www-data' !
Author Message
rajahomega Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #1
(CentOS) ERROR: Unknown user 'www-data' !
I am using cent OS, after I enter the information it says

Quote:ERROR: Unknown user 'www-data' !

Here is a copy of what it looks like

Code:
Use which PHP Version? (4 or 5). [5]:

        IP of Secondary DNS. (optional) []:

        Use MySQL Prefix.
        Possible values: [i]nfront, [b]ehind, [n]one. [none]:

        Activate AWStats. [no]:

        Starting Installation...
ERROR: Unknown user 'www-data' !

Is there a simple solution?
(This post was last modified: 03-29-2008 07:49 AM by joximu.)
03-28-2008 09:26 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: ERROR: Unknown user 'www-data' !
What's the user which is normally used for apache on centOS?
03-28-2008 09:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rajahomega Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #3
RE: ERROR: Unknown user 'www-data' !
I don't know, this is on a VPS, does that matter? is the setup looking for a www-data user to exist? Do I create this user or change the user that should be used?
03-28-2008 04:36 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: ERROR: Unknown user 'www-data' !
I don't know CentOS very good - normally when you install apache there is a user created named www-data or www or so...
The username is in the config file and if it's the wrong one then we have to change this.
03-28-2008 06:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rajahomega Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #5
RE: ERROR: Unknown user 'www-data' !
Is this where I would change it?

http.conf
Code:
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000;
#  don't use Group "#-1" on these systems!
#
User nobody
Group nobody
03-29-2008 01:36 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: ERROR: Unknown user 'www-data' !
Correct this in /etc/ispcp/ispcp.conf before running ispcp-setup.

I'd say change both:

APACHE_USER = www-data
APACHE_GROUP = www-data

Please report here if this is working better

thanx
03-29-2008 01:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rajahomega Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #7
RE: ERROR: Unknown user 'www-data' !
Ok I went to /etc/ispcp/ispcp.conf and did this:

Code:
APACHE_USER = nobody
APACHE_GROUP = nobody

Now I get this error

Code:
Use which PHP Version? (4 or 5). [5]:

        IP of Secondary DNS. (optional) []:

        Use MySQL Prefix.
        Possible values: [i]nfront, [b]ehind, [n]one. [none]:

        Activate AWStats. [no]:

        Starting Installation...
Can't exec "which": No such file or directory at ispcp-setup-methods.pl line 637.
Can't exec "which": No such file or directory at ispcp-setup-methods.pl line 638.
Use of uninitialized value in substitution (s///) at ispcp-setup-methods.pl line 640.
Use of uninitialized value in substitution (s///) at ispcp-setup-methods.pl line 641.
Use of uninitialized value in length at ispcp-setup-methods.pl line 643.
Use of uninitialized value in length at ispcp-setup-methods.pl line 643.
ERROR: Undefined template replacement data in repl_var: {RKHUNTER}!
03-29-2008 07:19 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: ERROR: Unknown user 'www-data' !
Can you install the command "which" - in debian it's the packet debianutils, in suse it's util-linux - I hope you find it (and give us the right packet name).


/J
03-29-2008 07:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rajahomega Offline
Junior Member
*

Posts: 11
Joined: Mar 2008
Reputation: 0
Post: #9
RE: (CentOS) ERROR: Unknown user 'www-data' !
ok I installed "which" and "rkhunter" but still get an error

Code:
Starting Installation...
/bin/cp: cannot stat `/etc/ispcp/bind/backup/named.conf.ispcp': No such file or directory
ERROR: External command '/bin/cp -p /etc/ispcp/bind/backup/named.conf.ispcp /etc/bind/named.conf' returned '1' status !
03-29-2008 08:44 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: (CentOS) ERROR: Unknown user 'www-data' !
which version of ispCP did you install? what's the name of the download file?
03-29-2008 08:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)