Blog inventory code

The order is necessary in order not to get lost, the disorder to find oneself

Update PHP version on Centos 5.6 to 7.3

Best procedure.https://www.mysterydata.com/how-to-upgrade-php-5-6-to-php-7-3-on-centos-vestacp/ ...

Read More
Mysql first installation

Query with insert null:SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES',''));...

Read More
Server streaming RTMP with nginx

Notes for the implementation of a RTMPS server on centos serversStep1: install NGNIX serverStep2: yum install stunnel4 (only for faceook streaming and use RTPMS protocol)Step3:chown nobody:nobody stun...

Read More
JS: Format live input value for money

function dollar_keyup() {                Number.prototype.format = function(n, x, s, c) {                    v...

Read More
CENTOS: Compress a folder gzip

tar -cv directory | gzip > archive.tar.gz...

Read More
Get URL Parameters using jQuery

http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.htmlfunction GetURLParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.s...

Read More
Increase security of Ubuntu server

Change SSH porthttps://www.ubuntu18.com/ubuntu-change-ssh-port/Fail2ban  lock access after 5 fail retry.https://withblue.ink/2016/07/15/stop-ssh-brute-force-attempts.html...

Read More
Certificate SSL easy to use

https://certbot.eff.org/lets-encrypt/centos6-apachePer attivare un certificato:sudo /usr/local/bin/certbot-auto certonly --apachePer rinnovare un certificato:sudo /usr/local/bin/certbot-aut...

Read More
Add route windows

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc757323(v=ws.10)...

Read More
Unable to rename files via FTP in Plesk: permission denied

find /var/www/vhosts/example.com/httpdocs/ -type f -exec chmod 644 {} \;find /var/www/vhosts/example.com/httpdocs/ -type d -exec chmod 755 {} \; find /var/www/vhosts/example.com/httpdocs/ -type f -ex...

Read More
WP: Query for migrate DB Wordpress

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';UPDATE wp_posts SET guid = replace(guid, 'htt...

Read More
CentOS Linux free space

Find a unitdf -HFind a folderdu -s -h * | sort -nrVerify if now it's ok:df -HIf not  free space now you need find a process a take PID numberlsof + L1Kill a process by PIDkill - 9 PID <- this ...

Read More
Redirect 301 con .htaccess

Method for rate redirection of main site with htaccess. Google like these solutions.Add this in the .htaccess file:redirect 301 / http://www.constoso.net/...

Read More
TOP