Handle UTF-8 encoding in PHP, MySQL and HTML

LAMP

This post describes how to handle the UTF-8 character encoding format in PHP, MySQL and HTML. Prerequisites Have a server running PHP and/or MySQL (see Install and set up a web server on Debian or Ubuntu Linux). Handle UTF-8 in PHP The Continue reading Handle UTF-8 encoding in PHP, MySQL and HTML

Handle PHP errors and exceptions

PHP

This post describes how to handle PHP errors and exceptions. Prerequisites Have a server running PHP (see Install and set up a web server on Debian or Ubuntu Linux). Handle PHP errors Predefined constants E_ERROR (1), E_WARNING (2), E_PARSE (4), E_NOTICE (8), E_CORE_ERROR (16), E_CORE_WARNING (32), E_COMPILE_ERROR (64), E_COMPILE_WARNING Continue reading Handle PHP errors and exceptions

Connect to SSH without entering a password on Linux

SSH

This post describes how to connect to SSH without entering a password on Linux. Prerequisites Have a server running Linux (see Install and set up Linux Debian 7). Login as root. Create an automatic connection to SSH The automatic connection is created Continue reading Connect to SSH without entering a password on Linux

Backup a server on Debian or Ubuntu Linux

Backup

Backup a server can limit the risk of data loss and facilitate reinstall in case of failure. It is therefore imperative to regularly backup all critical data to a local disk or to a remote server. A backup can be done manually by Continue reading Backup a server on Debian or Ubuntu Linux

Authenticate emails with DKIM on Debian or Ubuntu Linux

Email

DKIM (DomainKeys Identified Mail) is a standard used to authenticate the emails senders and fight against spam and phishing. This post describes how to authenticate emails with DKIM on Debian or Ubuntu Linux. Prerequisites Have a server running Debian or Ubuntu Linux Continue reading Authenticate emails with DKIM on Debian or Ubuntu Linux

Useful commands for Debian or Ubuntu Linux

Linux

Linux is an operating system. It allows the configuration and the execution of all other programs on the server. It is available in several distributions including Debian and Ubuntu which deliver the best compromise between simplicity, security and robustness. This Continue reading Useful commands for Debian or Ubuntu Linux

Create and install a firewall on Debian or Ubuntu Linux

Firewall

A firewall is a program that secures a server by filtering the network accesses made from and to the outside. An effective way to create a firewall is to restrict access to the ports used by the server’s applications. This post describes Continue reading Create and install a firewall on Debian or Ubuntu Linux