who owns this file?
-rw-rw-r--. 1 gil centos 18992 Jun 1 17:20 thriveCart-import-test-refund.csv
gil
This command changes a user/group ownership
chown centos:centos /path/to/file.log
Whats the package name for apache on a centos distribution?
httpd
Update your host file /etc/hosts and map the ip to the host name
What are the file permissions (numbers) that we should never set any of our files / directories to?
777
chmod 777 file/dir
Who can write to this file?
-rw-r--r--. 1 centos apache 18992 Jun 1 17:20 thriveCart-import-test-refund.csv
centos only
This ls flag is used to show file contexts
-Z
What folder holds the config files for apache on centos?
/etc/httpd/conf.d/
This program allows you to connect to a db through the shell
Mysql client
What feature did we recently have to re-write because we decided to reinvent the wheel when in initially building it.
API Authentication
What are valid permissions for an SSH file to be able to connect to a host server?
0600
Give a command that would change all contents of directory to permissions 775
sudo chmod -R 775 myDir/*
How can I check the status of apache?
sudo systemctl status httpd
How can I get the IP address from an AWS DB host name
ping the host name
If one of the MCHN sites is either very slow or down but the rest of the sites are up. What is the likely cause of this problem?
Sick Node
Can apache write to this file?
-rw-rw-r--. centos apache unconfined_u:object_r:httpd_sys_content_t:s0 config.php
No
object_r:httpd_sys_content_t
vs
object_r:httpd_sys_rw_content_t
This command is used to change Selinux file contexts
chcon
The ability to host multiple domains on a single server is know as:
Vhosts
READS only
The name of automated infrastructure deployment tool we use to provision the servers on production.
Terraform
Why will this command fail?
sudo chcon -R -t httpd_sys_rw_content_t public_html/myFile.php
-R flag cannot be used on files (only directories)
What command and flags would show all files, permissions, groups and file contexts in a directory
ls -lZa
What's the name of the main apache configuration file?
httpd.conf
/etc/httpd/conf/httpd.conf
What keywords are used to debug a specific query
EXPLAIN ANALYZE
Who is the best developer at the MCHN?
This meant to be a joke, hope it worked!