LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   PHP5 on Sarge? (https://www.linuxquestions.org/questions/debian-26/php5-on-sarge-380559/)

Ruben2 11-06-2005 03:18 PM

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

kmoffat 11-06-2005 03:32 PM

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.

fouldsy 11-06-2005 04:57 PM

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.

Ruben2 11-07-2005 12:38 PM

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

Moloko 11-09-2005 08:50 AM

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.

Ruben2 11-09-2005 10:57 AM

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


All times are GMT -5. The time now is 09:22 PM.