Month: February 2015

How to Add Linux User With Document Root Permissions

This article will walk you through setting up a Linux user with read and write permissions for your web document root, usually the /var/www/ directory. Connecting with this user via SFTP will let you upload your website content directly to the /var/www/your/site/folder. For the purposes of …

How to Configure multisite Virtual Hosts in apache

This is a sample vhost configuration for Apache, serving domain1.com: <VirtualHost *:80> ServerName domain1.com ServerAlias www.domain1.com </VirtualHost> and this is a sample vhost configuration for Nginx: server { server_name www.domain1.com; rewrite ^/(.*) http://domain1.com/$1 permanent; Each configuration starts slightly differently, but the same principle applies – that …

High PR Dofollow Forum Posting Site List

Forum posting is the most powerful way for dofollow backlinks. I am going to provide huge list of high PR forum posting sites list. High PR 9 Dofollow Forum List 1. Mysql.com 2. Sba.Gov/Community 3. Situsmp3.net High PR 8 Dofollow Forum List 1. http://www.awasu.com 2. http://www.bbpress.org …

Installing PHP on Windows Server 2012

This article will detail installing, testing, and configuring PHP on the Windows Server 2012. This article will use the Microsoft Web Platform Installer (Web PI) method of installation. It will not cover the use case of installing PHP from source. Requirements Successfully installing PHP on a Windows Server 2012 …

Installing MySQL Server on CentOS

MySQL is an open-source relational database. For those unfamiliar with these terms, a database is where an application keeps its data, and relational refers to how the data is organized and accessed within the database. SQL refers to the language used by application queries to retrieve …

Linux PHP-FPM init.d Script

Below is the init script for PHP-FPM. #! /bin/sh # chkconfig: 2345 90 10 # description: PHP fast process manager php_fpm_BIN=/usr/local/bin/php-cgi php_fpm_CONF=/usr/local/etc/php-fpm.conf php_fpm_PID=/usr/local/logs/php-fpm.pid php_opts="--fpm-config $php_fpm_CONF" wait_for_pid () { try=0 while test $try -lt 35 ; do case "$1" in 'created') if ; then try='' break fi …

Apache httpd init.d Script

It is usually a good practice to install the Apache httpd as the service on the linux server so that it can be added to system startup and does not require any intervention from user to start the Apache httpd server manually on every reboot. Linux …

Get High Performance PHP-FPM with socket connections

PHP-FPM not only supports TCP/IP connections but also the socket based connections. The advantage of running PHP-FPM on socket connections instead of TCP/IP is that the socket connections are much more faster than TCP/IP connections (around 10-15%) because it saves the passing the data over the …

Memcached cache config on ubuntu

Memcached is high-performance, distributed memory object caching system. It’s well established and respected software used by the biggest web services. It has very clear API and is super easy in use. The best way to access Memcached from PHP is through the extension. If you would …

Varnish vcl config file for wordpress

Varnish vcl config file for wordpress: backend default { .host = "127.0.0.1"; .port = "8080"; } sub vcl_recv { if (req.http.Accept-Encoding) { #revisit this list if (req.url ~ "\.(gif|jpg|jpeg|swf|flv|mp3|mp4|pdf|ico|png|gz|tgz|bz2)(\?.*|)$") { remove req.http.Accept-Encoding; } elsif (req.http.Accept-Encoding ~ "gzip") { set req.http.Accept-Encoding = "gzip"; } elsif (req.http.Accept-Encoding ~ …

Installing Java on Ubuntu with Apt-Get

As a lot of articles and programs require to have Java installed, this article will guide you through the process of installing and managing different versions of Java. Installing default JRE/JDK This is the recommended and easiest option. This will install OpenJDK 6 on Ubuntu 12.04 …

Add Swap on Ubuntu 14.04

One of the easiest way of increasing the responsiveness of your server and guarding against out of memory errors in your applications is to add some swap space. Swap is an area on a hard drive that has been designated as a place where the operating …

Setup Postfix on Ubuntu 14.04

Postfix is a very popular open source Mail Transfer Agent (MTA) that can be used to route and deliver email on a Linux system. It is estimated that around 25% of public mail servers on the internet run Postfix. In this guide, we’ll teach you how …

Install and Use Memcache on Ubuntu 14.04

As your websites grow and see an increase in traffic, one of the components that shows stress the fastest is the backend database. If your database is not distributed and configured to handle high loads, it can easily be overwhelmed by a relatively modest increase in …

Set Up a Firewall Using IPTables on Ubuntu 14.04

Setting up a good firewall is an essential step to take in securing any modern operating system. Most Linux distributions ship with a few different firewall tools that we can use to configure our firewalls. In this guide, we’ll be covering the iptables firewall. Iptables is …

Install LAMP On CentOS 7

A “LAMP” stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data …

Install LEMP On CentOS 7

A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the ENginx web server (which replaces …