NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
benawhite1
Nov 28, 2007Aspirant
Installing PHP
Sorry for the newby question, but I am trying to install PHP4.
I was able to get apt installed using this as a guide
From that point I added the following line to /etc/apt/sources.list
Then I enter the following commands
and
The result was this
Any ideas what I need to do at this point?
How do I get around the "The group `www-data' already exists." issue?
Thanks in advance
I was able to get apt installed using this as a guide
From that point I added the following line to /etc/apt/sources.list
deb-src http://packages.dotdeb.org stable all
Then I enter the following commands
apt-get update
and
apt-get install libapache-mod-php4
The result was this
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
apache-common libbz2-1.0 libgcrypt11 libgnutls11 libgpg-error0 liblzo1 libncursesw5 libopencdk8 libssl0.9.7 libtasn1-2
libzzip-0-12 lynx php4-common ucf
Suggested packages:
apache apache-ssl apache-perl php4-pear libbz2-dev bzip2 gnutls-bin
Recommended packages:
debconf-utils
The following NEW packages will be installed:
apache-common libapache-mod-php4 libbz2-1.0 libgcrypt11 libgnutls11 libgpg-error0 liblzo1 libncursesw5 libopencdk8 libssl0.9.7
libtasn1-2 libzzip-0-12 lynx php4-common ucf
0 upgraded, 15 newly installed, 0 to remove and 80 not upgraded.
Need to get 7377kB of archives.
After unpacking 18.5MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org oldstable/updates/main libssl0.9.7 0.9.7e-3sarge5 [1819kB]
Get:2 http://security.debian.org oldstable/updates/main php4-common 4:4.3.10-22 [169kB]
Get:3 http://security.debian.org oldstable/updates/main libapache-mod-php4 4:4.3.10-22 [1624kB]
Get:4 http://http.us.debian.org oldstable/main libgpg-error0 1.0-1 [22.6kB]
Get:5 http://http.us.debian.org oldstable/main libgcrypt11 1.2.0-11.1 [181kB]
Get:6 http://http.us.debian.org oldstable/main liblzo1 1.08-1.2 [39.0kB]
Get:7 http://http.us.debian.org oldstable/main libopencdk8 0.5.5-10 [71.7kB]
Get:8 http://http.us.debian.org oldstable/main libtasn1-2 0.2.10-3sarge1 [41.8kB]
Get:9 http://http.us.debian.org oldstable/main libgnutls11 1.0.16-13.2sarge2 [296kB]
Get:10 http://http.us.debian.org oldstable/main libbz2-1.0 1.0.2-7 [39.6kB]
Get:11 http://http.us.debian.org oldstable/main libncursesw5 5.4-4 [292kB]
Get:12 http://http.us.debian.org oldstable/main ucf 1.17 [36.9kB]
Get:13 http://http.us.debian.org oldstable/main lynx 2.8.5-2sarge2 [1861kB]
Get:14 http://http.us.debian.org oldstable/main apache-common 1.3.33-6sarge3 [849kB]
Get:15 http://http.us.debian.org oldstable/main libzzip-0-12 0.12.83-4 [34.0kB]
Fetched 7377kB in 2m25s (50.6kB/s)
Selecting previously deselected package libgpg-error0.
(Reading database ... 9841 files and directories currently installed.)
Unpacking libgpg-error0 (from .../libgpg-error0_1.0-1_sparc.deb) ...
Selecting previously deselected package libgcrypt11.
Unpacking libgcrypt11 (from .../libgcrypt11_1.2.0-11.1_sparc.deb) ...
Selecting previously deselected package liblzo1.
Unpacking liblzo1 (from .../liblzo1_1.08-1.2_sparc.deb) ...
Selecting previously deselected package libopencdk8.
Unpacking libopencdk8 (from .../libopencdk8_0.5.5-10_sparc.deb) ...
Selecting previously deselected package libtasn1-2.
Unpacking libtasn1-2 (from .../libtasn1-2_0.2.10-3sarge1_sparc.deb) ...
Selecting previously deselected package libgnutls11.
Unpacking libgnutls11 (from .../libgnutls11_1.0.16-13.2sarge2_sparc.deb) ...
Selecting previously deselected package libbz2-1.0.
Unpacking libbz2-1.0 (from .../libbz2-1.0_1.0.2-7_sparc.deb) ...
Selecting previously deselected package libncursesw5.
Unpacking libncursesw5 (from .../libncursesw5_5.4-4_sparc.deb) ...
Selecting previously deselected package libssl0.9.7.
Unpacking libssl0.9.7 (from .../libssl0.9.7_0.9.7e-3sarge5_sparc.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../apt/archives/ucf_1.17_all.deb) ...
Moving old data out of the way
Selecting previously deselected package lynx.
Unpacking lynx (from .../lynx_2.8.5-2sarge2_sparc.deb) ...
Selecting previously deselected package apache-common.
Unpacking apache-common (from .../apache-common_1.3.33-6sarge3_sparc.deb) ...
Selecting previously deselected package libzzip-0-12.
Unpacking libzzip-0-12 (from .../libzzip-0-12_0.12.83-4_sparc.deb) ...
Selecting previously deselected package php4-common.
Unpacking php4-common (from .../php4-common_4%3a4.3.10-22_sparc.deb) ...
Selecting previously deselected package libapache-mod-php4.
Unpacking libapache-mod-php4 (from .../libapache-mod-php4_4%3a4.3.10-22_sparc.deb) ...
Setting up libgpg-error0 (1.0-1) ...
Setting up libgcrypt11 (1.2.0-11.1) ...
Setting up liblzo1 (1.08-1.2) ...
Setting up libopencdk8 (0.5.5-10) ...
Setting up libtasn1-2 (0.2.10-3sarge1) ...
Setting up libgnutls11 (1.0.16-13.2sarge2) ...
Setting up libbz2-1.0 (1.0.2-7) ...
Setting up libncursesw5 (5.4-4) ...
Setting up libssl0.9.7 (0.9.7e-3sarge5) ...
Setting up ucf (1.17) ...
Setting up lynx (2.8.5-2sarge2) ...
Setting up apache-common (1.3.33-6sarge3) ...
addgroup: The group `www-data' already exists.
dpkg: error processing apache-common (--configure):
subprocess post-installation script returned error exit status 1
Setting up libzzip-0-12 (0.12.83-4) ...
Setting up php4-common (4.3.10-22) ...
dpkg: dependency problems prevent configuration of libapache-mod-php4:
libapache-mod-php4 depends on apache-common (>= 1.3.33); however:
Package apache-common is not configured yet.
dpkg: error processing libapache-mod-php4 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache-common
libapache-mod-php4
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any ideas what I need to do at this point?
How do I get around the "The group `www-data' already exists." issue?
Thanks in advance
26 Replies
Replies have been turned off for this discussion
- chirpaLuminaryThe system is running Apache 2, so you'd want whatever is closest to libapache2-mod-php5.
- ykfAspirantWhen I run this command:
apt-get install libapache2-mod-php4
apt said I can't install apache2-mpm-prefork (> 2.0.52). And yup the system already got it. So how can I get around this error in order to install libapache2-mod-php4? - ykfAspirantI've downloaded libapache2-mod-php4 and run dpkg on it:
nas:/upload# dpkg -i libapache2-mod-php4_4.3.10-22_sparc.deb
Selecting previously deselected package libapache2-mod-php4.
dpkg: regarding libapache2-mod-php4_4.3.10-22_sparc.deb containing libapache2-mod-php4:
apache2.2-common conflicts with libapache2-mod-php4 (<= 4:4.4.4-2)
libapache2-mod-php4 (version 4:4.3.10-22) is to be installed.
dpkg: error processing libapache2-mod-php4_4.3.10-22_sparc.deb (--install):
conflicting packages - not installing libapache2-mod-php4
Errors were encountered while processing:
libapache2-mod-php4_4.3.10-22_sparc.deb
The apache was installed using etch version? So i need to install libapache2-mod-php5 from etch instead? - ykfAspirantFinally I've successful installing php... it's really tricky that you installed an apache2.2 build into an oldstable
- benawhite1AspirantIs there any way you could provide a step by step for us
Thanks! - avpman1AspirantYes, please. A step by step would be much appreciated!
Thanks in advance. - ykfAspirantOk, here are the steps:
apt-get install libbz2-1.0
apt-get install ucf
dpkg -i libdb4.4_4.4.20-2bpo1_sparc.deb
dpkg -i --force-all libxml2_2.6.27.dfsg-1_sparc.deb
dpkg -i php5-common_5.2.0-8+etch7_sparc.deb
dpkg -i --force-all libapache2-mod-php5_5.2.0-8+etch7_sparc.deb
You need to download all those deb packages from the official debian package repository. Those includes sarge-backports and etch.
Please remember, do not replace the libc6 package! I haven't try that, but I guess it will brick the system if tried. - craigthomsonAspirantHey people,
I was just reading the steps, I'm wondering, does this procedure cause any problems on the ReadyNas and whats the performance like serving up php webpages ? - btaroliProdigyI'm curious, too, whether there is a way to configure APT so that we can avoid it installing libc6* and yet still take advantage of it's ability to resolve depenencies, etc. I know yum has the ability to forcibly exclude actions on certain packages (by regexp), but I can't seem to find if APT can do the same.
- SkywalkerNETGEAR ExpertIn general it won't work, because just about everything is linked to libc6, and newer packages will almost always require a newer libc. So most things will need to get recompiled against glibc 2.3.2.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!