Just another Wordpress with phpdotenv. This ships with Wordpress 4.7.3 so please follow it's system requirements.
- PHP 7.0 or greater
- Composer
- Clone or download this repo.
- Run
composer install
to install the required package. - Copy
.env.stub
and rename it to.env
. Update the configurations in the file now named as.env
. - Or run
make setup
if you have Makefile support to run steps 1 and 2 then update the configurations in the generated.env
file. - Run the installer by accessing
http://yourdevdomain.dev
. This could be your http://localhost or something else depending on your setup. - Cheers!
DEBUG
for debugging mode. Settrue
orfalse
to toggle debugging mode. Defaults tofalse
.DB_NAME
for the database name.DB_USER
for the database user.DB_PASSWORD
for the database password.DB_HOST
for the database host. This can be a hostname or an ip.DB_CHARSET
for the database character set. Defaults to utf8 (Unicode UTF-8). See this link for more details on valid MySQL characters sets.DB_COLLATE
for database collation. Read this for more details on database collation.DB_TABLE_PREFIX
for the database table prefix. It's important to add_
after the prefix. Defaults towp_
.AUTH_KEY
SECURE_AUTH_KEY
LOGGED_IN_KEY
NONCE_KEY
AUTH_SALT
SECURE_AUTH_SALT
LOGGED_IN_SALT
NONCE_SALT
are security keys. You can grab its values over here.WP_HOME
for the default home url. Using this will save you a database query, equates to performance plus plus.WP_SITEURL
for the default site url. Using this will save you a database query, equates to performance plus plus.FS_CHMOD_FILE
to override file permissions. Defaults to0644
.FS_CHMOD_DIR
to override directory permissions. Defaults to0755
.WP_MEMORY_LIMIT
to override PHP's memory limit. Adjust this according to your needs specially if you have resources hungry plugins. Defaults to64M
.WP_MAX_MEMORY_LIMIT
to override PHP's max memory limit. Adjust this according to your needs specially if you have resources hungry plugins. Defaults to256M
.WP_ALLOW_MULTISITE
to allow multisite support. Defaults tofalse
.WP_ALLOW_REPAIR
to allow database optimization and repair. Set back tofalse
once the process is done. Defaults tofalse
.
DEBUG=false
DB_NAME=db_name
DB_USER=db_user
DB_PASSWORD=QYewQFprw4s5VnPeKRR6QwS9
DB_HOST=localhost
DB_CHARSET=utf8
DB_COLLATE=
DB_TABLE_PREFIX=myprefix_
AUTH_KEY=")ssywuO+{|AtxE^Cgofr>^P&3O)Lqg+%Xf7M;);v9Vay&&^35i%DxH[FTCMYC)3{"
SECURE_AUTH_KEY=~"ngQ]Y88M[|!jh%n+/lTp@ecDwd[j|BcyA!i5p&e);REmIX?~_m*VI5>Fsr^hLAA"
LOGGED_IN_KEY="z+PjpsB%5+x=+!-WsZf0ue@VYx&S`d<Eo[4sBK&qb{:%}s9,16_6L qWNR8k-I]|"
NONCE_KEY="]tRE( {+7S=&$nBJ.NP.Se|yR<(<2TBglTPEb7Wo ,3gdb=8f|K({t>@e|lOP o+"
AUTH_SALT="hsYnm/?5-H+Y+|-phB|MTA7(+LMB,GTD+]M{.5<_fjZ/nC8p/FK/qjOCH-K5`--#"
SECURE_AUTH_SALT=":#!ZtQ1-LRq%<(p$zK%gqda!yi;NQY 1gGvKeszKoI[Ic_t8h{biZ?N5N Ur1 2F"
LOGGED_IN_SALT="3` t=|mRRa!id>aWtM;TdKbi+6)7(K>sR_B+-EnR UU_(,6Q0G+bHg_00]{^%HSs"
NONCE_SALT="A0HlN3HzLQoUO`C{w$S%45 +#V-CRp_L6z37@!p[*k-QposFk=#^<2jzLZTgbewp"
WP_HOME=http://localhost
WP_SITEURL=http://localhost
WP_MEMORY_LIMIT=124M
WP_MAX_MEMORY_LIMIT=256M