BlogServer - WordPress Installation
Jump to navigation
Jump to search
NOTE: These instructions, as they stand, set up WordPress as just a part of your existing web site. (eg.: www.foo.bar/WP)
Install the LAMP Stack
Install WordPress
wget -c http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
sudo rsync -av wordpress/* /var/www/html/WP/
sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R 755 /var/www/html/
sudo mysql -u root -p
- To wipe the database if needed...
DROP DATABASE wp_Someblog;
CREATE DATABASE wp_Someblog; GRANT ALL PRIVILEGES ON wp_Someblog.* TO 'somebody'@'localhost' IDENTIFIED BY 'somepassword'; FLUSH PRIVILEGES; EXIT;
sudo mv /var/www/html/WP/wp-config-sample.php /var/www/html/WP/wp-config.php
sudo vim /var/www/html/WP/wp-config.php
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wp_Someblog'); /** MySQL database username */ define('DB_USER', 'somebody'); /** MySQL database password */ define('DB_PASSWORD', 'somebody'); /** MySQL hostname */ define('DB_HOST', 'localhost'); /** Database Charset to use in creating database tables. */ define('DB_CHARSET', 'utf8'); /** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', '');
sudo systemctl restart apache2.service
sudo systemctl restart mysql.service