This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ mysql -u root -p | |
Enter password: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ sudo service mysqld start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ tar -xzf latest.tar.gz | |
[ec2-user ~]$ ls | |
latest.tar.gz wordpress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ wget https://wordpress.org/latest.tar.gz | |
--2013-08-09 17:19:01-- https://wordpress.org/latest.tar.gz | |
Resolving wordpress.org (wordpress.org)... 66.155.40.249, 66.155.40.250 | |
Connecting to wordpress.org (wordpress.org)|66.155.40.249|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 4028740 (3.8M) [application/x-gzip] | |
Saving to: latest.tar.gz | |
100%[======================================>] 4,028,740 20.1MB/s in 0.2s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ sudo chkconfig mysqld on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ sudo mysql_secure_installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ sudo service mysqld start | |
Initializing MySQL database: Installing MySQL system tables... | |
OK | |
Filling help tables... | |
OK | |
To start mysqld at boot time you have to copy | |
support-files/mysql.server to the right place for your system | |
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ rm /var/www/html/phpinfo.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user ~]$ find /var/www -type f -exec sudo chmod 0664 {} + |