Page 1 of 1

Easy Install Wordpress with this script!

Posted: Mon Oct 23, 2017 11:20 pm
by jetonr
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

Re: Easy Install Wordpress with this script!

Posted: Thu Aug 15, 2019 7:50 pm
by altayevrim
Thanks dude..

Re: Easy Install Wordpress with this script!

Posted: Fri May 01, 2020 1:31 pm
by kallovsky
Amazing to speed things up! Thanks a lot!

Re: Easy Install Wordpress with this script!

Posted: Fri May 01, 2020 1:53 pm
by kallovsky
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

Re: Easy Install Wordpress with this script!

Posted: Thu May 28, 2020 7:09 am
by youradds
You could probably just make use of Scriptalicious which comes as an option on Vesta now :) (it does all the setting up for you)