i am configuring a testing env. for myself to testmy applicaiton locally on centos5 here are the steps i took to configure it.
1. httpd came installed with the os.
2. for other packages i used the following command
yum install perl gcc gcc-C++ mysql mysql-server mysql-devel php php-mysql php-gd
every this goes fine no error in installtion of the package
tryed this code for testing the php
<? php phpinfo(); ?>
and here is the result i get
"'./configure' '--build=i686-redhat-linux
-gnu' '--host=i686-redhat-linux-
gnu' '--target=i386-redhat-linu
x-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include
' '--libdir=/usr/lib' '--libexecdir=/usr/libexec
' '--localstatedir=/var' '--sharedstatedir=/usr/com
' '--mandir=/usr/share/man' '--infodir=/usr/share/info
' '--cache-file=../config.ca
che' '--with-libdir=lib' '--with-config-file-path=/
etc' '--with-config-file-scan-d
ir=/etc/ph
p.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/u
sr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/ht
tpd/conf/m
agic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/ap
xs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' "
i chked all the packages if they are installed and with command
rpm -q <package_name>
and all packages are installed.
as in this configure command we can see that php is configured without mysql and php-gd . how can i configure php manually now to work with mysql and gd. while php is installed with yum command.
Start Free Trial