We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
WordPress auto install bash script for VestaCP Topic is solved
-
- Posts: 73
- Joined: Sun Dec 03, 2017 6:30 pm
WordPress auto install bash script for VestaCP
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:
Usage:
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:
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/
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
Code: Select all
usage: create_wp domain [email]
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:
As the script always runs as the specified user, permissions and file ownership will remain correct. Also, it's 100% safe to use.=================================================================
Installation is complete. Your username/password is listed below.
Username: admin
Password: As4&3sG
=================================================================
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.
Re: WordPress auto install bash script for VestaCP
Thanks, works great!
Re: WordPress auto install bash script for VestaCP
Works very well!
Thank you very much
Greetings and a happy holiday from germany ;)
Thank you very much
Greetings and a happy holiday from germany ;)
Re: WordPress auto install bash script for VestaCP
It looks great, but I have a problem:
1. Install
Error:
So I move with sudo
2. Usage:
error:
How to deal with this problem, thanks for your reply.
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
Code: Select all
mv: cannot move ‘create_wp.sh /usr/local/bin/create_wp’: Permission denied
Code: Select all
sudo mv create_wp.sh /usr/local/bin/create_wp
Code: Select all
create_wp mynewdomain.com
Code: Select all
grep: /usr/local/vesta/data/users/*/*.conf: Permission denied
Domain doesn't exist
Re: WordPress auto install bash script for VestaCP
thanks a lot for ur script! but somebody help me please!
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?
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.
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: WordPress auto install bash script for VestaCP
Try to change template for this domain.
Re: WordPress auto install bash script for VestaCP
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
i think that script does not work properly
Re: WordPress auto install bash script for VestaCP
Its amazing. Thank you.