The ssl directory permissions should be 700, the file permissions on all the files should be 600, and the directory and files should be owned by root.    

Backup your php.ini file before you do anything. Then open the php.ini file so that you can edit it. Check that file_uploads is set to On (needed to upload files via a PHP script). Set upload_max_filesize to 64M (or less). Set post_max_size to 64M (or less). Set memory_limit, to 64M (or less). Set max_input_time to 600 or less. Set max_execution_time to 300 or less. Save your php.ini file.​ (or minimal modifications): upload_max_filesize = 500M post_max_size = 500M max_execution_time = 500

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).

1. Switch to root user sudo su 2. Open the clock file in the editor nano /etc/sysconfig/clock 3. Make sure that the file contains the correct time zone, for example: ZONE=”America/New_York” NOTE: if you want to check what zones are available, you can see all zones by typing this command: ls /usr/share/zoneinfo 4. Save the file and […]

1. To check which version of the website you are viewing, put some flag on the test site (something like “test” somewhere on the screen). 2. Open hosts file for editing: sudo nano /etc/hosts 3. Add this line at the bottom: Add this at the bottom of the file: [Ip address] [domain name] For example: […]

1. If it does not exist, create robots.txt file in the root directory of the website. 2. Add these lines (as an example): user-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/uploads/ Explanation: user-agent: * – the asterisk includes every bot, not just search engine indexing spiders Disallow: – followed by the path to the directory. […]

1. Switch to root user sudo su 2. Create new user adduser [username] (For example, adduser admin ). 3. Assign password to a new user passwd [username] (For example, passwd admin ). 4. Enter password 5. To give the new user necessary privileges, assign that user to the appropriately privileged group. For example, to the www […]