Everything in /var/www owned by root user and www group: sudo chown -R root:www /var/www Set /var/www directory permission to owner rwx, group rwx, and everyone else to r-x sudo chmod 2775 /var/www Set all current and future directory permissions to owner rwx, group rwx, and everyone else to r-x find /var/www -type d -exec sudo […]

PAGE UP or b   Scroll back one page. PAGE DOWN or Spacebar    Scroll forward one page. Up Arrow    Scroll up one line. Down Arrow    Scroll down one line. G   Move to the end of the text file. g    Move to the beginning of the text file. /hello    Search forward to the […]

First, back up the server (including the database) by creating the image. This way if anything goes wrong, you can always try again. Then use this fast and easy fix: mysqlcheck –repair –all-databases Or, as is the case at Amazon account that I manage: mysqlcheck -u root -p –repair –all-databases Password: the root MySQL password.  If […]

Read (r): 4 Write (w): 2 Execute (x): 1 So, for example, rwx = 7; rw- = 6; r-x = 5, and so on. The d in the beginning means “directory”, – in the beginning means “file”. The pattern is “user”, “group”, “other (ugo).

For example, if your main domain name for the given server is certaindomainname.com 1. Switch to root user sudo su 2. Open hosts file on the server nano /etc/hosts and make sure you have this in it: localhost.localdomain localhost certaindomainname.com ::1 localhost.localdomain localhost certaindomainname.com Save the file. 3. Open Apache configuration file nano /etc/httpd/conf/httpd.conf […]

1. Switch to root user sudo su 2. Install postfix yum install postfix -y 3. Stop sendmail (installed on Amazon Linux by default) /etc/init.d/sendmail stop 4. Start postfix /etc/init.d/postfix start 5. Switch MTA from sendmail to postfix alternatives –set mta /usr/sbin/sendmail.postfix 6. Configure postfix to allow email for the same domain name to be received. […]