0 { desc { mcrypt extension installed } install { INSTALL WITH APT (SHELL COMMAND):
apt-get install php5-mcrypt } ok { OK } fail { Not Installed } } 1 { desc { curl extension installed } install { INSTALL WITH APT (SHELL COMMAND):
apt-get install php5-curl } ok { OK } fail { Not Installed } } 2 { desc { config exists and is readable } install { GRANT THE RIGHT PERMISSIONS (SHELL COMMAND):
chmod 700 inc.php
chown $0$ inc.php
} ok { OK } fail { Not readable or does not exist } } 3 { desc { Directory $1$ exists and is writeable } install { GRANT THE RIGHT PERMISSIONS (SHELL COMMAND):
chown -R $0$ $2$ } ok { OK } fail { Not readable } } 4 { desc { Directory $1$ exists and is writeable } install { GRANT THE RIGHT PERMISSIONS (SHELL COMMAND):
chown -R $0$ $2$ } ok { OK } fail { Not readable } } 5 { desc { Directory $1$ exists and is writeable } install { GRANT THE RIGHT PERMISSIONS (SHELL COMMAND):
chown -R $0$ $2$ } ok { OK } fail { Not readable } } 6 { desc { Directory $0$ returns http 403 } install { NGINX - ADD THIS LINE TO YOUR SITE CONFIG (/etc/nginx/sites-available/<yoursiteconfig>):
location ~ ^/($4$|expire.json|$5$|$6$) {
deny all;
return 403;
}


APACHE - add this to the end of your site config:
<Directory $0$>
Order deny,allow
deny from all
</Directory>

<Directory $1$>
order deny,allow
deny from all
</Directory>

<Directory $2$>
order deny,allow
Deny from all
</Directory>

<Directory $3$>
<Files ~ "expire\.json$">
Order allow,deny
Deny from all
</Files>
</Directory>
} ok { OK } fail { FAILURE } } 7 { desc { Directory $1$ returns http 403 } install { } ok { OK } fail { FAILURE } } 8 { desc { Directory $2$ returns http 403 } install { } ok { OK } fail { FAILURE } } 9 { desc { You are not on Windows } install { Get a linux webserver. } ok { OK } fail { NOT OK } } 10 { desc { You'r PHP version is greater than 5.4 } install { UPDATE YOUR APT (SHELL COMMAND):
apt-get update && apt-get upgrade } ok { OK } fail { NOT OK } } 11 { desc { Your upload size is greater than 512 MB (will work anyway, but not recommend) } install { UPDATE YOUR php.ini:
upload_max_filesize = 512M
post_max_size = 512M
memory_limit = 512M


NGINX - ADD THIS LINE TO YOUR SITE CONFIG (/etc/nginx/sites-available/<yoursiteconfig>):
client_max_body_size 512M; } ok { OK } fail { NOT OK } } 12 { desc { Your script upload size is not greater than your server defined upload size } install { UDPDATE your inc.php file:
define( 'SCRIPT_UPLOAD_LIMIT', $0$ );

} ok { OK } fail { NOT OK } } 13 { desc { You are using either NGINX or Apache (Will work with other webservers too but not recommend) } install { } ok { OK } fail { NOT OK } } 14 { desc { Your server supports the select CIPHER and KEY for the server encryption and you are using the correct key length ($1$ chars) } install { UDPDATE your inc.php file and set a correct key length ($1$ chars) - for example:
define( 'SERVER_KEY', '$0$' );

} ok { OK } fail { NOT OK } } 14 { desc { Your server supports the select CIPHER and KEY for the key-check encryption } install { Choose a different CHECK_CIPHER and CHECK_MODE in your inc.php config file. } ok { OK } fail { NOT OK } } 15 { desc { Your language directory is readable } install { GRANT THE RIGHT PERMISSIONS (SHELL COMMAND):
chown -R $1$ $0$ } ok { OK } fail { NOT OK } } 15 { desc { Your template directory is readable } install { GRANT THE RIGHT PERMISSIONS (SHELL COMMAND):
chown -R $1$ $0$ } ok { OK } fail { NOT OK } }