~ This is what I am and what I do.. !!

Category Archives: Apache

GB library is a graphics software library formanipulate images which was developed by Thomas Boutell in 1994. The current stable version in 2.1.1 released on January, 2015 written in C language. GD supports numerous programming languages including C, PHP, Perl, Python, OCaml, Tcl, Lua, Pascal, GNU Octave, REXX, Rubyand Go.

To install GD support for PHP in Ubuntu,

Run the following command to install GD:

sudo apt-get install php5-gd

Restart your Apache web server.

You can check to see if the GD library is enabled by creating a simple phpinfo page on your web server.

Create a new file called

phpinfo.php

Open this file in Notepad, or your preferred WYSIWYG editor such as Dreamweaver.

Prerequisites:

A Ubuntu Server

Apache2

MySQL server

PHP

First create a directory for your hosting website’s files. By default, in Ubuntu it is in /var/www/ You can create a folder inside it with the name of website or create in other directory. Both will work.

To create a directory

$sudo mkdir /var/www/mywebsite/

This folder requires permission to read by anyone,

$sudo chmod -R 755 /var/www/mywebsite

Now, create a new virtual host file for your new website. You can copy the default file to your website and edit to make change according to your requirement.

By default almost all Apache installation shows sensitive server information with Apache version number, server operating system details, installed Apache modules, PHP-version and so on. Hackers usually use this information to gain access to the webserver and damage sensitive information.

Following are the steps:

In apache2.conf or httpd.comf file edit the following

ServerSignature Off

ServerTokens Prod

And in php.ini edit the following

expose_php = Off

Besides that, we can use additional methods to strengthen security measures like..

Installing database firewall such as Greensql express which is a free version and installing web firewall such as Mod_security which is also a open source product.