Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

WordPress auto install bash script for VestaCP Topic is solved

Section with modification and patches for Vesta
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
lukapaunovic
Posts: 73
Joined: Sun Dec 03, 2017 6:30 pm

WordPress auto install bash script for VestaCP
  • Quote

Post by lukapaunovic » Fri Dec 08, 2017 4:24 pm

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

Installing:

Code: Select all

wget https://raw.githubusercontent.com/lukapaunovic/create_wp/master/create_wp.sh && chmod +x create_wp.sh && mv create_wp.sh /usr/local/bin/create_wp
Usage:

Code: Select all

usage: create_wp domain [email]
Email argument is optional.
The script will automatically install SSL certificate for 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

Github: https://github.com/lukapaunovic/create_wp/
Last edited by lukapaunovic on Wed Jan 16, 2019 7:23 pm, edited 7 times in total.
Top

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

Os: CentOS 6x
Web: nginx + php-fpm
Re: WordPress auto install bash script for VestaCP
  • Quote

Post by Phogo » Mon Dec 11, 2017 12:06 pm

Thanks, works great!
Top

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

Re: WordPress auto install bash script for VestaCP
  • Quote

Post by SysOp » Thu Dec 21, 2017 1:36 pm

Works very well!
Thank you very much

Greetings and a happy holiday from germany ;)
Top

cyril
Posts: 1
Joined: Wed Apr 03, 2019 3:33 pm

Os: CentOS 6x
Web: apache + nginx
Re: WordPress auto install bash script for VestaCP
  • Quote

Post by cyril » Wed Apr 03, 2019 3:46 pm

It looks great, but I have a problem:

1. Install

Code: Select all

wget https://raw.githubusercontent.com/lukapaunovic/create_wp/master/create_wp.sh && chmod +x create_wp.sh && mv create_wp.sh /usr/local/bin/create_wp
Error:

Code: Select all

mv: cannot move ‘create_wp.sh /usr/local/bin/create_wp’: Permission denied
So I move with sudo

Code: Select all

sudo mv create_wp.sh /usr/local/bin/create_wp
2. Usage:

Code: Select all

create_wp mynewdomain.com
error:

Code: Select all

grep: /usr/local/vesta/data/users/*/*.conf: Permission denied
Domain doesn't exist
How to deal with this problem, thanks for your reply.
Top

qwerty
Posts: 29
Joined: Sat Aug 29, 2015 5:59 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: WordPress auto install bash script for VestaCP
  • Quote

Post by qwerty » Thu Jul 18, 2019 10:31 pm

thanks a lot for ur script! but somebody help me please!

Image

after installation i reboot my server.
wordpress is not working.
when you click on the address https://domain.ru/wp-admin/ error 404 appears.

File wp-config.php contains trully: DB_PASSWORD DB_NAME DB_USER

what to do?
Last edited by qwerty on Fri Jul 19, 2019 2:06 pm, edited 2 times in total.
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: WordPress auto install bash script for VestaCP
  • Quote

Post by grayfolk » Thu Jul 18, 2019 11:12 pm

Try to change template for this domain.
Top

qwerty
Posts: 29
Joined: Sat Aug 29, 2015 5:59 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: WordPress auto install bash script for VestaCP
  • Quote

Post by qwerty » Fri Jul 19, 2019 2:02 pm

grayfolk wrote: ↑
Thu Jul 18, 2019 11:12 pm
Try to change template for this domain.
I dont understand how can i change template if i have 404 error...
Сan you explain?

I just ran a script as root and the result appeared like:

Code: Select all

Installation is complete. Your username/password is listed below.
Site: https://mydomain/
Login: https://mydomain/wp-admin/
Username: admin
Password: password
after installation i reboot.
i think that script does not work properly
Top

ufuk
Posts: 1
Joined: Sun Sep 01, 2019 6:29 pm

Os: Debian 8x
Web: apache + nginx
Re: WordPress auto install bash script for VestaCP
  • Quote

Post by ufuk » Sun Sep 01, 2019 6:47 pm

Its amazing. Thank you.
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Modification & Patches”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password