You are not logged in.

#1 2004-07-14 14:40:56

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

[Request] PHP 5

Hello,

my webhoster sent me a mail that he will update to PHP5 till october. A PHP5-Package would be very nice or perhaps an PKGBUILD-file. (I wonder how long would it compile on my old machine *g*)

Offline

#2 2004-07-14 14:50:38

Bobonov
Member
From: Roma - Italy
Registered: 2003-05-07
Posts: 295

Re: [Request] PHP 5

Actually PHP has been flagged as outdated.
But I do not know if the next is going to be  5.0 or 4.3.8

Offline

#3 2004-07-14 15:35:44

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [Request] PHP 5

i thought php5 was still in beta release? if that is the case you may have to wait until it is stable release before you see it in the repos (unless a dev makes a testing package)


AKA uknowme

I am not your friend

Offline

#4 2004-07-14 15:49:42

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [Request] PHP 5

PHP 5 is a stable release :-)

Offline

#5 2004-07-14 16:46:39

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [Request] PHP 5

then just having some patience will do the trick tongue


AKA uknowme

I am not your friend

Offline

#6 2004-07-14 17:38:45

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: [Request] PHP 5

and if patience is lacking, a PKGBUILD will suffice. smile

Offline

#7 2004-07-14 19:46:34

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [Request] PHP 5

I am just building PHP5. There are still some problems with "./configure" because of paramter-changes. I think I could fix that. But I don`t really know what I am doing. ;-) -> Don`t use this:

pkgname=php
pkgver=5.0.0
pkgrel=1
pkgdesc="A high-level scripting language"
backup=(etc/php.ini)
depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam' 
         'gdbm' 'libxslt' 'openldap')
makedepends=('apache' 'mysql' 'imap' 'postgresql' 'bzip2' 'smtp-server')
source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.bz2)
url="http://www.php.net"
md5sums=('562b7ad1e903248bbe77884cb904b8b7')

build() {
  mkdir $startdir/pkg/etc/
  mkdir $startdir/pkg/etc/httpd/
  mkdir $startdir/pkg/etc/httpd/conf/
  cp /etc/httpd/conf/httpd.conf $startdir/pkg/etc/httpd/conf/httpd.conf
  cd $startdir/src/$pkgname-$pkgver
  ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc 
    --with-ttf --enable-mailparse --with-config-file-scan-dir=/etc 
    --enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared 
    --enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared 
    --enable-session --enable-shared --enable-shmop=shared --with-imap 
    --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars 
    --enable-trans-sid --enable-safe-mode --enable-sockets=shared 
    --enable-xml --with-bz2=shared --without-db2 --without-db3 
    --with-freetype-dir=/usr --with-gd --with-gdbm --enable-exif 
    --with-jpeg-dir=/usr --with-mysql=/usr --with-ldap 
    --with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext 
    --with-pear=/usr/share/pear --with-dom --with-dom-xslt 
    --with-pgsql=shared --with-pgsql-sock=/tmp/pgsql.sock 
    --with-png-dir=/usr --with-regex=php --with-zlib
  make || return 1
  mkdir -p $startdir/pkg/usr/lib/apache
#  cp config_vars.mk config_vars.old
#  sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
  #sed -i "s|-i -a -n php5|-i -n php5|g" Makefile
  make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
  #cp ../php.ini $startdir/pkg/etc
}

I don`t know what the sed-lines will do; but it works without them.

Offline

#8 2004-07-15 07:01:04

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [Request] PHP 5

There is a package in current. But this wont work with mySQL for example because it uses the "./configure"-parameters of the PHP4-Version which will no longer work. See "./configure --help".

Offline

#9 2004-07-15 15:34:22

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [Request] PHP 5

file a bug asap. good catch.


AKA uknowme

I am not your friend

Offline

#10 2004-07-15 21:50:26

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: [Request] PHP 5

I have it working with mysql.  You just have to enable the extension in your php.ini.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB