ispCP - Board - Support
(CentOS) ERROR: Unknown user 'www-data' ! - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: (CentOS) ERROR: Unknown user 'www-data' ! (/thread-2869.html)

Pages: 1 2 3


(CentOS) ERROR: Unknown user 'www-data' ! - rajahomega - 03-28-2008 09:26 AM

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?


RE: ERROR: Unknown user 'www-data' ! - joximu - 03-28-2008 09:29 AM

What's the user which is normally used for apache on centOS?


RE: ERROR: Unknown user 'www-data' ! - rajahomega - 03-28-2008 04:36 PM

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?


RE: ERROR: Unknown user 'www-data' ! - joximu - 03-28-2008 06:44 PM

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.


RE: ERROR: Unknown user 'www-data' ! - rajahomega - 03-29-2008 01:36 AM

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



RE: ERROR: Unknown user 'www-data' ! - joximu - 03-29-2008 01:56 AM

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


RE: ERROR: Unknown user 'www-data' ! - rajahomega - 03-29-2008 07:19 AM

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}!



RE: ERROR: Unknown user 'www-data' ! - joximu - 03-29-2008 07:48 AM

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


RE: (CentOS) ERROR: Unknown user 'www-data' ! - rajahomega - 03-29-2008 08:44 AM

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 !



RE: (CentOS) ERROR: Unknown user 'www-data' ! - joximu - 03-29-2008 08:51 AM

which version of ispCP did you install? what's the name of the download file?