Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AdamLawicki
AdamLawicki / gist:e3b4a257c5cc868bb89b
Created October 18, 2015 21:42
Add apache user to www group
[ec2-user wordpress]$ sudo usermod -a -G www apache
@AdamLawicki
AdamLawicki / gist:6b572c194741b3306e18
Last active October 18, 2015 21:37
open httpd.config file
[ec2-user wordpress]$ sudo vim /etc/httpd/conf/httpd.conf
@AdamLawicki
AdamLawicki / gist:20fe5e5ad4458d19399a
Created October 18, 2015 21:34
Move the WordPress installation to your web server Apache document root and then run the installation script.
[ec2-user wordpress]$ mv * /var/www/html/
@AdamLawicki
AdamLawicki / gist:41735e23d4d92371d405
Created October 18, 2015 21:19
edit wp-config using nano
[ec2-user wordpress]$ nano wp-config.php
@AdamLawicki
AdamLawicki / gist:a0faf5dbdd60e96857d8
Created October 18, 2015 21:18
Copy wp-config-sample.php to a new file called wp-config.php
[ec2-user ~]$ cd wordpress/
[ec2-user wordpress]$ cp wp-config-sample.php wp-config.php
@AdamLawicki
AdamLawicki / gist:0719a9a38f20639222f0
Created October 18, 2015 21:11
exit mysql client
mysql> exit
Bye
@AdamLawicki
AdamLawicki / gist:a12ba259ccaa1ac6bf87
Created October 18, 2015 21:11
flush mysql privileges
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
@AdamLawicki
AdamLawicki / gist:5a332d88ac8afbd2b0c7
Created October 18, 2015 21:10
Give your WordPress database user full privileges for the MySQL database
mysql> GRANT ALL PRIVILEGES ON `wordpress-db`.* TO "wordpress-user"@"localhost";
Query OK, 0 rows affected (0.00 sec)
@AdamLawicki
AdamLawicki / gist:8e607cbe3f8a4567debf
Created October 18, 2015 21:09
name your database. you might use wordpress-db
mysql> CREATE DATABASE `wordpress-db`;
Query OK, 1 row affected (0.01 sec)
@AdamLawicki
AdamLawicki / gist:05248a588c67cf7b7f50
Created October 18, 2015 21:05
Create a user name and password that will access the MySQL database. WordPress will use these credentials to communicate with the information in MySQL database.
mysql> CREATE USER 'wordpress-user'@'localhost' IDENTIFIED BY 'your_strong_password';
Query OK, 0 rows affected (0.00 sec)