How to install Wordpress in a SEAS account.

  1. Make sure you have CGI enabled on Fling or Alliance for the account where you want to install Wordpress.
  2. You will also need a MySQL database for which you have already created a password (a MySQL account will be created for you automatically when CGI is activated).
  3. Connect to the account via the command line (or log into a CETS-managed Linux workstation).
  4. Create the required directory with the correct permissions and install WordPress by running the following commands:

    umask 022
    mkdir -p ~/html/dynamic/wordpress
    touch ~/html/dynamic/wordpress/.htaccess
    cd ~/html/dynamic/wordpress
    wp core download

  5. Visit your Wordpress site to finish the installation process (replace ~username with the account name and fling with alliance if appropriate):

  6. Fill in your database information:
    • Database Name: the account name
    • Username: the account name
    • Password: your MySQL password
    • Database Host: localhost
    • Table Prefix: use the default unless you are installing another instance of Wordpress using the same database.
  7. Follow the rest of the steps of the installation.
  8. Run these commands to change the permissions on the WordPress configuration file to make sure no one can see your MySQL password:

    cd ~/html/dynamic/wordpress
    chmod 600 wp-config.php

  9. Disable the Wordpress Pingback feature in the Dashboard as described in Disabling XML-RPC pingback or by running these commands:

    cd ~/html/dynamic/wordpress
    wp plugin install disable-xml-rpc-pingback
    wp plugin activate disable-xml-rpc-pingback

  10. Enable permalinks if you want friendly URLs. Log into your Wordpress site and select Settings > Permalinks > Post name. Save your changes. This enables friendly URLs based on the post name. Alternatively, run this command:

    cd ~/html/dynamic/wordpress
    wp option update permalink_structure '/%postname%/'

    Other naming schemes are also available.

    Important: Try to make this decision as soon as possible, as permalinks are incompatible with the original URLs generated by Wordpress.

If you would like to enable PennKey authentication or have any other questions about your WordPress installation, please contact

© Computing and Educational Technology Services | Report a Problem | 215.898.4707