Forums / Install & configuration / Debian PHP 4.4 package actually installs 4.3?

Debian PHP 4.4 package actually installs 4.3?

Author Message

Greg McAvoy-Jensen

Sunday 18 December 2005 1:45:42 pm

I have given up on getting Fedora 4 to work. So many recommended Debian that I took the plunge. It was easy, and took little effort to get my ezPublish 3.3 site running on 3.7. When page loads turned out to take 13 seconds, however, I checked PHP's functioning, and it was actually running 4.3.10-16. Yesterday I uninstalled it and re-installed the 4.4 package, but again, it was 4.3.10-16. I think Debian must have the wrong package under 4.4. I tried various ways, and various servers. I also took out apache 1.3 and reinstalled it at the same time. The server runs, and runs with php 4.3.10-16, but a test ezPublish site I had set up fresh on this server yeilds this when a browser visits its main page:

<i>Fatal error: Call to undefined function: mysql_escape_string() in /home/gregmj/web/donnajensen/lib/ezdb/classes/ezmysqldb.php on line 804
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.</i>

My first job is to figure out how to get a package of 4.4 really installed. I'm hoping the rest (page load speed, the "Fatal error") will resolve itself after that. Suggestions? Am I doing something wrong?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Sunday 18 December 2005 3:58:56 pm

Ok, I think I misread the package. It's really 4:4.3.10-16, so that's 4.3. I get it.

So, what's the best thing for me to do: use ezPublish 3.6, or manually install php?

If I do install php, what's the order--will I then have to re-compile apache 1.3?

Lastly, what's the easiest and/or best accelerator to use on Debian? I couldn't find a package to download.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Thomas Nunninger

Sunday 18 December 2005 11:25:00 pm

Hi,

I've installed PHP 4.4 from unstable. I've added the following lines to my /etc/apt/preferences

Package: php4
Pin: version 4:4*
Pin-Priority: 991

Package: php4-cli
Pin: version 4:4*
Pin-Priority: 991

Package: php4-mysql
Pin: version 4:4*
Pin-Priority: 991

Package: php4-pgsql
Pin: version 4:4*
Pin-Priority: 991

Package: php4-gd
Pin: version 4:4*
Pin-Priority: 991

Edit: Sorry, it wasn't testing but unstable - corrected above

Xavier Dutoit

Monday 19 December 2005 1:21:01 am

Welcome to debian, I hope you will like it !

as for the error message, that's because you haven't installed the php mysql interface:
$apt-get install php4-mysql

http://www.sydesy.com

Greg McAvoy-Jensen

Thursday 22 December 2005 8:49:57 am

Here's my resolution:

Since Debian doesn't offer a stable PHP 4.4 package yet, stick with ezPublish 3.6.4 until then. I switched to Debian for simplicity, after all.

In case it helps anyone, here are the steps for installing this on Debian:

Install Debian.

Packages needed include

apache (I had 1.3.33-6)
apache-common
libapache-mod-php4 (This is for php 4.3, not 4.4)
php4-common
php4-gd
php4-imagemagick
php4-mysql
apache-dev (found in the dev section; it was needed to install the php accelerator, apc)

I also included these, though I'm not positive they were required:

php4-pear
php4-cli
php4

Download and install apc from www.php.net. It suggests:

If you are trying to get every little bit of speed out of PHP4+APC, you need
to tell APC where to find your httpd.h file and also add -DAPC_PHP4_STAT to
your CPPFLAGS.  (if you don't have httpd.h, install the apache_dev package
for your OS) and do:
  export CPPFLAGS="-I/usr/include/apache-1.3 -DAPC_PHP4_STAT" (for bash on Debian)
  setenv CPPFLAGS "-I/usr/include/apache-1.3 -DAPC_PHP4_STAT" (for tsch on Debian)
and then re-run your configure script.

Do NOT do this unless you know how to do all of it. I used the "export" without doing anything else, and that made ./configure fail.

Download ezPublish 3.6.x.
Follow the installation instructions.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

André R.

Tuesday 16 January 2007 4:20:30 am

Alternatively you could use the testing branch.
It's known to be very stable, especially now that they are waiting for Debian 4.0.

http://packages.debian.org/cgi-bin/search_packages.pl?keywords=php4&searchon=names&subword=1&version=testing&release=all

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Artturi Markko

Saturday 23 June 2007 11:04:50 am

Another alternative is to use dotdeb's backport of php4.

Set this in your sources.list :

deb http://packages.dotdeb.org sarge all
deb-src http://packages.dotdeb.org sarge all

Artturi

Lukasz Piech

Saturday 23 June 2007 11:19:20 am

Did anyone of you tried XAMPP from Apache Friends on Debian?

I have it setup and it works like a charm.
It has both PHP 4 and 5 and you can setup a webserver in 5 minutes. It also has eAccelerator build in, which is important for eZ too. In general it has everything you need to run eZ (includeing GD2, Apache 2.2.4, MySQL5, PHP4 and PHP5)

I have manager do rebuild my eZ publish site from backup in 1 hour using Debian 4 Etch and XAMPP :)

Here are the specs:
Apache 2.2.4, MySQL 5.0.41, PHP 5.2.2 & 4.4.7 & PEAR + SQLite 2.8.17/3.3.17 + multibyte (mbstring) support, Perl 5.8.7, ProFTPD 1.3.0a, phpMyAdmin 2.10.1, OpenSSL 0.9.8e, GD 2.0.1, Freetype2 2.1.7, libjpeg 6b, libpng 1.2.12, gdbm 1.8.0, zlib 1.2.3, expat 1.2, Sablotron 1.0, libxml 2.4.26, Ming 0.3, Webalizer 2.01, pdf class 009e, ncurses 5.8, mod_perl 2.0.2, FreeTDS 0.63, gettext 0.11.5, IMAP C-Client 2004e, OpenLDAP (client) 2.3.11, mcrypt 2.5.7, mhash 0.8.18, eAccelerator 0.9.5.1, cURL 7.13.1, libxslt 1.1.8, phpSQLiteAdmin 0.2, libapreq 2.07, FPDF 1.53, XAMPP Control Panel 0.6

Oh, and it is free :)

Lukasz

André R.

Saturday 23 June 2007 2:17:11 pm

XAMPP is great for development machines, but if you search for 'XAMPP security' you'l notice that it's not recommended for production servers.

And php 4.4 is included in Debain 4, and so are all the other things you need (except eAccelerator, but you can easily install apc from pecl). So I don't really think you saved that much time on it.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Lukasz Piech

Saturday 23 June 2007 11:42:50 pm

True True. But it is really easier to deploy and there is a step-by-step guide on how to secure the installation. Plus you i.e get Webalizer and phpMyAdmin out-of-the box

But I agree - it is best for developement machines. And you can switch between php4 and php5 using one command, which is great in devel environment

Lukasz