LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-06-2005, 03:18 PM   #1
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Rep: Reputation: 15
Question PHP5 on Sarge?


I have recently set up my first web server using Debian Sarge, but I found out that it doesn't have the PHP5 package. And this is quite annoying because I use the mysqli functions on almost all my sites.

So I was wondering what I could do the best:

-Install Debian testing, I didn't do this yet because it's testing, not that I have a professional server but it might have some more security flaws (don't it?)

-Get the deb packages from php5 and install them on my sarge machine, but I was a bit afraid for dependencies problems.

-Download PHP5 from php.net, but how would that affect my ways to mail (I'm using exim) and the implementation in apache (1.1.3)

What do you recomend, thanks in advance.

Ruben
 
Old 11-06-2005, 03:32 PM   #2
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
I would change my sources.list from sarge to testing, do an apt-get update, then apt-get install php5, then change it back and apt-get update to return to the previous state. But this requires careful scrutiny of the output from apt to ensure nothing untoward happens.
 
Old 11-06-2005, 04:57 PM   #3
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
In trying that, I think it will also update to Apache 2. You could it back with apt if you need Apache 1.3, but I don't know how well the two will end up playing together. I haven't been brave enough to move production to PHP5 until it becomes stable, I'm a coward! My testing box works fine with it though.
 
Old 11-07-2005, 12:38 PM   #4
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
Thanks for the tips, but what if I update to testing and keep it testing? Would that be much less secure than running stable?
Thanks,

Ruben
 
Old 11-09-2005, 08:50 AM   #5
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Testing receives updates and, worse for admins, changes in the configuration. Sarge doesn't change its ways anymore. This is a time saver.

You could always get the sources for php5, adept the dependencies to Sarge and compile it for Sarge. That only requires keeping an eye on security updates yourself. If it will work 100% depends on the dependancies on libs either or not present in Sarge.

Similarly I recently compiled Firefox 1.5-rc1 for a Sarge workstation, works like a charm, exept for the cairo libs.
 
Old 11-09-2005, 10:57 AM   #6
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
So you recommend I download all PHP5 packages and see if I have all dependencies correct. And then install them.
I will try that first and if that doesn't work I'll go on to testing.

I also have some other questions about PHP on Debian:
When I install the php5-mysql package, which MySQL functions do I have then? do I have both mysql and mysqli or only one of those for use?
The other questions I had was if I had to configure the mail on php myself or does debian this? I'm using Exim as mail server.

Thanks in advance,
Ruben
 
  


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
Can't compile PHP5 on Sarge 3.1 karlson Debian 2 10-22-2005 02:06 AM
Apache2 + PHP5.0.3 24jedi *BSD 1 07-21-2005 03:07 PM
php5 Hampster Linux - Software 4 01-09-2005 04:50 PM
Where Sarge Needs Work (some questions too) + Where Sarge Rocks out loud too. ilyanep Debian 6 09-13-2004 05:36 PM
Is PHP5 ready? costasm Programming 0 12-15-2003 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:34 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