Skip to content

Instantly share code, notes, and snippets.

<h1><font color="blue">A Great Big Heading.</font></h1>
@AdamLawicki
AdamLawicki / gist:b670a7ed8732d17de511
Created March 3, 2016 20:43
Very Basic HTML Document
<!doctype html>
<html>
<head>
<title>
A Wonderful Website
</title>
</head>
<body>
<h1>California, the Golden State</h1>
<p>I love everything about California. There are many parks, beaches, and landmarks.</p>
@AdamLawicki
AdamLawicki / gist:ea1b8e209a5e7db9828b
Created October 18, 2015 21:55
verify that apache web server is running
[ec2-user wordpress]$ sudo service httpd status
httpd (pid 502) is running...
@AdamLawicki
AdamLawicki / gist:a15770b5fd0749de1274
Created October 18, 2015 21:54
Confirm that mysqld is running
[ec2-user wordpress]$ sudo service mysqld status
mysqld (pid 4746) is running...
@AdamLawicki
AdamLawicki / gist:464d42b0fe9acfbe6d8c
Created October 18, 2015 21:53
Use chkconfig command to verify that httpd and mysqld services will start at each boot
[ec2-user wordpress]$ sudo chkconfig httpd on
[ec2-user wordpress]$ sudo chkconfig mysqld on
@AdamLawicki
AdamLawicki / gist:4630f9e16f1c29304d97
Created October 18, 2015 21:46
Restart apache web server
[ec2-user wordpress]$ sudo service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
@AdamLawicki
AdamLawicki / gist:6b2f63a14ad73f2301e6
Created October 18, 2015 21:46
Change file permissions of /var/www to include group write permissions
[ec2-user wordpress]$ find /var/www -type f -exec sudo chmod 0664 {} +
@AdamLawicki
AdamLawicki / gist:91d6a12065ba1c628490
Created October 18, 2015 21:45
Change directory permissions of /var/www and subdirectories to enable group write permissions and set group ID on future subdirectories
[ec2-user wordpress]$ sudo chmod 2775 /var/www
[ec2-user wordpress]$ find /var/www -type d -exec sudo chmod 2775 {} +
@AdamLawicki
AdamLawicki / gist:cea3023bd08f73228546
Created October 18, 2015 21:44
Change group ownership of /var/www to www group
[ec2-user wordpress]$ sudo chgrp -R www /var/www
@AdamLawicki
AdamLawicki / gist:d67b16df301a49a4d0b8
Created October 18, 2015 21:44
Change file ownership of /var/www to apache user
[ec2-user wordpress]$ sudo chown -R apache /var/www