Skip to content

Instantly share code, notes, and snippets.

aL AdamLawicki

Block or report user

Report or block AdamLawicki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:06a57ff204ca6b0f0cd3
<h1><font color="blue">A Great Big Heading.</font></h1>
View gist:b670a7ed8732d17de511
<!doctype html>
A Wonderful Website
<h1>California, the Golden State</h1>
<p>I love everything about California. There are many parks, beaches, and landmarks.</p>
AdamLawicki / gist:ea1b8e209a5e7db9828b
Created Oct 18, 2015
verify that apache web server is running
View gist:ea1b8e209a5e7db9828b
[ec2-user wordpress]$ sudo service httpd status
httpd (pid 502) is running...
AdamLawicki / gist:a15770b5fd0749de1274
Created Oct 18, 2015
Confirm that mysqld is running
View gist:a15770b5fd0749de1274
[ec2-user wordpress]$ sudo service mysqld status
mysqld (pid 4746) is running...
AdamLawicki / gist:464d42b0fe9acfbe6d8c
Created Oct 18, 2015
Use chkconfig command to verify that httpd and mysqld services will start at each boot
View gist:464d42b0fe9acfbe6d8c
[ec2-user wordpress]$ sudo chkconfig httpd on
[ec2-user wordpress]$ sudo chkconfig mysqld on
View gist:4630f9e16f1c29304d97
[ec2-user wordpress]$ sudo service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
AdamLawicki / gist:6b2f63a14ad73f2301e6
Created Oct 18, 2015
Change file permissions of /var/www to include group write permissions
View gist:6b2f63a14ad73f2301e6
[ec2-user wordpress]$ find /var/www -type f -exec sudo chmod 0664 {} +
AdamLawicki / gist:91d6a12065ba1c628490
Created Oct 18, 2015
Change directory permissions of /var/www and subdirectories to enable group write permissions and set group ID on future subdirectories
View gist:91d6a12065ba1c628490
[ec2-user wordpress]$ sudo chmod 2775 /var/www
[ec2-user wordpress]$ find /var/www -type d -exec sudo chmod 2775 {} +
AdamLawicki / gist:cea3023bd08f73228546
Created Oct 18, 2015
Change group ownership of /var/www to www group
View gist:cea3023bd08f73228546
[ec2-user wordpress]$ sudo chgrp -R www /var/www
AdamLawicki / gist:d67b16df301a49a4d0b8
Created Oct 18, 2015
Change file ownership of /var/www to apache user
View gist:d67b16df301a49a4d0b8
[ec2-user wordpress]$ sudo chown -R apache /var/www
You can’t perform that action at this time.