Phpstorm Git Credentials



With the git init local, we are done with creating the local repository, now we’ll create a remote repository in git host providers. There are many git host providers available on the internet, but few are popular, are Github, Gitlab, Bitbucket. Before clicking OK on this screen, you must add the SSH key to the settings of the remote Git repository. For details, see the documentation for adding an SSH key for GitHub and BitBucket. Pull and Deploy the Files. After you commit your web site files and push them to the remote repository, go to Websites & Domains and click the Pull Updates button next to the repository name.

Default Database Users

All sites provisioned via the custom site templates use the wp user by default:

FieldValue
usernamewp
passwordwp

If you manually create a database via the root MySQL user in PHPMyAdmin or by other means, you will need to grant the wp user access to that database. A custom site template will do this for you automatically.

The MariaDB root user should have the following credentials:

FieldValue
usernameroot
passwordroot

Phpstorm Git Credentials Tutorial

However, the root user password may need to be set. To do this, SSH into the VM with vagrant ssh and run sudo mysqladmin -u root password root. If this doesn’t work you will need to follow the standard MariaDB instructions for resetting the root password.

If you’re using the root user to create a database for a WordPress installation, it’s easier to use the custom site template which will create the database for you.

External Client Connections

Credentials

For external MySQL clients you need to use the external user:

FieldValue
hostvvv.test
usernameexternal
passwordexternal

See: Connecting to MariaDB/MySQL from your local machine for more information

Default WordPress Login

By default, the site templates use the following username and password unless specified:

FieldValue
usernameadmin
passwordpassword

The Root User

Vagrant Box Ubuntu Root:

FieldValue
usernameroot
passwordvagrant

Note that it is not possible to SSH directly into the VM as root for security reasons. If you need to run commands as root, either use sudo or sudo su, both of which do not require a password when ran as the vagrant user

SSH

You can SSH into the VM via the vagrant user with the command vagrant ssh. Running vagrant ssh-config will dump out an SSH config you can use to SSH directly into that VM without use of the vagrant command.

Phpstorm Change Git Credentials

Otherwise it is enough to run this command:

Phpstorm Remove Git Credentials

FieldValue
hostvvv.test
usernamevagrant

Note that no password is used.

SFTP

SFTP uses the same details as SSH, but, keep in mind that all these folders are available on your filesystem.

Using SFTP to modify files is slower, and would likely result in you replacing a file with itself making no meaningful change. The www folder and the /srv/www folders are the same folder, not clones/duplicates. It’s expected that the www folder would contain the local copy you intend to upload from. If this is not the case, I recommend looking into the vm_dir and local_dir options for defining sites.