You are not logged in.
Pages: 1
I need to get this to work..... php4.3.10 with mysql...
tried about every single PKGbuild i could find, but every single one
of them dont give me support for mysql... Meaning trying to use phpmyadmin i get mysql module not loaded ... I have used this pkgbuild in which you can see i do use the --with mysql flag/option... can some one plz help me out here or tell me where i go wrong or what i have to do to make it work ???? plz ....
pkgname=php
pkgver=4.3.10
pkgrel=2
pkgdesc="A high-level scripting language"
backup=(etc/php.ini)
depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam'
'gdbm' 'libxslt' 'openldap')
makedepends=('apache' 'mysql' 'bzip2' 'smtp-server')
source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz php.ini)
url="http://www.php.net"
build() {
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
--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=shared,/usr --with-ldap
--with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext
--with-pear=/usr/share/pear --with-dom --with-dom-xslt
--with-png-dir=/usr --with-regex=php --with-zlib --with-curl
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 php4|-i -n php4|g" Makefile
make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
cp ../php.ini $startdir/pkg/etc
}
Offline
Hi,
did you activate mysql support in php.ini. Because when there is an update for php from the official repos I must always activate it in php.ini.
lotho
Offline
exactly. build php. install the package.
find out what the name of the mysql extension is..
ls -lR /usr/lib/php/extensions | grep -i 'sql'
look for the one that is similar to mysql.so or something..
then edit php.ini, and add
extension=mysql.so
if might already be in there...just uncomment it if it is.
then restart apache.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Pages: 1