(Dec 29) New version 0.9.8-18 has been released

WordPress auto install bash script for VestaCP

Section with modification and patches for Vesta
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
lukapaunovic
Posts: 5
Joined: Sun Dec 03, 2017 6:30 pm

WordPress auto install bash script for VestaCP

Postby lukapaunovic » Fri Dec 08, 2017 4:24 pm

I wrote a simple bash script which will enable you to easily install WordPress via bash for any domain hosted by VestaCP

Code: Select all

wget https://gist.githubusercontent.com/lukapaunovic/3a8f59f80c8f0ecb15e572a2781b23ae/raw/6ae0643aa570d15adf38c47514d1ac820435347d/create_wp.sh && chmod +x create_wp.sh


Then simply do

Code: Select all

./create_wp.sh yourdomain.com username


Replace yourdomain.com with your domain on which you wish to install WordPress, and replace username with the username of the account owning the domain.
A script is using always the latest version of WP-CLI.
When it's done you'll see something like:

=================================================================
Installation is complete. Your username/password is listed below.

Username: admin
Password: As4&3sG

=================================================================


As the script always runs as the specified user, permissions and file ownership will remain correct. Also it's 100% safe to use.

NOTE: INTENDED ONLY TO BE RUN ON FRESHLY ADDED DOMAINS, OTHERWISE WILL REMOVE EVERYTHING FROM SPECIFIED DOMAINS PUBLIC_HTML FOLDER

Phogo
Posts: 42
Joined: Fri Dec 09, 2016 12:40 pm

Os: CentOS 7x
Web: nginx + php-fpm

Re: WordPress auto install bash script for VestaCP

Postby Phogo » Mon Dec 11, 2017 12:06 pm

Thanks, works great!

SysOp
Posts: 1
Joined: Thu Dec 21, 2017 1:34 pm

Re: WordPress auto install bash script for VestaCP

Postby SysOp » Thu Dec 21, 2017 1:36 pm

Works very well!
Thank you very much

Greetings and a happy holiday from germany ;)


Return to “Modification & Patches”



Who is online

Users browsing this forum: No registered users and 1 guest