Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

Easy Install Wordpress with this script!

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
jetonr
Posts: 1
Joined: Thu Oct 12, 2017 10:10 pm

Easy Install Wordpress with this script!
  • Quote

Post by jetonr » Mon Oct 23, 2017 11:20 pm

Hello people,
I made this script for myself so I thought I would share it with all. This is what it does:
  • downloads the latest.tar.gz on the public_html of the user and domain you enter.
  • Removes the unnecessary files ( wp-config-sample.php, readme.html, license.txt and latest.tar.gz )
  • Creates a seccure .htacess file & sets correct premssions for file
  • Generates a robots.txt file with correnct ownership
  • Creates a database with user and password you enter for WordPress use
  • Creates a wp-config.php file with generated configuration and SALT included
https://gist.github.com/jetonr/d2fcf063 ... 4a5d8bb31e
Top

altayevrim
Posts: 4
Joined: Mon Apr 02, 2018 4:53 pm

Os: CentOS 6x
Web: apache + nginx
Re: Easy Install Wordpress with this script!
  • Quote

Post by altayevrim » Thu Aug 15, 2019 7:50 pm

Thanks dude..
Top

kallovsky
Posts: 19
Joined: Thu Mar 05, 2015 12:00 pm

Re: Easy Install Wordpress with this script!
  • Quote

Post by kallovsky » Fri May 01, 2020 1:31 pm

Amazing to speed things up! Thanks a lot!
Top

kallovsky
Posts: 19
Joined: Thu Mar 05, 2015 12:00 pm

Re: Easy Install Wordpress with this script!
  • Quote

Post by kallovsky » Fri May 01, 2020 1:53 pm

I just wanted to point out, that there is a tiny bit of trouble when using Apache 2.4, since the .htaccess calls are deprecated. You get a internal server error (500) and the logs telling you "Invalid command 'Deny'".
So I changed the creation process of the .htacess file from line 57-68.

old:

Code: Select all

<Files .htaccess>
Order Allow,Deny
Deny from all
</Files>
<Files wp-config.php>
Order Allow,Deny
Deny from all
</Files>
<Files xmlrpc.php>
Order allow,deny
Deny from all
</files>
new:

Code: Select all

</IfModule>
<Files .htaccess>
Require all denied
</Files>
<Files wp-config.php>
Require all denied
</Files>
<Files xmlrpc.php>
Require all denied
</files>
# Gzip
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifModule>
Options +FollowSymLinks -Indexes
EOL
Cheers
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Easy Install Wordpress with this script!
  • Quote

Post by youradds » Thu May 28, 2020 7:09 am

You could probably just make use of Scriptalicious which comes as an option on Vesta now :) (it does all the setting up for you)
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “CLI”



  • 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