Skip to content

Offirmo/base-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base-wordpress

A wordpress seed for quickly mounting quality wordpress sites

Using wp-cli

sudo ./wp.sh start base --port 10000 --no-src
sudo docker exec -it "wp_base" bash

puis dans le bash du conteneur :

cd
apt-get update
apt-get upgrade --yes
apt-get install curl jq --yes
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info --allow-root
chmod +x wp-cli.phar
cp wp-cli.phar /usr/local/bin/wp

go wordpress, thanks http://wp-cli.org/ http://wp-cli.org/commands/

cd /var/www/html/
rm -rf *
rm -rf .*
wp --allow-root core download --locale=fr_FR
wp --allow-root core config --dbname=wordpress --dbuser=username --dbpass=password --dbhost=mysql --dbprefix=xr7h81hn_ --locale=fr_FR
wp --allow-root db drop
wp --allow-root db create
wp --allow-root core install --url=http://192.168.88.88:10000  --title="Offirmo's base WP" --admin_user=adminzero --admin_password=adminzero --admin_email=offirmo.net@gmail.com
wp --allow-root core language list
wp --allow-root core language list --status=installed
wp --allow-root core language install fr_FR
wp --allow-root core language activate fr_FR
wp --allow-root user create "Offirmo" "offirmo.net+wpbase@gmail.com" --role=administrator --user_pass=WPBasePassword --display_name="Prestataire technique" --first_name=Administrateur --last_name=Prestataire
wp --allow-root user delete adminzero --reassign=2
wp --allow-root theme delete twentythirteen twentyfourteen
wp --allow-root plugin uninstall hello --deactivate
wp --allow-root plugin update akismet
wp --allow-root plugin activate akismet
wp --allow-root plugin install http://offirmo.github.io/html_tests/misc/backupbuddy-6.2.2.2.zip --activate
chown -R www-data:www-data *
chmod -R o+wx *

here make the 1st backup (http://192.168.88.88:10000/wp-login.php, Offirmo/WPBasePassword) then continue

wp --allow-root plugin install better-wp-security --activate
wp --allow-root plugin install polylang --activate
wp --allow-root plugin install language-icons-flags-switcher --activate
wp --allow-root plugin install simple-drop-cap --activate
wp --allow-root plugin install perfect-pullquotes --activate
wp --allow-root plugin install simple-custom-css --activate
wp --allow-root plugin install favicon-by-realfavicongenerator --activate
wp --allow-root plugin install wp-dashboard-notes --activate
wp --allow-root plugin install dashboard-directory-size --activate
wp --allow-root plugin install wpmandrill --activate
wp --allow-root plugin install check-email --activate
wp --allow-root theme install http://offirmo.github.io/html_tests/misc/Etendard-1-016.zip
wp --allow-root theme install http://offirmo.github.io/html_tests/misc/Etendard-enfant.zip --activate
wp --allow-root plugin install http://miwisoft.com/miwoftp.zip --activate
wp --allow-root menu create "Menu principal fr"
wp --allow-root menu create "Menu du pied de page fr"
wp --allow-root menu create "Menu principal en"
wp --allow-root menu create "Menu du pied de page en"
wp --allow-root menu create "Menu principal de"
wp --allow-root menu create "Menu du pied de page de"
chown -R www-data:www-data *
chmod -R o+wx *

# Général
wp --allow-root option update "users_can_register" "0"
wp --allow-root option update "date_format" "Y-m-d"
wp --allow-root option update "time_format" "H:i"
# Discussion
wp --allow-root option update "default_comment_status" "closed"
wp --allow-root option update "comment_moderation" "1"
wp --allow-root option update "comment_registration" "1"
wp --allow-root option update "avatar_default" "gravatar_default"
# Permaliens
wp --allow-root option update "permalink_structure" "/%postname%/"
wp --allow-root option update "uploads_use_yearmonth_folders" "0"
# Akismet
wp --allow-root option update "wordpress_api_key" "d49b5ee258bd"
wp --allow-root option update "akismet_show_user_comments_approved" "0"
wp --allow-root option update "akismet_strictness" "0"
# Etendard advertising
wp --allow-root option update "CocoricoPostMetaStorePostId" ""

Special lines

wp --allow-root db repair
wp --allow-root db optimize
wp --allow-root core update
wp --allow-root core update-db
wp --allow-root plugin update --all

wp --allow-root user list
wp --allow-root menu list
wp --allow-root post list --post_type=page,post
wp --allow-root option list --format=json > jq > options03.json
jq . pb_backupbuddy/
wp --allow-root option list --format=json > options02.json

wp --allow-root plugin uninstall backupbuddy --deactivate

Experimental

wp --allow-root menu item add-post sidebar-menu 33 --title="Custom Test Post"

wp --allow-root plugin install wpclef --activate
wp --allow-root plugin install wp-smush --activate
p3-profiler

wp --allow-root theme install sydney --activate
wp --allow-root theme install http://getonepager.com/downloads/onepager-1.0.0-beta.zip
briks
arcade-basic
eryn
cruzy
seasonal
mk
heinrich

old lines, for info

wp --allow-root plugin install jetpack
wp --allow-root plugin install http://offirmo.github.io/html_tests/misc/backupbuddy-5.2.0.10.zip --activate
wp --allow-root plugin install miwoftp --activate

About

A wordpress seed for quickly mounting quality wordpress sites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published