• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Bash Script to wget WordPress : Ready to Run the Installer

By Abhishek Ghosh January 30, 2016 7:01 am Updated on January 30, 2016

Bash Script to wget WordPress : Ready to Run the Installer

Advertisement

This bash script is does not add database details or change site name, unlike our previous script to install WordPress. Your Working Server Will Be Ready to Run the Installer From Browser Web Interface. This Bash Script to wget WordPress Will Perform Some Automation Possibly Most sysadmins will will want. It automates the boring part and for bash shell itself gets auto deleted.

 

Bash Script to wget WordPress : How to Use and What it Performs

 

Most advanced users do not want automation of all the steps for WordPress Installation. Man to man choice varies widely.

Normally, you are going to the FTP root of your installation (where you’ll install WordPress), wget this Bash Script to wget WordPress from GitHub and do the next steps like performing a test run. For test run, you can create a test directory on your Mac or GNU/Linux PC or server and wget this Bash Script to wget WordPress from GitHub. Then run :

Advertisement

---

Vim
1
2
chmod +x wordpress_wget.sh
sh wordpress_wget.sh

It will :

  1. wget WordPress
  2. Uncompress the tar ball
  3. Remove the tar ball
  4. cd to the uncompressed directory
  5. Move all the WordPress files and directories to one level up – at the directory level where the bash script is placed
  6. Remove the empty uncompressed directory
  7. Rename wp-config-sample.php to wp-config.php
  8. Deletes readme.html and license.txt files (there is no meaning to advertise that it is WordPress, you know that WordPress is under GNU GPL)
  9. In case of bash, oh-my-zsh shells, the script (wordpress_wget.sh) will get auto deleted

Remaining work is to point towards the domain/IP start installation of WordPress. That process actually tests the proper permission of the files and directories, fill up with wp-salt etc. Here is a screenshot from our Mac :

Bash Script to wget WordPress Ready to Run the Installer

 

The Source Code of the Bash Script to wget WordPress

 

There is not huge tricks, it is just an easy script :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# WGET script for Latest WordPress by Dr. Abhishek Ghosh
# License : GNU GPL 3.0
# for test run, put in any empty dir and run
echo "WGET WordPress Script"
wget http://wordpress.org/latest.tar.gz
echo "WordPress tar ball downloaded"
tar -xzvf latest.tar.gz
echo "WordPress tar ball uncompressed"
rm latest.tar.gz
cd wordpress
mv * ..
cd ..
rm -r wordpress
echo "WordPress files moved where this script is"
mv wp-config-sample.php wp-config.php
echo "wp-config.php is copied"
rm readme.html
rm license.txt
clear
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "|                       Complete!                                   |"
echo "|                                                                   |"
echo "| Open browser window and start installation of WordPress           |"
echo "| or edit wp-config.php in case of moving WordPress.                |"
echo "|                                                                   |"
echo "| For WordPress and Server tutorials visit :                        |"
echo "|                                                                   |"
echo "| https://thecustomizewindows.com                                   |"
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
rm -- "$0"

These few lines are hugely painful to do for repeat works. We could use sed to add some data, but basically for Apache, Nginx there are other works. This set is crux of the most commonly done steps.

Tagged With cat a file that has wget bash script , custom wget bash script , source the wget base file and cat all into a bash script , wget to run php script windows , wget wordpress

This Article Has Been Shared 633 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Bash Script to wget WordPress : Ready to Run the Installer

Actually a list should normally appear here. Automated calculation failed.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • FaaS Versus PaaS Deployment: What You Should Know May 18, 2022
  • What Is A Digital Media Consultancy? May 17, 2022
  • How Artificial Intelligence (AI) Is Changing The Way We Play Bingo May 16, 2022
  • Why You Need A Big Data Consultant May 15, 2022
  • The Connection Between AI And Online Slots May 13, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Bash Script to wget WordPress : Ready to Run the Installer," in The Customize Windows, January 30, 2016, May 19, 2022, https://thecustomizewindows.com/2016/01/bash-script-to-wget-wordpress-ready-to-run-the-installer/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy