The Perfect Server - Ubuntu 11.10 With Nginx [ISPConfig 3]

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2011-11-08 16:57. :: ISPConfig | Ubuntu | Web Server | Control Panels | nginx

The Perfect Server - Ubuntu 11.10 With Nginx [ISPConfig 3]

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Follow me on Twitter
Last edited 11/08/2011

This tutorial shows how to prepare an Ubuntu 11.10 (Oneiric Ocelot) server with nginx for the installation of ISPConfig 3, and how to install ISPConfig 3. Since version 3.0.4, ISPConfig comes with full support for the nginx web server in addition to Apache, and this tutorial covers the setup of a server that uses nginx instead of Apache. ISPConfig 3 is a webhosting control panel that allows you to configure the following services through a web browser: nginx and Apache web server, Postfix mail server, MySQL, BIND or MyDNS nameserver, PureFTPd, SpamAssassin, ClamAV, and many more.

If you want to use nginx instead of Apache with ISPConfig, please note that your nginx version must be at least 0.8.21, and you must install PHP-FPM as well. For CGI/Perl support, you must use fcgiwrap. This is all covered by this tutorial.

Please note that you cannot use this tutorial for Debian Squeeze because Squeeze comes with an older nginx version (0.7.67.) and does not have a PHP-FPM package!

Please note that this setup does not work for ISPConfig 2! It is valid for ISPConfig 3 only!

I do not issue any guarantee that this will work for you!

 

1 Requirements

To install such a system you will need the following:

 

2 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1. These settings might differ for you, so you have to replace them where appropriate.

 

3 The Base System

Insert your Ubuntu install CD into your system and boot from it. Select your language:

Then select Install Ubuntu Server:

Choose your language again (?):

Then select your location:

If you've selected an uncommon combination of language and location (like English as the language and Germany as the location, as in my case), the installer might tell you that there is no locale defined for this combination; in this case you have to select the locale manually. I select en_US.UTF-8 here:

Choose a keyboard layout (you will be asked to press a few keys, and the installer will try to detect your keyboard layout based on the keys you pressed):

The installer checks the installation CD, your hardware, and configures the network with DHCP if there is a DHCP server in the network:


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Wed, 2012-02-01 21:15.
ip6_tables: (C) 2000-2006 Netfilter Core Team                                                       
IPv6 over IPv4 tunneling driver                                                                     
NET: Registered protocol family 17                                                                  
NET: Registered protocol family 15                                                                  
Bridge firewalling registered                                                                       
Ebtables v2.0 registered                                                                            
8021q: 802.1Q VLAN Support v1.8                                                                     
sctp: Hash tables configured (established 16384 bind 16384)                                         
Registering the dns_resolver key type                                                               
Using IPI No-Shortcut mode                                                                          
registered taskstats version 1                                                                      
blkfront: xvda: barrier: enabled                                                                    
 xvda: unknown partition table                                                                      
blkfront: xvdb: barrier: enabled                                                                    
 xvdb: unknown partition table                                                                      
XENBUS: Device with no driver: device/console/0                                                     
md: Waiting for all devices to be available before autodetect                                       
md: If you don't use raid, use raid=noautodetect                                                    
md: Autodetecting RAID arrays.                                                                      
md: Scanned 0 and added 0 devices.                                                                  
md: autorun ...                                                                                     
md: ... autorun DONE.                                                                               
EXT3-fs: barriers not enabled                                                                       
kjournald starting.  Commit interval 5 seconds                                                      
EXT3-fs (xvda): mounted filesystem with writeback data mode                                         
VFS: Mounted root (ext3 filesystem) readonly on device 202:0.                                       
devtmpfs: mounted                                                                                   
Freeing unused kernel memory: 388k freed                                                            
Write protecting the kernel text: 6008k                                                             
Write protecting the kernel read-only data: 1436k                                                   
NX-protecting the kernel data: 3208k

after: SYSTEM HALT

please help me..

Submitted by Anonymous (not registered) on Tue, 2011-11-15 22:55.
Please note that you cannot use this tutorial for Debian Squeeze because Squeeze comes with an older nginx version (0.7.67.) and does not have a PHP-FPM package!

you mean lenny? what about if using custom/recompile (for example dotdeb) repository? i see there's no problem in my dev server (at least, until now).
Submitted by calocen (registered user) on Wed, 2011-11-23 18:15.
+1 With this /etc/apt/sources.list.d/dotdeb.list file, I running ispconfig in squeeze following this how to.

/etc/apt/sources.list.d/dotdeb.list

Another tip: this is my nginx default file. I catch all lost URL, deactivated domains, and hostname direct to panel in :80 and :443 ports

#/etc/nginx/sites-available/default

# -----------------------------------------------------

# everything goes to panel

# -----------------------------------------------------


server {

        listen 80 default_server;

        server_name _;


        access_log /var/log/nginx/ispconfig.log;


## Default location

        location / {

                proxy_pass https://127.0.0.1:8080/;

        }

    index index.html index.php;

    server_name_in_redirect off;

}

server {

        listen 443 ssl;

        server_name _;


        ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;

        ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;


        access_log /var/log/nginx/ispconfig.log;


## Default location

        location / {

                proxy_pass https://127.0.0.1:8080/;

        }