This file contains hidden or 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
| cd /var/www/portfolio | |
| touch .htaccess | |
| chmod 660 .htaccess | |
| mv wp-config-sample.php wp-config.php |
This file contains hidden or 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
| cd /var/www/ | |
| sudo rm -R html/ | |
| mkdir portfolio | |
| cd portfolio/ | |
| curl -O https://wordpress.org/latest.tar.gz | |
| tar -zxf latest.tar.gz -C . | |
| mv wordpress/* . | |
| rm latest.tar.gz | |
| rm -R wordpress/ |
This file contains hidden or 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
| sudo apt-get install php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc |
This file contains hidden or 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
| CREATE DATABASE portfolio; | |
| GRANT ALL ON portfolio.* TO 'portfolio-admin'@'localhost' IDENTIFIED BY 'SET STRONG PASSWORD'; | |
| FLUSH PRIVILEGES; | |
| EXIT; |
This file contains hidden or 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
| rick@ubuntu:~$ mysql -u root -p | |
| Enter password: | |
| Welcome to the MySQL monitor. Commands end with ; or \g. | |
| Your MySQL connection id is 4 | |
| Server version: 5.7.17-0ubuntu0.16.04.2 (Ubuntu) | |
| Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. | |
| Oracle is a registered trademark of Oracle Corporation and/or its | |
| affiliates. Other names may be trademarks of their respective |
This file contains hidden or 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
| rick@ubuntu:~$ sudo rm /var/www/html/index.php |
This file contains hidden or 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
| http://ip-address-of-webserver/ |
This file contains hidden or 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
| <?php | |
| phpinfo(); | |
| ?> |
This file contains hidden or 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
| rick@ubuntu:~$ sudo rm /var/www/html/index.html | |
| rick@@ubuntu:~$ touch /var/www/html/index.php | |
| rick@@ubuntu:~$ sudo vim /var/www/html/index.php |
This file contains hidden or 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
| rick@ubuntu:~$ sudo vim /etc/apache2/mods-enabled/dir.conf | |
| <IfModule mod_dir.c> | |
| DirectoryIndex index.php index.cgi index.pl index.html index.xhtml index.htm | |
| </IfModule> | |
| # vim: syntax=apache ts=4 sw=4 sts=4 sr noet | |
| rick@ubuntu:~$ sudo systemctl restart apache2 |