Skip to content Skip to navigation

Installing WordPress on Leland

Posted by: 
Topics: 

Taken and modified from http://codex.wordpress.org/Installing_WordPress.

  1. Download, upload to your server, then unzip the WordPress package from http://wordpress.org/download/.

    You can either upload WordPress using FTP, or you can download it directly from wget:
    wget http://wordpress.org/latest.tar.gz

  2. Place it in the appropriate cgi-bin directory.

  3. Untar the file: tar -xzvf latest.tar.gz

    The WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.

  4. Request a MySQL database from https://tools.stanford.edu/sumysql. Keep track of the database server address, database name, user name, and password.
  5. Copy wp-config-sample.php to wp-config.php. Modify the following lines, which should be near the top of the file:

    // ** MySQL settings ** //
    define('DB_NAME', 'putyourdbnamehere'); // The name of the database
    define('DB_USER', 'usernamehere'); // Your MySQL username
    define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
    define('DB_HOST', 'mysql-user.stanford.edu'); // on Leland
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    Save the file.

  6. Run the WordPress install script. It is located at http://www.stanford.edu/path/to/wordpress/wp-admin/install.php

    It will ask for the title of your blog, and an e-mail address. These can be changed later. Then, it will provide you with an admin user name and password.

  7. Installation is now complete. Use the admin user name and password to log in and make changes.