Tag Archives: 14.04

WordPress: Install on Ubuntu 14.04

  • https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04
  • mysql -u root -p
    CREATE DATABASE wordpress;
    CREATE USER wordpressuser@localhost IDENTIFIED BY ‘password’;
    GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost;
    FLUSH PRIVILEGES;
    exit
  • cd ~
    wget http://wordpress.org/latest.tar.gz
    tar xzvf latest.tar.gz
    sudo apt-get update
    sudo apt-get install php5-gd libssh2-php
    cd ~/wordpress
    cp wp-config-sample.php wp-config.php
    nano wp-config.php
    define(‘DB_NAME’, ‘wordpress’);
    define(‘DB_USER’, ‘wordpressuser’);
    define(‘DB_PASSWORD’, ‘password’);
    sudo rsync -avP ~/wordpress/ /var/www/html/
    cd /var/www/html
    sudo chown -R demo:www-data *
    mkdir /var/www/html/wp-content/uploads
    sudo chown -R :www-data /var/www/html/wp-content/uploads

  • mv index.html index.old

  • http://server_domain_name_or_IP

Advertisements

MOTD on Ubuntu 14.04

# Print the message of the day upon successful login.
# This includes a dynamically generated part from /run/motd.dynamic
# and a static (admin-editable) part from /etc/motd.
session optional pam_motd.so motd=/run/motd.dynamic noupdate
session optional pam_motd.so # [1]