yum install centos-release-SCL yum install php54 php54-php-cli php54-php-mysql php54-php-gd
LDFLAGS=-L/usr/include/mysql ./configure --with-config-file-path=/etc --sysconfdir=/etc --with-zlib --with-bz2 --enable-zip --with-openssl=/usr/local/ssl --with-mcrypt --with-mhash --with-curl --with-ldap --with-gd --with-jpeg-dir --with-png-dir --enable-ftp --enable-exif --with-freetype-dir --enable-calendar --enable-soap --enable-mbstring --with-libxml-dir=/usr/lib --enable-cgi --with-mm --with-pdo-mysql --with-mysqli --with-mysql --with-pear --enable-intl --with-gettext --enable-gd-native-ttf --with-gmp --with-iconv --enable-sockets --with-pspell --enable-fpm --with-kerberos --libdir=/usr/lib64 make && make install && cp /usr/local/bin/* /usr/bin/ -R -f
I've tried installing PHP 5.4 by compiling it to a different directory in /etc (/etc/php54 I think it was) but Virtualmin is unable to detect my compiled version of 5.4. However, the SCL PHP 5.4 is detected.
My question is does anyone know, or can provide some insight or even code sample of how Virtualmin finds and detects the PHP versions that are installed? Mainly I am curious as I am attempting to build a administration panel to help manage all my servers (DigitalOcean Droplets) and automate a bunch of tasks. (Like creating a new droplet, building and compiling php, apache etc) with the click of a form submit. I think it would be kind of cool if I could also make it tell me which droplets (virtual machines) have what in terms of PHP versions available and things like that.