LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2005, 12:42 PM   #1
squeaks_27
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Slackware, Debian, Red Hat
Posts: 34

Rep: Reputation: 15
Apache1.3 and php5


I am trying to install a software product on an existing system running debian sarge (before the new release, so i guess stable now??), apache1.3, and postgresql as the db.

I tried installing php5 through apt-get install php5 and got an error saying libmm11 is not installable. I was however, able to get php4 downloaded, but it doesn't seem to be running (as php scripts are not executing, merely being offered to be downloaded... my source code!).

Could someone please answer the following questions:

1. Do i have to compile php5 from source to get it to work? (vs apt-get)

2. Do I need more than just php5 when apt-getting? I've seen things like libapache-mod-php4, do I need this and other things?

3. Could i be getting errors installing because i have a mix of debian versions (testing and i saw a few unstable, and do i need to use stable for sarge now?)

4. Do i have to update my sources.list file to get certain packages? if so, where can i find them?

5. Is it possible/hard to upgrade to php5 after i get php4 working?

Any help getting this up would be great and is really appreciated.

Thanks in advance.
 
Old 06-17-2005, 07:38 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
If I am not mistaken (I'm not, I've just checked), PHP5 is not available in debian yet (any flavour - stable, testing, unstable, not even experimental).

So unless you have some external unofficial repositories in sources-list (DON'T DO THIS!), you will have to compile it from source code.

Clean up your sources.list to only include official repository and one flavour (sarge for a server, maybe you can consider unstable for a workstation).

After that you should be able to install php4 using apt or compile php5 from source.
 
Old 06-17-2005, 07:50 AM   #3
squeaks_27
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Slackware, Debian, Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
r0b0,

thanks for clearing up the difference between php4 and php5 on debian. I still have one question though, my php4 still doesn't seem to be running, so do i need to install anything else for it to work with my existing apache server (ex. libapache-mod-php4??)

my source list is posted below, how would i go about "cleaning it up" to be sarge (now stable)? is there anything on there i should remove because it may be creating dependency conflicts?

Code:
 
/etc/apt/sources.list

1 #deb file:///cdrom/ sarge main
2
3 deb ftp://debian.savoirfairelinux.net/debian/ testing main
4 deb http://packages.dotdeb.org ./
5 deb http://debian.yorku.ca/debian/ testing main
6 deb-src http://debian.yorku.ca/debian/ testing main
7
8 deb http://security.debian.org/ stable/updates main
9 deb http://www.imoqland.com/debs/skyhusker/woody/ ./
10 #deb http://http.us.debian.org/debian unstable main contrib non-free
11 deb http://http.us.debian.org/debian testing main contrib non-free
12 deb http://gulus.usherbrooke.ca/debian/ testing main
13
14 deb http://security.debian.org/ testing/updates main
15
16 #deb ftp://ftp.debian.org/debian/ unstable main contrib non-free
17 #deb-src ftp://ftp.debian.org/debian/ unstable main contrib non-free
18 deb ftp://ftp.debian.org/debian/ testing main contrib non-free
19 deb-src ftp://ftp.debian.org/debian/ testing main contrib non-free
20 deb http://people.debian.org/~dexter php5 sid
thanks again
 
Old 06-17-2005, 08:10 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Holly cow, 20 repositories in sources.list! I don't know who did this to that poor machine but no wonder it's misbehaving.

You sould be very strict about what you put into sources.list because you are into great dependency problems otherwise. If you want to run stable, leave just 2 lines there - the main archive (you can use other mirror, not ftp.sk.debian.org) and the security updates.

Code:
deb http://ftp.sk.debian.org/debian/ stable main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
As to the problem with php files not executed, I am not sure how the modules work in apache1. I use apache2 and this is how it is set up:

Code:
zero:~# ls -l /etc/apache2/mods-enabled/php4.*
lrwxrwxrwx  1 root root 37 2005-03-26 12:04 /etc/apache2/mods-enabled/php4.conf -> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx  1 root root 37 2005-03-26 12:04 /etc/apache2/mods-enabled/php4.load -> /etc/apache2/mods-available/php4.load
Apart from checking the config setup, you can also have a look into apache log files if you see something suspicious there about the PHP module.
 
Old 06-17-2005, 09:36 PM   #5
squeaks_27
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Slackware, Debian, Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
i changed my originally long source list to:

1 #deb file:///cdrom/ sarge main
2 deb http://http.us.debian.org/debian/ stable main contrib non-free
3 deb http://security.debian.org/ stable/updates main contrib non-free

and i solved all my dependency problems i was having, thanks for the tip

now to get my apache server to work properly, lol
 
  


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
apache1.3.33 and mod_ssl2.8.24-1.3.33 LAdProg2005 Linux - Software 3 10-11-2006 05:04 AM
apache1. or apache2 merlin23 Linux - Networking 1 12-01-2004 11:58 AM
Why use Apache1.3 - What can't Apache2 do? davee Linux - Software 2 11-12-2003 11:42 AM
Slackware8: upgrade Apache1 to Apache2 m3kgt Linux - Software 3 10-27-2003 03:33 PM
Apache1.3.28 On Rh9! calissal Linux - Software 1 09-10-2003 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:45 AM.

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
Open Source Consulting | Domain Registration