-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:digitalquery/wp-vagrant
- Loading branch information
Showing
10 changed files
with
78 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
# backup existing php.ini | ||
mv /etc/php/${php_version}/fpm/php.ini /etc/php/${php_version}/fpm/php.ini.default | ||
|
||
cp /vagrant/wp-vagrant/php/php.ini /etc/php/${php_version}/fpm/php.ini | ||
cp /vagrant/wp-vagrant/php/20-xdebug.ini /etc/php/${php_version}/fpm/conf.d/ | ||
cp /vagrant/wp-vagrant/php/www.conf /etc/php/${php_version}/fpm/pool.d/ | ||
|
||
sed -i "s/%%php_version%%/${php_version}/" //etc/php/${php_version}/fpm/pool.d/www.conf | ||
|
||
|
||
update-alternatives --set php /usr/bin/php${php_version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,18 @@ | |
# Basic settings | ||
# | ||
|
||
# this is hostname for the vagrant box | ||
# make sure to change it in the Vagrantfile as well | ||
hostname='wpvagrant.dev' | ||
|
||
# PHP version to install | ||
# valid values: | ||
# 5.5 | ||
# 5.6 | ||
# 7.0 | ||
php_version='7.0' | ||
|
||
|
||
# set install_wordpress to true to download and install latest version of WP | ||
install_wordpress=true | ||
|
||
|
@@ -24,19 +36,24 @@ mysql_root_password='root' | |
|
||
############################################################################### | ||
# WP database | ||
# this will create a db with these details | ||
# | ||
|
||
|
||
# name of database: eg wordpress | ||
wp_db_name='vagrant_test' | ||
wp_db_name='wp_vagrant' | ||
|
||
# database user name | ||
# database user name, leave empty for root | ||
wp_db_user='' | ||
|
||
# database password | ||
wp_db_password='' | ||
|
||
############################################################################### | ||
# WP admin / install | ||
# if this is a new db install, then use these details for the | ||
# initial WP admin user | ||
# ignored if install_wordpress is false | ||
# | ||
|
||
wp_admin_user='admin' | ||
|
@@ -45,7 +62,7 @@ wp_admin_password='123' | |
|
||
wp_admin_email='[email protected]' | ||
|
||
wp_site_title='Vagrant' | ||
wp_site_title='WP Vagrant' | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters