Difference between revisions of "upgrade mediawiki on webhostingneeds.com"

From WebHostingNeeds.com
Jump to: navigation, search
m
m
 
Line 6: Line 6:
  
 
cd /home/webhostingneeds.com/boby
 
cd /home/webhostingneeds.com/boby
wget https://releases.wikimedia.org/mediawiki/1.28/mediawiki-1.28.1.tar.gz
 
 
mysqldump webhostingneeds > webhostingneeds-`date +%Y-%m-%d`.sql
 
mysqldump webhostingneeds > webhostingneeds-`date +%Y-%m-%d`.sql
echo  `date` 'mediawiki-1.28.1.tar.gz' >> version.txt
+
echo  `date` 'mediawiki-1.29.2.tar.gz' >> version.txt
tar xvfz mediawiki-1.28.1.tar.gz -C /home/webhostingneeds.com/public_html/ --strip-components=1
+
wget https://releases.wikimedia.org/mediawiki/1.29/mediawiki-1.29.2.tar.gz
  
cd /home/webhostingneeds.com/public_html
+
tar xf mediawiki-1.29.2.tar.gz
rm -rf vendor
+
mv mediawiki-1.29.2 /home/webhostingneeds.com/
composer self-update
+
 
 +
cd /home/webhostingneeds.com/
 +
mv public_html public_html-old
 +
mv mediawiki-1.29.2 public_html
 +
 
 +
mv public_html/images public_html/images-old
 +
mv  public_html-old/images public_html/images
 +
cp -R public_html-old/logo public_html/logo
 +
cp public_html-old/LocalSettings.php public_html
 +
 
 +
mv  /home/webhostingneeds.com/public_html-old/whn /home/webhostingneeds.com/public_html/
 +
 
 +
mv  /home/webhostingneeds.com/public_html-old/extensions/intersection /home/webhostingneeds.com/public_html/extensions/
 +
 
 +
 
 +
cd /home/webhostingneeds.com/public_html/
 
composer install
 
composer install
  
 
cd /home/webhostingneeds.com/public_html/maintenance/
 
cd /home/webhostingneeds.com/public_html/maintenance/
 
php update.php --aconf ../AdminSettings.php
 
php update.php --aconf ../AdminSettings.php
 +
  
  

Latest revision as of 21:05, 15 November 2017

Upgrade MediaWiki on webhostingneeds.com

s70 (cloud1.hostonnet.com)

cd /home/webhostingneeds.com/boby
mysqldump webhostingneeds > webhostingneeds-`date +%Y-%m-%d`.sql
echo  `date` 'mediawiki-1.29.2.tar.gz' >> version.txt
wget https://releases.wikimedia.org/mediawiki/1.29/mediawiki-1.29.2.tar.gz

tar xf mediawiki-1.29.2.tar.gz
mv mediawiki-1.29.2 /home/webhostingneeds.com/

cd /home/webhostingneeds.com/
mv public_html public_html-old
mv mediawiki-1.29.2 public_html

mv public_html/images public_html/images-old
mv  public_html-old/images public_html/images
cp -R public_html-old/logo public_html/logo
cp public_html-old/LocalSettings.php public_html

mv  /home/webhostingneeds.com/public_html-old/whn /home/webhostingneeds.com/public_html/

mv  /home/webhostingneeds.com/public_html-old/extensions/intersection /home/webhostingneeds.com/public_html/extensions/


cd /home/webhostingneeds.com/public_html/
composer install

cd /home/webhostingneeds.com/public_html/maintenance/
php update.php --aconf ../AdminSettings.php





mediawiki