Installations Tips - Raruto/wordpress-git GitHub Wiki
-
wp core download
--locale=it_IT
-
wp core config
--dbname=wp_test
--dbuser=root --dbpass=root --dbhost=127.0.0.1
-
wp db create
-
wp core install
--url=http://127.0.0.1/folder-name
--title="Site Name"
--admin_name="admin"
--admin_password="admin"
--admin_email="[email protected]" --skip-email
- run:
nano ~.bash_profile
- append the following lines:
PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1` # get latest available PHP version export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH # see: /Applications/MAMP/bin/php alias mysql='/Applications/MAMP/Library/bin/mysql'
- run:
source ~.bash_profile
- run
nano ~.bash_profile
- append the following lines:
alias php=php.exe alias wp='cmd.exe /c wp' alias composer='cmd.exe /c composer'
- run
source ~.bash_profile
- (optional) create a shortcut to your windows user folder:
ln -s /mnt/c/Users/<USERNAME> ~/<USERNAME>
Warning: You may permanently lose your PATH data (don't blindly copy/paste this..)
- run
setx path %path%;C:\MAMP\bin\php\php7.0.9\
for php version 7.0.9 - run
setx path %path%;C:\MAMP\bin\mysql\bin
for mysql - (optional) run
setx path %path%;C:\
some_path