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
- btaroliProdigyWell, I'm new to Debian and APT but I have at least been able to determine how to keep APT from doing stupid things. Create a file /etc/apt/preferences and in it place the following:
Package: libc6
Pin: version 2.3.2.ds1-22sarge6.infrant1
Pin-Priority: 1001
Package: libc6-dev
Pin: version 2.3.2.ds1-22sarge6.infrant1
Pin-Priority: 1001
Yes, this does mean some packages won't install via apt-get... but it also means you won't inadvertently trounce libc6 either. :) - DivergeGuide
ykf wrote: Ok, 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.
anyone have any ideas why i get the following error when executing dpkg -i libdb4.4_4.4.20-2bpo1_sparc.deb?ReadyNAS-NV:/etc/apt# dpkg -i libdb4.4_4.4.20-2bpo1_sparc.deb
dpkg: error processing libdb4.4_4.4.20-2bpo1_sparc.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
libdb4.4_4.4.20-2bpo1_sparc.deb
ReadyNAS-NV:/etc/apt#
everything prior to that step worked fine... but i'm a linux noob, so not sure if i am missing some basic linux steps :?
here's what i did so far:
i followed the Installing apt (Advanced Packaging Tool) guide at http://www.infrant.com/forum/viewtopic.php?t=14513 ,before i noticed the ADDON for it on the main sticky. So i read that thread, and saw the differences in manually doing it as i did, and using the addon. so i edited my sources.list to add deb http://www.infrant.com/packages readynas/
so it now reads:ReadyNAS-NV:/etc/apt# cat sources.list
deb http://www.infrant.com/packages readynas/
deb http://http.us.debian.org/debian oldstable main contrib non-free
deb http://non-us.debian.org/debian-non-US oldstable/non-US main contrib non-free
deb http://security.debian.org oldstable/updates main contrib non-free
deb-src http://http.us.debian.org/debian oldstable main contrib non-free
deb-src http://non-us.debian.org/debian-non-US oldstable/non-US main contrib non-free
ReadyNAS-NV:/etc/apt#
apt-get install libbz2-1.0 & apt-get install ucf worked fine, but i am stuck with the above error.
I also added:ReadyNAS-NV:/etc/apt# cat preferences
Package: libc6
Pin: version 2.3.2.ds1-22sarge6.infrant1
Pin-Priority: 1001
Package: libc6-dev
Pin: version 2.3.2.ds1-22sarge6.infrant1
Pin-Priority: 1001
ReadyNAS-NV:/etc/apt#
as suggested by btaroli in the post above mine, so i don't accidentally break anything
So any advise would be appreciated :)
edit: after reading this thread a few times, i think my problem is cause i don't have the correct/addtional debian package repositories in the sources.list. correct my if i am wrong.. gonna see if i can figure it out on my own, unless someone replies :)
edit #2: i used an alternate method i guess... used WinSCP to copy the .deb files manually to var/cache/apt/archive then installed them via Putty. Dunno if it works, but it's installed :)
does this look okay?ReadyNAS-NV:/var/cache/apt/archives# dpkg -i libdb4.4_4.4.20-2bpo1_sparc.deb
Selecting previously deselected package libdb4.4.
(Reading database ... 9835 files and directories currently installed.)
Unpacking libdb4.4 (from libdb4.4_4.4.20-2bpo1_sparc.deb) ...
Setting up libdb4.4 (4.4.20-2bpo1) ...
ReadyNAS-NV:/var/cache/apt/archives# dpkg -i --force-all libxml2_2.6.27.dfsg-1_sparc.deb
(Reading database ... 9839 files and directories currently installed.)
Preparing to replace libxml2 2.6.16-7 (using libxml2_2.6.27.dfsg-1_sparc.deb) ...
Unpacking replacement libxml2 ...
dpkg: libxml2: dependency problems, but configuring anyway as you request:
libxml2 depends on libc6 (>= 2.3.5-1); however:
Version of libc6 on system is 2.3.2.ds1-22sarge6.infrant1.
Setting up libxml2 (2.6.27.dfsg-1) ...
ReadyNAS-NV:/var/cache/apt/archives# dpkg -i php5-common_5.2.0-8+etch7_sparc.deb
Selecting previously deselected package php5-common.
(Reading database ... 9840 files and directories currently installed.)
Unpacking php5-common (from php5-common_5.2.0-8+etch7_sparc.deb) ...
Setting up php5-common (5.2.0-8+etch7) ...
ReadyNAS-NV:/var/cache/apt/archives# dpkg -i --force-all libapache2-mod-php5_5.2.0-8+etch7_sparc.deb
Selecting previously deselected package libapache2-mod-php5.
(Reading database ... 9879 files and directories currently installed.)
Unpacking libapache2-mod-php5 (from libapache2-mod-php5_5.2.0-8+etch7_sparc.deb)...
dpkg: libapache2-mod-php5: dependency problems, but configuring anyway as you request:
libapache2-mod-php5 depends on libc6 (>= 2.3.5-1); however:
Version of libc6 on system is 2.3.2.ds1-22sarge6.infrant1.
Setting up libapache2-mod-php5 (5.2.0-8+etch7) ...
Configuration file `/etc/apache2/mods-available/php5.load', does not exist on system.
Installing new config file as you request.
Configuration file `/etc/apache2/mods-available/php5.conf', does not exist on system.
Installing new config file as you request.
Creating config file /etc/php5/apache2/php.ini with new version
ReadyNAS-NV:/var/cache/apt/archives# - PlukkieAspirantHi,
I tried to install php5 with apt-get, but it says:
nas01:~# apt-get install php5
Reading Package Lists... Done
Building Dependency Tree... Done
Package php5 is not available, however allthough it is refered to by another package. It's possible the package is not available, outdated or available only from another source.
E: Package php5 has no installable candidate
nas01:~#
This is from the Debian site:
If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.
You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:
deb http://security.debian.org/debian-security etch/updates main
Can it do no harm to add the suggested Repository to the apt-sources list? - btaroliProdigyNot as long as you *also* have the appropriate restrictions included in the /etc/apt/preferences file (like the latest version of the APT add-on provides).
- PlukkieAspirant
btaroli wrote: Not as long as you *also* have the appropriate restrictions included in the /etc/apt/preferences file (like the latest version of the APT add-on provides).
Then you probably refer to the libc6 library, which indeed is blocked in the preferences file of apt? - btaroliProdigy
Plukkie wrote: btaroli wrote: Not as long as you *also* have the appropriate restrictions included in the /etc/apt/preferences file (like the latest version of the APT add-on provides).
Then you probably refer to the libc6 library, which indeed is blocked in the preferences file of apt?
That is precisely what I refer to. :D Bear in mind, though, that depending upon which respositories you add, you could wind up in a situation where things are blocked because it's impossible to install libc from that same repository. - SkywalkerNETGEAR ExpertThere are now some PHP packages compiled specifically for ReadyNAS available in the apt repository. You should be able to get to them after an "apt-get update". They are untested, but feel free to try them out if you need to add PHP.
- benawhite1Aspirantany direction on what the package names are?
what apt repository URL the would be in? - chirpaLuminary
benawhite wrote: any direction on what the package names are?
what apt repository URL the would be in?
http://www.infrant.com/beta/raidiator/4 ... PT_1.0.bin
If you install that addon, it will populate the repository for you in /etc/apt/sources.list (deb http://www.infrant.com/packages readynas/) - psykozenAspirantGot some questions too ..
apt-get update
apt-cache search php5 shows 'php5' matching modules.TeraVault:/etc/frontview/apache# apt-cache search php5
libapache2-mod-php5 - server-side, HTML-embedded scripting language (apache 2 module)
php5 - server-side, HTML-embedded scripting language (meta-package)
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-cli - command-line interpreter for the php5 scripting language
php5-common - Common files for packages built from the php5 source
php5-curl - CURL module for php5
php5-dev - Files for PHP5 module development
php5-gd - GD module for php5
php5-imap - IMAP module for php5
php5-ldap - LDAP module for php5
php5-mcrypt - MCrypt module for php5
php5-mhash - MHASH module for php5
php5-mysql - MySQL module for php5
php5-odbc - ODBC module for php5
php5-recode - recode module for php5
php5-snmp - SNMP module for php5
php5-sqlite - SQLite module for php5
php5-xmlrpc - XML-RPC module for php5
After installing some of them (using apt-get install) , I now have :
TeraVault:/etc/frontview/apache# dpkg -l | grep php
ii php5 5.2.0-8+etch9~ server-side, HTML-embedded scripting languag
ii php5-cgi 5.2.0-8+etch9~ server-side, HTML-embedded scripting languag
ii php5-cli 5.2.0-8+etch9~ command-line interpreter for the php5 script
ii php5-common 5.2.0-8+etch9~ Common files for packages built from the php
ii php5-curl 5.2.0-8+etch9~ CURL module for php5
ii php5-gd 5.2.0-8+etch9~ GD module for php5
ii php5-mysql 5.2.0-8+etch9~ MySQL module for php5
But still, I can't run PHP5 with Apache2.
apt-get install libapache2-mod-php5 returns an error. Means I can't run PHP as an Apache2 module. Or maybe I'm missing something (knowing I'm quite a noob - frenchy-noob speaking loosy english :) - ?TeraVault:/etc/frontview/apache# apt-get install libapache2-mod-php5
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libapache2-mod-php5: Depends: apache2-common but it is not going to be installed
E: Broken packages
Any clue on how to run PHP5 as CGI binary ? Or to install the PHP5 Apache2 module ?
And, where to find the Apache2 modules files (as a2enmod is not working to enable new modules .. ) ?
Lot of questions, and maybe some are typical noob questions .. but any help will be really appreciated.
Thx again for all your work guys ..
Cheers.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!