App Details
WordPress runs on the CentOS 6 x64 operating system. You can log into this system with an SSH client using the root login found on your Vultr control panel.
Initially, you will need to access http://[SERVER_IP]/wp-admin/ in your web-browser. Substitute the [SERVER_IP] with the IP address of your VPS. Login credentials are sent to you in an email, and can also be found in your Vultr control panel. Once you have completed the WordPress setup, you can access WordPress at http://[SERVER_IP]/.
You may also want to point the DNS "A record" of your website to your [SERVER_IP]. This will allow you to access WordPress by navigating to your website (www.example.com). If you update your DNS record, be sure to edit your "WordPress Address (URL)" and "Site Address (URL)" to match your domain name. These settings are located in WordPress Admin (http://[SERVER_IP]/wp-admin/) -> Settings -> General.
There is a MySQL database server running on the VPS. You can connect to the database by executing the following:
mysql -u root
The MySQL root password is saved on the VPS in /root/.my.cnf.
Removing wp-admin Login Prompt
For servers created after 04/02/2015.
For security purposes, your WordPress app has an initial login prompt that opens when accessing the /wp-admin/ page. To remove this prompt, follow these steps.
- Login to your server using
sshas root. - Create a backup of your vhost files:
cp /etc/nginx/conf.d/*.conf /root/ - Edit both vhost files in
/etc/nginx/conf.d/. You need to remove the block of code that starts withlocation ^~ /wp-admin/. It is about 15 lines long. - Save your changes, and restart the web server:
service nginx restart && service php-fpm restart
SSL Details
For servers created after 04/02/2015.
Your WordPress server can be accessed with both http:// and https:// URLs. By default, the https:// URL uses a self-signed certificate, which display a security warning. This can be safely ignored.
To disable https:// support, do the following:
- Login to your server using
sshas root. - Move the HTTPS vhost file out of the web server conf:
mv /etc/nginx/conf.d/wordpress_https.conf /root/ - Restart the web server:
service nginx restart && service php-fpm restart
Depending on your plans for your WordPress site, you may want to update the certificate to one provided by an actual certificate authority. This will remove the security warning error. To install a new certificate, do the following:
- Obtain a certificate from a certificate authority for your domain.
- Login to your server using
sshas root. - Replace the
server.crtandserver.keyfiles in/etc/nginx/ssl/with the updated certificate. Details on converting certificate formats are outside of the scope of this article. - Restart the web server:
service nginx restart && service php-fpm restart
