Originally posted by atomicturtle
Use the centosplus ones, I'll probably be dropping the 5.1 packages and moving on to 5.2 now that FC4 has been end of lifed.
I used the centosplus repo and everything appears to be working. PHP went up to 5.1.6 and MySQL went up to the 5 branch. Plesk seems happy, too.
BUT, it appears that this php package is compiled without some important modules! No gd, no mysql, etc. Um...what the heck do I do now to get those features back?
Here's the compile line from phpinfo:
'./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-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.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.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,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
EDIT: Disregard the above. This is VERY misleading. Here's the deal:
PHP is compiled this way on purpose. I had seen other posts where people had seen this compile line but the features listed as "--without..." WERE working. Mine, however, were not. That is, they were not working for the
default domain that Plesk sets up on the server.
I was going through all kinds of troubleshooting trying to figure out what was wrong. On a whim, I created a new vhost and, sure enough, my attempts to do test on GD, MySQL connections, etc, were successful. The phpinfo() on the subdomain revealed that, while the configure line still showed "--without...", the modules were now reporting their config blocks like I would expect.
So everything was fine all along. But the combination of the misleading configure line and the Plesk default domain being crippled for some reason, I believed that something was broken.
Jeezy Creezy.