Posts

Showing posts from April, 2017

How to install / setup PHP 5.5.x on Ubuntu

How to install / setup PHP 5.5.x on Ubuntu How to install There’s an excellent and (usually) hassle-free method to install the latest version of PHP5 (which is 5.5.3 when i’m writing this) with 3 simple bash commands: 1. Add this package-repository to your system. If Ubuntu says that you need to download a key first, then follow the instructions given in the notice. sudo add-apt-repository ppa:ondrej/php5 If you get an error message now , then please do an update first and install the python-software-properties, that need to be necessary to add a package repository: sudo apt-get update sudo apt-get install python-software-properties 2. Update sudo apt-get update 3. Install PHP sudo apt-get install php5 Check the installed version of PHP via php5 -v Please note: The ondrej/php5 repository (which is used here) provides the very latest version of PHP. Usually the new version of PHP is available a few days after it was been officially released. This is really

Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so

Sender Dependent Outgoing IP Address (Virtualmin) Introduction to Outgoing IPs By default, when your mail server sends out email the SMTP connection will come from the system's default IP address, typically that assigned to. eth0 Even if the email is from a domain that has its own private IP, that address will not be used when sending an email. This behavior can be changed on systems running Postfix version 2.7 and Virtualmin 3.94 or later so that outgoing email from a domain with a private IP address appears to come from that address. This can be useful for separating email from multiple domains as seen by other mail servers, or for setting up per-domain reverse DNS records. Initial Configuration This feature requires Postfix 2.7 (seen on most modern Linux distributions), Virtualmin 3.93 and ideally Webmin 1.600. The steps to set it up are as follows: SSH into the system as, root and edit the  /etc/postfix/main.cf  file. Look for a line starting with. sender_depe

How to Install MariaDB 5.5 on Ubuntu 17.04 LTS

MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and performance improvements, and is easy to integrate into most MySQL deployments. Answers for compatibility questions can be found at:  MariaDB versus MySQL – Compatibility . MariaDB offers more storage engines than MySQL, including Cassandra (NoSQL), XtraDB (drop-in replacement for InnoDB), and OQGRAPH. Pre-Flight Check These instructions are intended for installing MariaDB 5.5 on a single Ubuntu 17.04 LTS(without MySQL already installed). I’ll be working from a Liquid Web Self Managed Ubuntu 17.04 LTS server, and I’ll be logged in as a non-root user, but with sudo access. For information on giving a user sudo access visit our page on . Step #1: Add the MariaDB Repository The  software-properties-common  package should already be installed, but just in case: sudo apt-get install software-properties-common To find which repo you should use with the  MariaDB repository generator . We

Configure Networking on Ubuntu

Configure Networking on Ubuntu During the installation of Ubuntu on your server an IP address was most likely obtained automatically. This dynamic IP address assignment will need to be changed to a static IP address. This section will cover the simple network configuration changes needed to set a static IP network address for your server. For this section, the directions assume the configuration is for a node with only one interface (eth0) after a default installation. Note These instructions assume that the reader is familiar with opening, editing and saving files at the command line. Please consult your OS documentation if you need assistance with these tasks. Most Linux systems have a few commands that can be used to find out what the current network configuration is, for example: ifconfig -a You can also use variations of the  ip  command: ip addr Basic network configuration and hostname on a Ubuntu system are stored in several files which must be edited

Using PHP PPA to install PHP 5.6 with PHP 7.0 In UBUNTU

Using PHP PPA to install PHP 5.6 with PHP 7.0 There's an option to co-install PHP 5.6 packages using  ppa:ondrej/php . Assuming  libapache2-mod-php  is a suitable way to enable PHP in Apache for you, you can proceed in this way: sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0 Switch PHP version  ( Apache ): from php5.6 to php7.0: sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart from php7.0 to php5.6: sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart