Install ISPConfig3 on an Ubuntu 14.10 Server – Part 2

Back to Part1 Edit Source List sudo nano /etc/apt/sources.list deb http://us.archive.ubuntu.com/ubuntu precise main restricted universe multiverse deb http://us.archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse Make sure above two lines exist. sudo apt-get update sudo apt-get install apache2 apache2-utils libapache2-mod-suphp libapache2-mod-fastcgi libapache2-mod-python libapache2-mod-fcgid apache2-suexec libapache2-mod-php5 php5 php5-fpm php5-gd php5-mysql php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-xcache php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-imap php5-cgi php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libruby memcached phpmyadmin postfix postfix-mysql postfix-doc mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve mailman amavisd-new spamassassin clamav clamav-daemon zoo unzip zip arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl libnet-dns-perl bind9 dnsutils vlogger webalizer awstats geoip-database libclass-dbi-mysql-perl squirrelmail pure-ftpd-common pure-ftpd-mysql snmp       Continue Part3.

» Read more

Install ISPConfig3 on an Ubuntu 14.10 Server – Part 3

Back to Part 2 Mail Configuration Let’s start by enabling some functionality in postfix. Open the default configuration file with your editor: sudo nano /etc/postfix/master.cf We just need to uncomment some of the lines in this file. Specifically the line that deals with the submission service and the first three option lines beneath, and the smtps service and the first three option lines for that one as well: submission inet n – – – – smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes . . . smtps inet n – – – – smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes Now, we need to append an additional option under both of these services. It will be the same for each: submission inet n – – – – smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject . . . smtps inet n – – – – smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject Save and close the file when you are finished   Another mail related service that we should configure is mailman, which can handle mailing lists. We can start off by telling it to create a new list: sudo newlist mailman You will be asked to provide […]

» Read more

Install ISPConfig3 on an Ubuntu 14.10 Server – Part 4

Back to Part3 Install ISPConfig We are finally ready to install the actual ISPConfig software. We can do that by downloading the latest stable version onto our server. As of this writing, the latest stable version that has a direct link available is version 3. We will update the installation once we get everything installed. Now, you should change to your home directory and download the project using wget: cd ~ wget http://prdownloads.sourceforge.net/ispconfig/ISPConfig-3.0.5.4p5.tar.gz After the download is complete, extract the directory structure and move into the install subdirectory of the extracted folder structure: tar xzvf ISPConfig-3.0.5.4p5.tar.gz cd ispconfig3_install/install/ Now, we are ready to install the software. Do so by typing: sudo php -q install.php You will be taken through a very lengthy installation processes. Luckily, the only detail you actually need to enter is your MySQL root password! For every other entry, just press “ENTER” to use the default value and skip ahead. When you are finished with the installation, go ahead and update to the latest version by typing: sudo php -q update.php Again, just press “ENTER” to use the defaults for each command. When you are finished, you can visit your ISPConfig service by visiting your domain name […]

» Read more

Install ISPConfig3 on an Ubuntu 14.10 Server – Part 5

Back to Part 4 Configure Squirrel Mail: Then create the following symlink… sudo ln -s /usr/share/squirrelmail/ /var/www/webmail sudo squirrelmail-configure Select D Select courier Then press enter to continue   Press S   Press Q  Making The  /squirrelmail working Link squirrel mail config to apache2 sudo ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf-enabled/squirrelmail.conf Open config sudo nano /etc/apache2/conf-enabled/squirrelmail.conf Then Add Alias /squirrelmail /usr/share/squirrelmail <Location /squirrelmail> <IfModule suphp_module> suPHP_Engine Off AddHandler php5-script .php </IfModule> php_admin_value open_basedir “/usr/share/squirrelmail/:/usr/share/squirrelmail/config/:/etc/mailname/:/var/lib/squirrelmail/data:/var/spool/squirrelmail/attach” </Location>   Making Squirrelmail work as /webmail Add following line to Alias /webmail /usr/share/squirrelmail Then restart Apache to affect. sudo service apache2 restart Continue to Part 6 .

» Read more

Install ISPConfig3 on an Ubuntu 14.10 Server – Part 6

Go Back to Part 5 Increase MaxRequestLen in etc/apache2/mods-available/fcgid.conf If you dont do this you will get following error messages ISPConfig – Error 500 Internal Server Error ERROR 500 – Internal Server Error! The following error occurred: The requested URL caused an internal server error. If you get this message repeatedly please contact the webmaster. sudo nano /etc/apache2/mods-available/fcgid.conf Add these two lines : FcgidConnectTimeout 20 MaxRequestLen 15728640 This will (“MaxRequestLen 15728640″) set the Request Limit to 15MB. Restart Apache to make settings affective sudo /etc/init.d/apache2 restart Increase File Upload Size sudo nano /etc/php5/cgi/php.ini post_max_size = 48M upload_max_filesize = 24M After making above changes please restart apache sudo /etc/init.d/apache2 restart Also make the same above changes in this file : sudo nano etc/php5/apache2/php.ini   Install Fail2Ban What is Fail2Ban : It  is an intrusion prevention software framework which protects computer servers from brute-force attacks. Written in the Python programming language, it is able to run on POSIX systems that have an interface to a packet-control system or firewall installed locally, for example, iptables or TCP Wrapper. How to Install sudo apt-get install fail2ban After installation finish please restart the service sudo /etc/init.d/fail2ban restart If you want to put any custom rules like whitelist own ip , can be done […]

» Read more

Install ISPConfig3 on an Ubuntu 14.10 Server – Part 1

Although the command line is a powerful tool that can allow you to work quickly and easily in many circumstances, there are instances where a visual interface is helpful. If you are configuring many different services on one machine, or administering portions of your system for clients, tools like ISPConfig can make this a much simpler task. ISPConfig is a control panel for your server that allows you to easily configure domains, email addresses, site configurations, and user accounts. We will be installing the panel on an Ubuntu 14.04 server.  Prerequisites Ubuntu Server 14.10 with Open SSH Server Installed. Upgrade the System The first thing we should do is upgrade the base system. This will ensure that the packages on our system are the newest packaged versions. We should update our local package index before we do this so that apt knows about the latest package versions: sudo apt-get update sudo apt-get upgrade Verify Hostnames are Configured Correctly We will start by making sure our hostnames are configured correctly. In this guide, we are going to be assuming that the domain name that we are setting up is server.test.com and the IP address for the server is 111.111.111.111. We need […]

» Read more

Large Text File Viewer

Have you ever felt frustrated when you just want to look at the content of a large text file but it takes forever for Notepad or Word to open it? This program was designed for viewing large (>1GB) text files. It uses little memory and is able to open a gigabyte file instantly. Background file indexing makes browsing even faster. It opens files that are currently being written by other programs, and automatically checks and reads the files if new contents have been appended. It supports view split. The user may split the view either horizontally or vertically, and have each side show different portion of the same file. It allows the user to perform high-speed complex text search by means of plain text or regular expression. The regular expression syntax is slightly different from the standard ones. The regular expressions for finding the following items have been provided as preset for the convenience of the users: quoted string hexadecimal integer floating-point number date of any format time of any format domestic phone number (US & Canada) social security number IP address email address http address ftp address For CSV (Comma Separated Value) files, when the user hovers the mouse […]

» Read more

Dynamic Footer Copyright Year using php

So let’s say your current footer looks something like this… <p id=”footer”>copyright © 2014 by Haneef Puttur, Inc</p> To put that copyright year on auto-pilot, simply drop this bit of code in there and sit back and relax. <p id=”footer”>copyright © <?php echo date(‘Y’); ?> by Haneef Puttur, Inc</p> If your copyright is a range of years, like 2001-2014, just add the snippet after the dash of the first year like this… <p id=”footer”>copyright © 2001-<?php echo date(‘Y’); ?> by Haneef Puttur, Inc</p>.

» Read more

Creating Widget Space in WordPress

About Widgets: WordPress widgets are plug-able items that enhance the features of a site. One can think of wordpress widget as a cassette that needs to be inserted into an available slot so that it performs it’s functions accordingly. Here slot refers to the the widgetized areas that are available according to the nature of the wordpress theme being used. Different themes have different widget areas , for instance a theme might support a widget in the header section, or a sidebar of the theme or maybe in the footer area of the theme. Most commonly, themes contain widget slots for the sidebars but wordpress provides with flexibility to custom integrate a widget slot anywhere in the theme, having said that, a bit of advanced knowledge is required to accomplish the required outcome. Custom widget area is used to create a slot for widgets to be placed over them in the admin widgets area. There are a number of widgets that can be placed over these slots such as sidebar widgets for post categories, tag clouds, navigation, search, etc To appear, like in sidebar, in footer, in header, hence where ever their particular slots are defined. Custom widget area provides an […]

» Read more
1 2 3