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 deb-src...
Diverge
Dec 25, 2007Guide
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#
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!