LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2005, 10:33 AM   #16
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15

Hi Mate,

That is exactly what I am trying to do.

I have php4 installed but the other one (libapache-mod-php4) wont It says the package may be missing, damaged or obsolete. It also says it has no istallation candidate. What do I do now?

Thanks for your time

James
 
Old 09-01-2005, 11:38 AM   #17
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Maybe you need to do apt-get update first. Then try to apt-get install libapache-mod-php4 again. If that doesn't work, you can try to use a different mirror.

You can find a list of mirrors here:

http://www.debian.org/mirror/list

Just find one close to you (that isn't the one that you are using now), and add it to your /etc/apt/sources.list

You will probably want to comment out the mirror that you are using now (put a # at the beginning of that line)

Then do apt-get update

Then try to install mod_php4 again.
 
Old 09-01-2005, 01:23 PM   #18
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
Hi Mate,

Looks like this could work in the source list file there is no ftp displayed. I only have cd (where I installed the debain system) how can I add ftp.uk etc? Could you please display all of the code?

Thanks

James
 
Old 09-01-2005, 01:55 PM   #19
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Try adding this to sources.list (assuming you have sarge aka stable)

Code:
deb http://ftp.uk.debian.org/debian stable main contrib non-free non-US
If you are using etch or sid, you can change stable to testing or unstable.

Then do

Code:
apt-get update
That will update your package list so that you can get the latest versions of packages.

Now try to install mod-php again
 
Old 09-01-2005, 03:32 PM   #20
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
Hi mate I think we are getting a bit closer....

I done this:

#deb file:///cdrom/ sarge main

#deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - i386
Binary - Linux Format DVD 70]/ unstable contrib main

deb http://ftp.uk.debian.org/debian unstable main
contrib non-free non-US

deb http://security.debian.org/ testing/updates main contrib



and this came up when I performed the apt-get update:

debian:~# apt-get update
Hit http://security.debian.org testing/updates/main
Packages
Hit http://security.debian.org testing/updates/main
Release
Hit http://security.debian.org testing/updates/contrib
Packages
Hit http://security.debian.org testing/updates/contrib
Release
Hit http://ftp.uk.debian.org unstable/main Packages
Hit http://ftp.uk.debian.org unstable/main Release
Hit http://ftp.uk.debian.org unstable/contrib Packages
Hit http://ftp.uk.debian.org unstable/contrib Release
Hit http://ftp.uk.debian.org unstable/non-free
Packages
Hit http://ftp.uk.debian.org unstable/non-free Release
Err http://ftp.uk.debian.org unstable/non-US Packages
403 Forbidden
Ign http://ftp.uk.debian.org unstable/non-US Release
Failed to fetch
http://ftp.uk.debian.org/debian/dist...86/Packages.gz
403 Forbidden
Reading Package Lists... Done
W: Couldn't stat source package list
http://ftp.uk.debian.org unstable/non-US Packages
(/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_unstable_non-US_binary-i386_Packages)
- stat (2 No such file or directory)
W: You may want to run apt-get update to correct these
problems
E: Some index files failed to download, they have been
ignored, or old ones used instead.


I tried stable and unstable and it both came up similar.

Thanks for your time

James
 
Old 09-01-2005, 05:09 PM   #21
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
OK, it looks like the non-US part didn't work. That's OK. There is not much in there anyway. You can delete "non-US" from the line that you added to sources.list. That should take care of the errors that you saw.

Right now it really doesn't matter because everything else was OK.

Now you can try to apt-get install libapache-mod-php4 again. Hopefully it will get the package from the ftp site instead of your CD.

If it still tries to get it from the CD, you can comment out (add #) the lines related to your CD's in sources.list and apt-get update again.
 
Old 09-02-2005, 09:43 AM   #22
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
Hi Mate,

You are a genius! Thanks its now working.

I just have managed to get file sharing across my network. I dont suppose you know anything about that do you?

I have Windows XP Networked to my Debian (sarge) and I want to be able to access files from Sarge on my Windows PC.

Let me know

Thanks again!


 
Old 09-02-2005, 09:49 AM   #23
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Glad it's working.

I probably can't help you with the file sharing thing.

I think you can do it with samba, but I have heard it's really hard to set up. There is probably an easier way. Maybe ssh.

Start a new thread, I'm sure somone can help.
 
Old 09-02-2005, 11:58 AM   #24
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
hi,

ok thats great thank you very much for your time and help!!

James

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with Apache, PHP and MYSQL jammyjames Linux - General 1 08-30-2005 11:14 AM
Getting Started with Apache, PHP and MYSQL jammyjames Linux - Software 1 08-30-2005 10:57 AM
Fedora Core 3, MySql Server, mysql started mysql ended OkiTek Fedora 30 01-28-2005 10:15 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM


All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration