php update to 5.3.0-3 – FAIL

Can’t say I’m a fan of the way the php update worked at all. It’s not Arch’s fault, but still……. what a pain.
I’ve been running webservers for over a decade now, and the “split” ( see http://www.archlinux.org/pipermail/arch-dev-public/2009-August/012951.html ) of the php package into modules? sort of created havoc on archlinux.me for a few minutes tonight.
I still haven’t gotten it to work yet, but I’m getting closer. First off, you will need php-apache OR you will get errors that look like :

[root@Archie php]# httpd -t
httpd: Syntax error on line 119 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory

After screwing around with this for a bit, I decided to just revert the php package BACK to php 5.2.10 for now.

[root@Archie pkg]# pacman -U php-5.2.10-3-i686.pkg.tar.gz
loading package data…
checking dependencies…
(1/1) checking for file conflicts [#########################################################################] 100%
error: failed to prepare transaction (conflicting files)
php: /etc/httpd/conf/extra/php5_module.conf exists in filesystem
php: /usr/lib/httpd/modules/libphp5.so exists in filesystem

errors occurred, no packages were upgraded.
[root@Archie pkg]# pacman -Uf php-5.2.10-3-i686.pkg.tar.gz
loading package data…
checking dependencies…
warning: /etc/php/php.ini installed as /etc/php/php.ini.pacnew
(1/1) upgrading php [#########################################################################] 100%
New optional dependencies for php
bzip2: bz2
curl: curl
gdbm: dba
libpng: gd
libjpeg: gd
freetype2: gd
pam: imap
libldap: ldap
libmcrypt: mcrypt
libtool: mcrypt
libmysqlclient: mysql/mysqli/pdo_mysql
unixodbc: odbc/pdo_odbc
openssl: openssl
postgresql-libs: pgsql/pdo_pgsql
aspell: pspell
net-snmp: snmp
sqlite3: pdo_sqlite
tidyhtml: tidy
libxslt: xsl
mhash: mhash
gmp: gmp
[root@Archie pkg]# /etc/rc.d/httpd restart
:: Restarting httpd daemon [BUSY] [DONE]

php-5.2.10-3-i686.pkg.tar.gz << worked
php-5.3.0-3-i686.pkg.tar.gz << new package … bleh
php-apache-5.3.0-3-i686.pkg.tar.gz << required package for new package

I guess until I have more time to sort this out, I'll just have to stick with the 5.2.x php package for now.

———————————-

http://www.archlinux.org/news/465/

PHP 5.3 enters [extra]

The new major PHP 5.3 release is finally available in the [extra] repository.
This update will require manual adjustments:
* update your php.ini; see php.ini.pacnew as reference
* module path is now /usr/lib/php/modules
* session, mbstring and zlib are now built in
* the fileinfo module is now built in and no longer a separate package
* mysqlnd is anabled; so libmysqlclient is no longer needed
* Setting default-character-set in my.cnf may cause encoding problems
* Set date.timezone in php.ini
* third party extensions need to be updated
* There are also new versions of the suhosin and apc extension
make sure to review their configuration as well

PHP was split into the following packages:
* php
* php-apache
* php-cgi
* php-curl
* php-enchant
* php-gd
* php-gmp
* php-intl
* php-ldap
* php-mcrypt
* php-odbc
* php-pear
* php-pgsql
* php-pspell
* php-snmp
* php-sqlite
* php-tidy
* php-xsl

If you are using php on a webserver you either need the cgi or apache sapi.
The sqlite package includes the sqlite3 drivers; the legacy sqlite2 drive is
included in the php package itself.

Comments are closed.