Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ How to show the last queries executed on MySQL?
Added by sonik on 01-07-2018 and keywords: log, mysql, querys, queries [ Print Article ]
You can enable a general query log for that sort of diagnostic. Generally you don't log all SELECT queries on a production server though, it's a performance killer.
Edit your MySQL config, e.g. /etc/mysql/my.cnf - look for, or add, a line like this:
[mysqld]
log = /var/log/mysql/mysql.log

Restart mysql to pick up that change, now you can:
tail -f /var/log/mysql/mysql.log

Hey presto, you can watch the queries as they come in. [ read more... ]
➥ Make Browsers Cache Static Files With mod_expires On Apache2 Ubuntu 18.04
Added by sonik on 27-06-2018 and keywords: apache2, mod_cache, speed, website, tool [ Print Article ]
[warning]
Backup your 000-Default apache2 file before running the tutorial.
If you have tested your website for speed with googles website test tool then you have seen the error: Leverage browser caching not enabled. To fix this you need to enable and configure mod_expires on Apache2. This will make your website faster and better and meet the requirements of google website page speed.
This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access.
These HTTP headers are an instruction to the client about the document's validity and persistence. If cached, the document may be fetched from the cache rather than from the source until this time has passed. After that, the cache copy is considered "expired" and invalid, and a new copy must be obtained from the source.
[ read more... ]
➥ Apache CouchDB NOSQL database solution
Added by sonik on 25-06-2018 and keywords: no,sql,nosql,apache,couchdb,database, [ Print Article ]
[warning]
Materials copied from Wikipedia
CouchDB is a free and an open source NOSQL database solution implemented in the concurrency-oriented language Erlang. It has a document-oriented NoSQL database architecture. It uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. CouchDB implements a form of multi-version concurrency control, so it does not lock the database file during writes. You can use CouchDB in mobile devices for replication and synchronization.
A No SQL (originally referring to "non SQL" or "non relational") database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases. Such databases have existed since the late 1960s, but did not obtain the "No SQL" moniker until a surge of popularity in the early twenty-first century, triggered by the needs of Web 2.0 companies such as Facebook, Google, and Amazon. No SQL databases are increasingly used in big data and real-time web applications. No SQL systems are also sometimes called "Not only SQL" to emphasize that they may support SQL-like query languages
[ read more... ]
➥ Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10
Added by sonik on 27-06-2018 and keywords: [ Print Article ]
GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.
GoAccess was designed to be a fast, terminal-based log analyzer. Its core idea is to quickly analyze and view web server statistics in real time without needing to use your browser (great if you want to do a quick analysis of your access log via SSH, or if you simply love working in the terminal).
While the terminal output is the default output, it has the capability to generate a complete, self-contained real-time HTML report (great for analytics, monitoring and data visualization), as well as a JSON, and CSV report. [ read more... ]
➥ Hddtemp crontab every hour in to file
Added by sonik on 27-06-2018 and keywords: hdd, temp, hddtemp, crontab [ Print Article ]
In this article we are going to create a txt file and in it we are going to store the hdd temperature for every hour. Install [ read more... ]
➥ Tail Command See Logs In Real Time
Added by sonik on 27-06-2018 and keywords: [ Print Article ]
tail outputs the last part, or "tail", of files. It can also monitor new information written to the file in real time, displaying the newest entries in a system log, for example. [ read more... ]
➥ Whowatch-ssh-monitoring-terminal-software
Added by sonik on 22-06-2018 and keywords: [ Print Article ]
whowatch is a console application that lets you monitor what different users are doing on the Linux operating system in a given moment, it works in real time. Installing [ read more... ]
➥ How to increase SSH Connection timeout
Added by sonik on 22-06-2018 and keywords: [ Print Article ]
To prevent all your clients from timing out you need to edit /etc/sshd_config which is the server side configuration file add these two options: We edit the file sshd_config, we find this two commented lines and edit them as follows. [ read more... ]
➥ SSH banner at login
Added by sonik on 22-06-2018 and keywords: [ Print Article ]
With just a fiew steps we can have a message when we connect via ssh to a remote ssh server. [ read more... ]
➥ Ubuntu Speedtest check speed
Added by sonik on 22-06-2018 and keywords: speedtest, net, cli, tool, to, check, page, speed [ Print Article ]
Command line interface for testing internet bandwidth using speedtest.net [ read more... ]
➥ Ubuntu 17.10 Install google's mod pagespeed for apache
Added by sonik on 27-06-2018 and keywords: ubuntu, 17, 10, install, google, mod, pagespeed, apache [ Print Article ]
[warning]
Restart Apache Don’t forget if you’re using the pagespeed.conf or VirtualHost files to alter the settings, you’ll have to restart Apache for the settings to take effect. You can do this with the following commands: service apache2 restart or /etc/init.d/apache2 restart Check if the mod is loaded with the command apachectl -M
About this article
Introduction One of the more recently popular modules for Apache is mod_pagespeed. It is an output filter for Apache 2.2+ that can be configured through a variety of options through configuration files or a .htaccess file. An “output filter” is a something that transforms the data before it’s sent to the client. In other words, it’s a layer between your website and what the user’s browser receives when they visit your URL. Speed Up the Web The goal of mod_pagespeed is to speed up your website. It does this by applying filters to a variety of files in order to reduce the number of trips the browser has to make to grab what it needs, to reduce the size of those files and to optimize the length those files are cached. Installation Installation is very simple. It’ll vary depending on the operating system you use. Ubuntu and Debian have packages you can download and install (or any Linux distribution that uses .DEB packages). Other Linux distributions can download the source and build from that. [ read more... ]
➥ CPU mining with cpuminer.git
Added by sonik on 22-06-2018 and keywords: ssh, proxy, socks5h, miner, cpu, bitcoin, litecoin [ Print Article ]
cpuminer is a multi-threaded, highly optimized CPU miner for Litecoin, Bitcoin, and other cryptocurrencies. Currently supported algorithms are SHA-256d and scrypt(N, 1, 1). It supports the getblocktemplate mining protocol as well as the Stratum mining protocol, and can be used for both solo and pooled mining. How to create a socks bitcoine miner from scratch. [ read more... ]
➥ Ubuntu ssh tunnel via proxy ...
Added by sonik on 22-06-2018 and keywords: ubuntu, ssh, tunnel, proxy, traffic [ Print Article ]
A ssh tunnel for Firefox to a remote computer is good security measure. Especially when connecting via an untrusted network like a wifi hotspot or other public networks. The tunnel encrypts and sends the data to your remote machine then it is sent over the web to your destination. This tutorial assumes you have an account on a remote machine you can ssh into. This is a pretty easy set up. [ read more... ]
➥ sshfs and map folder with a proxy
Added by sonik on 22-06-2018 and keywords: [ Print Article ]
In many cases it can become cumbersome to transfer files to and from a droplet. Imagine a development usage scenario where you are coding apps remotely and find yourself uploading a script repeatedly to your virtual server to test. This can become quite a hassle in a very short period of time. Luckily there is a way to mount your VPS file system to your local computer so you can make changes on the fly and treat your droplet as local storage. In this article, we will show you how to do exactly that. [ read more... ]
➥ How to install and configure pssh using ssh keys to login on ubuntu
Added by sonik on 22-06-2018 and keywords: [ Print Article ]
No doubt, that OpenSSH is one of the most widely used and powerful tool available for Linux, that allows you to connect securely to remote Linux systems via a shell and allows you to transfer files securely to and from remote systems.But the biggest disadvantages of OpenSSH is that, you cannot execute same command on multiple hosts at one go and OpenSSH is not developed to perform such tasks. This is where Parallel SSH or PSSH tool comes in handy, is a python based application, which allows you to execute commands on multiple hosts in parallel at the same time. [ read more... ]
➥ [SOLVED] VMware ESXI 6.5 cannot stop copy process
Added by sonik on 03-01-2018 and keywords: solved, vmware, esxi, 5.6, cannot, stop, copy, process [ Print Article ]
if you have a problem with stopping a copy process you can try with the ssh and typeing this commands. [ read more... ]
➥ Ssh display a banner page when logging
Added by sonik on 03-01-2018 and keywords: ssh, sshd, banner, display, on, login [ Print Article ]
If you want to try to scare novice attackers, it can be funny to display a banner containing legalese. This doesn't add any security, because anyone that's managed to break in won't care about a "no trespassing" sign--but it might give a bad guy a chuckle. [ read more... ]
➥ How to connect to ssh server with a proxy
Added by sonik on 29-12-2017 and keywords: ssh, proxy, server, via, openssh, client, server [ Print Article ]
If your office uses a proxy server, this is the right solution. [ read more... ]
➥ Ubuntu Server how to check for large files in the console
Added by sonik on 22-12-2017 and keywords: Ubuntu, server, check, large,files,command,line,terminal [ Print Article ]
If you just need to find large files, you can use find with the -size option. The next command will list all files larger than 10MiB (not to be confused with 10MB): [ read more... ]
➥ How to check when ubuntu was installed
Added by sonik on 15-12-2017 and keywords: check, install, date, ubuntu, server, command, line [ Print Article ]
This is a simple command to tell us when was the os installed. [ read more... ]
➥ Ubuntu 17.10 Install google's mod_pagespeed for apache
Added by sonik on 30-06-2017 and keywords: mod, page, speed, google, install, ubuntu [ Print Article ]
One of the more recently popular modules for Apache is mod_pagespeed. It is an output filter for Apache 2.2+ that can be configured through a variety of options through configuration files or a .htaccess file. An “output filter” is a something that transforms the data before it’s sent to the client. In other words, it’s a layer between your website and what the user’s browser receives when they visit your URL. [ read more... ]
➥ How to block ip addresses and protect files and folders with apache and .htaccess in ubuntu
Added by sonik on 09-06-2017 and keywords: php, website, block, ip, apache, htaccess, ubuntu, linux [ Print Article ]
Steb by step how to tutorial on how to protect your site with the help of apache and .htaccess [ read more... ]
➥ Linux how to find the Process ID of running process/program a.k PID
Added by sonik on 30-05-2017 and keywords: [ Print Article ]
Here we are using the command pidof to check the pid of a running program/process. [ read more... ]
➥ Linux Show Calendar in terminal
Added by sonik on 30-05-2017 and keywords: linux, terminal, show, calendar, command [ Print Article ]
How to show the calendar in the terminal shell in linux? [ read more... ]
➥ Ubuntu 16.04 create and reset raid 0, 1, 5 with mdadm
Added by sonik on 23-05-2017 and keywords: ubuntu, 16, 04, lts, raid, 0, 1, 5, rebuild, create, restore, reset [ Print Article ]
The mdadm utility can be used to create and manage storage arrays using Linux's software RAID capabilities. Administrators have great flexibility in coordinating their individual storage devices and creating logical storage devices that have greater performance or redundancy characteristics. [ read more... ]
➥ Ubuntu server 17.04 install Time Server (NTP)
Added by sonik on 17-05-2017 and keywords: linux, ubuntu, 17, 04, install, time, server, ntp, tutorial, test, simple, explained [ Print Article ]
In this tutorial we are going to install a time server and to check if it is working. [ read more... ]
➥ Linux: How to get remote page load time with a command from the terminal?
Added by sonik on 16-05-2017 and keywords: remote, page, load, time, miliseconds, terminal, shell, linux, php [ Print Article ]
This will give you the remote page load time in miliseconds [ read more... ]
➥ Enable apache2 cache to speed up your website on ubuntu 17.04
Added by sonik on 10-05-2017 and keywords: [ Print Article ]
This is how you can speed up your website and check google recommendations. [ read more... ]
➥ Ubuntu 17.04 add windows share to fstab
Added by sonik on 10-05-2017 and keywords: [ Print Article ]
With this simple tutorial we are going to connect a remote windows or nas share to a linux server with the terminal [ read more... ]
➥ Install and configure fail2ban on ubuntu 17.04 and block on all ports
Added by sonik on 12-06-2017 and keywords: ssh, fail2ban, howto, how, to, install, installation, and, config, configuration, ubuntu, server, 17.04, block, all, ports [ Print Article ]
Fail2ban scans log files and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc. Generally Fail2Ban is then used to update firewall rules to reject the IP addresses for a specified amount of time, although any arbitrary other action (e.g. sending an email) could also be configured. Out of the box Fail2Ban comes with filters for various services (apache, courier, ssh, etc). [ read more... ]
➥ Ubuntu 17.04 mycli install (mysql terminal - modern alternative to the default MySQL client)
Added by sonik on 08-05-2017 and keywords: mycli, modern, alternative, to, old, mysql, client, ubuntu, 17.04, install [ Print Article ]
Mycli is a modern alternative to the default MySQL client. This tool does to MySQL what bpython does to the standard Python REPL. Mycli will auto-complete keywords, table names, columns, and functions as you type them. [ read more... ]
➥ How to install denyhosts on Ubuntu Linux 17.04 ( intrusion prevention security tool for SSH and more)
Added by sonik on 08-05-2017 and keywords: [ Print Article ]
How can I stop hacking attempts into my system in ssh and other? [ read more... ]
➥ A simple iptables firewall script to block all ports except port 80 and give port 22 to certain ip's
Added by sonik on 08-05-2017 and keywords: sbin, iptables, firewall, script, block, all, ports, except, 80, specific, ip, for, 22 [ Print Article ]
Here we are going to allow port 80 to all remote addresses and block all other ports and allow port 22 only for certain addresses. [ read more... ]
➥ .tar.gz /var/www and vardump mysql database and ssh to another server
Added by sonik on 08-05-2017 and keywords: simple, tutorial, how, to, tar, gz, mysqldump, ssh, linux, remote, server [ Print Article ]
A simple tutorial on how to archive and backup all you vital linux server data. [ read more... ]
➥ Ubuntu install PHP GeoIP
Added by sonik on 02-05-2017 and keywords: php, geoip, ubuntu, install, shell, terminal, ssh, city, country, ip [ Print Article ]
Install and use PHP's GeoIP extension if you can. On ubuntu 17.10.
The GeoIP extension allows you to find the location of an IP address. City, State, Country, Longitude, Latitude, and other information as all, such as ISP and connection type can be obtained with the help of GeoIP. [ read more... ]
➥ How to update ESXI 6.5 to ESXi-6.5.0-20170104001-standard via ssh/terminal
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
How to update ESXI 6.5 to ESXi-6.5.0-20170104001-standard via ssh/terminal [ read more... ]
➥ Configure Remote Log Servers with rsyslog
Added by sonik on 08-06-2017 and keywords: remote, log, server, rsyslog, how, to, tutorial, simple, fast, linux, ubuntu, debian [ Print Article ]
Configure Remote Log Servers with rsyslog [ read more... ]
➥ Where is the cron / crontab log? / Enable Cron Log in Ubuntu 16.04
Added by sonik on 07-07-2017 and keywords: enable, cron, log, var, log, crontab [ Print Article ]
Create a separate crontab log file in /var/log/cron.log [ read more... ]
➥ Обръщане на MAC адрес
Added by dragote on 02-05-2017 and keywords: convert, mac, from, one, to, other [ Print Article ]
Конвертиране на MAC адрес от един вид в друг. [ read more... ]
➥ Премахване на key от known hosts
Added by dragote on 02-05-2017 and keywords: [ Print Article ]
Изтриване на key от known hosts [ read more... ]
➥ Проверка на хостовете в дадена мрежа
Added by dragote on 02-05-2017 and keywords: [ Print Article ]
В тази тема ще разберете как бързо и лесно да проверявате кои хостове са със статус UP (Alive) и кои са със статус DOWN (unreachable) [ read more... ]
➥ DISABLE PAM on CENTOS
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
If you have problems with ERROR: "failed to open PAM security session: Success", and you want to disable PAM. [ read more... ]
➥ How to install cacti 1.1.X on Ubuntu 16.04 server - simple guide
Added by sonik on 10-07-2017 and keywords: ubuntu, 16.04, cacti, install, tutorial, simple, how to, guide [ Print Article ]
Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with thousands of devices. [ read more... ]
➥ LC_ALL =
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
how to set LC_ALL [ read more... ]
➥ Cacti 1 on ubuntu 16.04
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Installation and configuration [ read more... ]
➥ Allow yum to install 32-bit packages without you having to specify *.i686
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
In yum.conf you'll see a line like this: [ read more... ]
➥ Ubuntu 16.04 install and configure SNMP server
Added by sonik on 12-07-2017 and keywords: [ Print Article ]
using the public key [ read more... ]
➥ Ubuntu access VNC from Windows
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Or how to disable the require encryption. [ read more... ]
➥ Ubuntu Linux encrypt seperate hdd with LUKS cryptsetup (mount and unmount)
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Simple tutorial with LUKS cryptsetup to encrypt a independent hdd (mount and unmount). [ read more... ]
➥ Ubuntu 16.10/16.04/16.10 install phpmyadmin and add .htaccess password protection
Added by sonik on 08-05-2017 and keywords: htaccess, htpasswd, protect, phpmyadmin, apache2, password, directory [ Print Article ]
Simple tutorial to secure your phpmyadmin installation with apache2 htaccess [ read more... ]
➥ Encrypting a usb drive with cryptsetup Luks
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
simple how to [ read more... ]
➥ install guake under debian
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
How to install guake under debian?
Guake is a top-down terminal for Gnome (in the style of Yakuake for KDE, Tilda or the terminal used in Quake) [ read more... ]
➥ rollback php 7 to php 5.6
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Или как да върнем по-старата версия на php на нашия дебиан. [ read more... ]
➥ ssh tunnel to windows remote port 3389
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
отваряме пути и в hostname пишем ай пито до рутера или компютъра, към които искаме да се свържем - порт 22,
ако минаваме през прокси на connection -> proxy добавяме каквото е нужно,
после в connection -> ssh -> tunnels -> source port 127.0.0.2:3391 -> destination 151.237.48.31:3389 (ай пито до рутера или компютъра) -> local -> auto -> и натискаме add [ read more... ]
➥ fdisk a new partition and format ext4
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
fdisk a new partition and format ext4 [ read more... ]
➥ Ubuntu NFS4 инсталация и маунтване
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Ubuntu NFS4 инсталация и маунтване [ read more... ]
➥ FreeNAS RSYNC между нас и линукс сървър SSH
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
FreeNAS RSYNC между нас и линукс сървър SSH [ read more... ]
➥ Ubuntu избор на какво да се инсталира в началото
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
sudo tasksel [ read more... ]
➥ Как да правим мониторинг на твърдите дискове под линукс Ubuntu
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Как да правим мониторинг на твърдите дискове под линукс Ubuntu с помощта на smartmontools [ read more... ]
➥ Инсталиране на Smokeping на Ubuntu 16.04
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Инсталиране на Smokeping на Ubuntu 16.04 [ read more... ]
➥ Ubuntu 16.04 bonding
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Ubuntu 16.04 bonding [ read more... ]
➥ How to install and configure samba on ubuntu 16.04 LTS?
Added by sonik on 20-06-2018 and keywords: simple, samba, configuration, linux, ubuntu [ Print Article ]
A very basic and simple configuration of samba with a user name and password. [ read more... ]
➥ squid блокиране на определени думи | squid block specific keyword
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
squid блокиране на определени думи | squid block specific keyword [ read more... ]
➥ Как да добавим прокси на нашия UBUNTU server
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Как да добавим прокси на нашия UBUNTU server [ read more... ]
➥ Как да проверим компютъра с помощта на конзолата
Added by dragote on 02-05-2017 and keywords: [ Print Article ]
Простичка команда за справка какво имаме в компютъра ни (памет, твърди дискове, периферни устройства, процесор и т.н.) [ read more... ]
➥ Как да настроим мрежовата карта
Added by dragote on 02-05-2017 and keywords: [ Print Article ]
В този урок ще Ви запознаем как да настроите мрежовата си карта с добавяне на VLAN-и и статично зададени маршрути. [ read more... ]
➥ Линукс създаване на различни логове и спиране на определени ip адреси от влизането в тях
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Заглавието може и да е сложно, но целта е проста. Идеята е да имаме логове от апачето, които да не записват определени адреси като локалния на съврър , да речем офиса ни и т.н т.е да изключим ненужните хора и ненеужната ифнормация от тях и да можем да се съсредоточим над важните неща. [ read more... ]
➥ How to check in realtime linux logs with the tail command
Added by sonik on 31-05-2017 and keywords: [ Print Article ]
Simple realtime log check via terminal [ read more... ]
➥ iptables firewall script
Added by sonik on 02-05-2017 and keywords: Iptables, firewall, script, sbin, allow, port, 22, 80, block, bad, ip, скрипт, защитна, стена, линукс, портове, блокиране, защита [ Print Article ]
Това е прост примерен скрипт за iptables [ read more... ]
➥ Линукс системна информация - команди \ Linux system info commands
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Основните и често използвани команди в линукс, с които може да видите голяма част от системната информация. (date, cal, uptime, w, whoami, finger user, username -a, cat /proc/cpuinfo, cat /proc/meminfo, df -h, du, free и др.) с кратко описание, коя за какво служи. [ read more... ]
➥ Следене състоянието на компютъра
Added by dragote on 02-05-2017 and keywords: [ Print Article ]
В тази статия ще се запознаете как да следите състоянието на компютъра си през терминал в ubuntu дистрибуцията на линукс. [ read more... ]
➥ Що е то
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Как да си улесним работата с линукс, като създадем собствени aliasеs? [ read more... ]
➥ Rsync - autoincrement архив
Added by sonik on 02-05-2017 and keywords: [ Print Article ]
Rsync - autoincrement архив. [ read more... ]

@All rights reserved with Copyright Webleit.info 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]