|
@@ -30,6 +30,15 @@ echo "Installing PHP quietly"
|
|
|
make --quiet install
|
|
|
cd ..
|
|
|
|
|
|
+# Disable yaf and phalcon, for most PHP frameworks
|
|
|
+# (there is a similar line to enable the frameworks in their respective setup files)
|
|
|
+sed -i 's|^extension=yaf.so|;extension=yaf.so|g' $FWROOT/config/php.ini
|
|
|
+sed -i 's|^extension=phalcon.so|;extension=phalcon.so|g' $FWROOT/config/php.ini
|
|
|
+
|
|
|
+# Enable the correct Mongo DB plugin for PHP 5
|
|
|
+sed -i 's|^extension=mongodb.so|;extension=mongodb.so|g' $FWROOT/config/php.ini
|
|
|
+sed -i 's|;extension=mongo.so|extension=mongo.so|g' $FWROOT/config/php.ini
|
|
|
+
|
|
|
cp $FWROOT/config/php.ini $PHP_HOME/lib/php.ini
|
|
|
cp $FWROOT/config/php-fpm.conf $PHP_HOME/lib/php-fpm.conf
|
|
|
|
|
@@ -44,29 +53,10 @@ echo PHP compilation finished, installing extensions
|
|
|
$PHP_HOME/bin/pecl channel-update pecl.php.net
|
|
|
# Apc.so
|
|
|
$PHP_HOME/bin/pecl config-set php_ini $PHP_HOME/lib/php.ini
|
|
|
-printf "\n" | $PHP_HOME/bin/pecl -q install -f redis
|
|
|
-
|
|
|
-# yaf.so
|
|
|
-# printf "\n" | $PHP_HOME/bin/pecl -q install -f yaf
|
|
|
-
|
|
|
-# phalcon.so
|
|
|
-# The configure seems broken, does not respect prefix. If you
|
|
|
-# update the value of PATH then it finds the prefix from `which php`
|
|
|
-
|
|
|
-fw_get -O https://github.com/phalcon/cphalcon/archive/phalcon-v1.3.2.tar.gz
|
|
|
-fw_untar phalcon-v1.3.2.tar.gz
|
|
|
-cd cphalcon-phalcon-v1.3.2/build/64bits
|
|
|
-$PHP_HOME/bin/phpize
|
|
|
-# For some reason we have to point to php-config
|
|
|
-# explicitly, it's not found by the prefix settings
|
|
|
-./configure --prefix=$PHP_HOME --exec-prefix=$PHP_HOME \
|
|
|
- --with-php-config=$PHP_HOME/bin/php-config \
|
|
|
- --enable-phalcon --quiet
|
|
|
-make --quiet
|
|
|
-make install
|
|
|
+printf "\n" | $PHP_HOME/bin/pecl -q install -f redis-2.2.5
|
|
|
|
|
|
-# mongodb.so
|
|
|
-printf "\n" | $PHP_HOME/bin/pecl -q install -f mongodb
|
|
|
+# mongo.so
|
|
|
+printf "\n" | $PHP_HOME/bin/pecl -q install -f mongo
|
|
|
|
|
|
# Clean up a bit
|
|
|
rm -rf $IROOT/php
|