Mainframe98 has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/367878 )
Change subject: Update the installphp.sh script to use a supported PHP version
......................................................................
Update the installphp.sh script to use a supported PHP version
It has been stuck on 5.4 since it was added to the repository
in 9e25a8e32e6d. It also contained some typos and updating
the version required multiple changes, so that has been fixed.
Bug: T165079
Change-Id: I30b4d6d0701dc60651d3c07fd364312a78a45800
---
M maintenance/dev/installphp.sh
1 file changed, 10 insertions(+), 9 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/78/367878/1
diff --git a/maintenance/dev/installphp.sh b/maintenance/dev/installphp.sh
index d26ffa6..cfb0f63 100755
--- a/maintenance/dev/installphp.sh
+++ b/maintenance/dev/installphp.sh
@@ -12,13 +12,14 @@
exit 0
fi
-TAR=php5.4-latest.tar.gz
-PHPURL="http://snaps.php.net/$TAR"
+VER=5.6.31
+TAR=php-$VER.tar.gz
+PHPURL="https://github.com/php/php-src/archive/$TAR"
cd "$DEV"
-echo "Preparing to download and install a local copy of PHP 5.4, note that
this can take some time to do."
-echo "If you wish to avoid re-doing this for uture dev installations of
MediaWiki we suggest installing php in ~/.mediawiki/php"
+echo "Preparing to download and install a local copy of PHP $VER, note that
this can take some time to do."
+echo "If you wish to avoid re-doing this for future dev installations of
MediaWiki we suggest installing php in ~/.mediawiki/php"
echo -n "Install PHP in ~/.mediawiki/php [y/N]: "
read INSTALLINHOME
@@ -31,9 +32,9 @@
;;
esac
-# Some debain-like systems bundle wget but not curl, some other systems
+# Some debian-like systems bundle wget but not curl, some other systems
# like os x bundle curl but not wget... use whatever is available
-echo -n "Downloading PHP 5.4"
+echo -n "Downloading PHP 5.6.31"
if command -v wget &>/dev/null; then
echo "- using wget"
wget "$PHPURL"
@@ -46,12 +47,12 @@
exit 1;
fi
-echo "Extracting php 5.4"
+echo "Extracting php $VER"
tar -xzf "$TAR"
-cd php5.4-*/
+cd php$VER/
-echo "Configuring and installing php 5.4 in $PREFIX"
+echo "Configuring and installing php $VER in $PREFIX"
./configure --prefix="$PREFIX"
make
make install
--
To view, visit https://gerrit.wikimedia.org/r/367878
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I30b4d6d0701dc60651d3c07fd364312a78a45800
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mainframe98 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits