User Tools

Site Tools


start:installation:freebsd

i-MSCP on FreeBSD

Version Info

i-MSCP Version 1.0.0
Maintainer BeNe
Install Script 1.05
BSD Version FreeBSD 8.1-RELEASE
Last Update 07.12.2010


Problems

Before you start please consider the following issues:

- imscp_network daemon currently not ported to BSD´s → IPFW, PF, IPF (no Traffic-Count)
- /var/log/rkhunter.log & /var/log/chkrootkit.log not readable by the i-MSCP GUI
- Manage IPs → File /proc/net/dev does not exists or cannot be reached!
- imscp_daemon does need some changes in JAIL → see FAQ 12.4

TODO

- Build Port for FreeBSD → Maintainer Section 13.2
- Switch over to fcgid insted of FastCGI

Update Systems

Make sure you are logged in with an user that has root privileges or switch with “su”

Update ports

Bring the Ports Up-To-Date:

# portsnap update

Install Ports (if needed)

If you have none Ports installed yet - do it now!

# portsnap fetch extract

Install Portmaster

We use Portmaster to install the needed modules. So make sure portmaster is installed or do it now:

# cd /usr/ports/ports-mgmt/portmaster
# make install clean
# rehash

1. Download and extract i-MSCP

# mkdir -p /usr/local/src/imscp/
# cd /usr/local/src/imscp/
# fetch http://mesh.dl.sourceforge.net/sourceforge/<< L I N K >>
# tar xjvf imscp-1.0.0.tar.bz2

2. Compile the required packages

2.1 Apache as Worker

First we need to configure Apache to use worker instead of prefork

# vi /usr/ports/www/apache22/Makefile

And change WITH_MPM to worker:

# WITH_MPM?=      worker # or prefork, event, itk

2.2 Compile the Packages

Now we can compile and install the needed packages very easy with it:

# cd ./imscp-1.0.0
# portmaster `cat ./docs/FreeBSD/freebsd-packages`

Set the Options for the packages as described. Options that are not listed here can be accept as they are. :!:

Apache22 Options

+--------------------------------------------------------------------+
¦                 Options for apache-worker 2.2.17_1                 ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦[X] THREADS               Enable threads support in APR         ¦ ¦
¦ ¦[ ] MYSQL                 Enable MySQL support for apr-dbd      ¦ ¦
¦ ¦[ ] PGSQL                 Enable PostgreSQL support for apr-dbd ¦ ¦
¦ ¦[ ] SQLITE                Enable SQLite support for apr-dbd     ¦ ¦
¦ ¦[X] IPV6                  Enable IPv6 support                   ¦ ¦
¦ ¦[ ] BDB                   Enable BerkeleyDB dbm                 ¦ ¦
¦ ¦[X] AUTH_BASIC            Enable mod_auth_basic                 ¦ ¦
¦ ¦[ ] AUTH_DIGEST           Enable mod_auth_digest                ¦ ¦
¦ ¦[X] AUTHN_FILE            Enable mod_authn_file                 ¦ ¦
¦ ¦[ ] AUTHN_DBD             Enable mod_authn_dbd                  ¦ ¦
¦ ¦[ ] AUTHN_DBM             Enable mod_authn_dbm                  ¦ ¦
¦ ¦[ ] AUTHN_ANON            Enable mod_authn_anon                 ¦ ¦
¦ ¦[X] AUTHN_DEFAULT         Enable mod_authn_default              ¦ ¦
¦ ¦[ ] AUTHN_ALIAS           Enable mod_authn_alias                ¦ ¦
¦ ¦[X] AUTHZ_HOST            Enable mod_authz_host                 ¦ ¦
¦ ¦[X] AUTHZ_GROUPFILE       Enable mod_authz_groupfile            ¦ ¦
¦ ¦[ ] AUTHZ_USER            Enable mod_authz_user                 ¦ ¦
¦ ¦[ ] AUTHZ_DBM             Enable mod_authz_dbm                  ¦ ¦
¦ ¦[X] AUTHZ_OWNER           Enable mod_authz_owner                ¦ ¦
¦ ¦[X] AUTHZ_DEFAULT         Enable mod_authz_default              ¦ ¦
¦ ¦[ ] CACHE                 Enable mod_cache                      ¦ ¦
¦ ¦[ ] DISK_CACHE            Enable mod_disk_cache                 ¦ ¦
¦ ¦[ ] FILE_CACHE            Enable mod_file_cache                 ¦ ¦
¦ ¦[ ] MEM_CACHE             Enable mod_mem_cache                  ¦ ¦
¦ ¦[ ] DAV                   Enable mod_dav                        ¦ ¦
¦ ¦[ ] DAV_FS                Enable mod_dav_fs                     ¦ ¦
¦ ¦[ ] BUCKETEER             Enable mod_bucketeer                  ¦ ¦
¦ ¦[ ] CASE_FILTER           Enable mod_case_filter                ¦ ¦
¦ ¦[ ] CASE_FILTER_IN        Enable mod_case_filter_in             ¦ ¦
¦ |[ ] EXT_FILTER            Enable mod_ext_filter                 ¦ ¦
¦ ¦[ ] LOG_FORENSIC          Enable mod_log_forensic               ¦ ¦
¦ ¦[ ] OPTIONAL_HOOK_EXPORT  Enable mod_optional_hook_export       ¦ ¦
¦ ¦[ ] OPTIONAL_HOOK_IMPORT  Enable mod_optional_hook_import       ¦ ¦
¦ ¦[ ] OPTIONAL_FN_IMPORT    Enable mod_optional_fn_import         ¦ ¦
¦ ¦[ ] OPTIONAL_FN_EXPORT    Enable mod_optional_fn_export         ¦ ¦
¦ ¦[ ] LDAP                  Enable mod_ldap                       ¦ ¦
¦ ¦[ ] AUTHNZ_LDAP           Enable mod_authnz_ldap                ¦ ¦
¦ ¦[X] ACTIONS               Enable mod_actions                    ¦ ¦
¦ ¦[X] ALIAS                 Enable mod_alias                      ¦ ¦
¦ ¦[ ] ASIS                  Enable mod_asis                       ¦ ¦
¦ ¦[X] AUTOINDEX             Enable mod_autoindex                  ¦ ¦
¦ ¦[ ] CERN_META             Enable mod_cern_meta                  ¦ ¦
¦ ¦[ ] CGI                   Enable mod_cgi                        ¦ ¦
¦ ¦[ ] CHARSET_LITE          Enable mod_charset_lite               ¦ ¦
¦ ¦[ ] DBD                   Enable mod_dbd                        ¦ ¦
¦ ¦[X] DEFLATE               Enable mod_deflate                    ¦ ¦
¦ ¦[X] DIR                   Enable mod_dir                        ¦ ¦
¦ ¦[ ] DUMPIO                Enable mod_dumpio                     ¦ ¦
¦ ¦[X] ENV                   Enable mod_env                        ¦ ¦
¦ ¦[X] EXPIRES               Enable mod_expires                    ¦ ¦
¦ ¦[ ] HEADERS               Enable mod_headers                    ¦ ¦
¦ ¦[ ] IMAGEMAP              Enable mod_imagemap                   ¦ ¦
¦ ¦[ ] INCLUDE               Enable mod_include                    ¦ ¦
¦ ¦[X] INFO                  Enable mod_info                       ¦ ¦
¦ ¦[X] LOG_CONFIG            Enable mod_log_config                 ¦ ¦
¦ ¦[X] LOGIO                 Enable mod_logio                      ¦ ¦
¦ ¦[X] MIME                  Enable mod_mime                       ¦ ¦
¦ ¦[X] MIME_MAGIC            Enable mod_mime_magic                 ¦ ¦
¦ ¦[X] NEGOTIATION           Enable mod_negotiation                ¦ ¦
¦ ¦[X] REWRITE               Enable mod_rewrite                    ¦ ¦
¦ ¦[X] SETENVIF              Enable mod_setenvif                   ¦ ¦
¦ ¦[ ] SPELING               Enable mod_speling                    ¦ ¦
¦ ¦[X] STATUS                Enable mod_status                     ¦ ¦
¦ ¦[ ] UNIQUE_ID             Enable mod_unique_id                  ¦ ¦
¦ ¦[ ] USERDIR               Enable mod_userdir                    ¦ ¦
¦ ¦[ ] USERTRACK             Enable mod_usertrack                  ¦ ¦
¦ ¦[X] VHOST_ALIAS           Enable mod_vhost_alias                ¦ ¦
¦ ¦[ ] FILTER                Enable mod_filter                     ¦ ¦
¦ ¦[ ] VERSION               Enable mod_version                    ¦ ¦
¦ ¦[X] PROXY                 Enable mod_proxy                      ¦ ¦
¦ ¦[X] PROXY_CONNECT         Enable mod_proxy_connect              ¦ ¦
¦ ¦[X] PATCH_PROXY_CONNECT   Patch proxy_connect SSL support       ¦ ¦
¦ ¦[ ] PROXY_FTP             Enable mod_proxy_ftp                  ¦ ¦
¦ ¦[X] PROXY_HTTP            Enable mod_proxy_http                 ¦ ¦
¦ ¦[ ] PROXY_AJP             Enable mod_proxy_ajp                  ¦ ¦
¦ ¦[ ] PROXY_BALANCER        Enable mod_proxy_balancer             ¦ ¦
¦ ¦[ ] PROXY_SCGI            Enable mod_proxy_scgi                 ¦ ¦
¦ ¦[X] SSL                   Enable mod_ssl                        ¦ ¦
¦ ¦[X] SUEXEC                Enable mod_suexec                     ¦ ¦
¦ ¦[ ] SUEXEC_RSRCLIMIT      SuEXEC rlimits based on login class   ¦ ¦
¦ ¦[X] REQTIMEOUT            Enable mod_reqtimeout                 ¦ ¦
¦ ¦[X] CGID                  Enable mod_cgid                       ¦ ¦
+-+----v(+)--------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Proftpd Options

+--------------------------------------------------------------------+
¦                    Options for proftpd 1.3.3c_3                    ¦ 
¦ +----------------------------------------------------------------+ ¦
¦ ¦[ ] BAN              Include mod_ban (Requires CTRLS)           ¦ ¦
¦ ¦[ ] CLAMAV           Include mod_clamav                         ¦ ¦
¦ ¦[X] CTRLS            Include controls                           ¦ ¦
¦ ¦[ ] DIGEST           Include mod_digest                         ¦ ¦
¦ ¦[ ] EXEC             Include mod_exec                           ¦ ¦  
¦ ¦[ ] HTMLDOCS         Include HTML documentation                 ¦ ¦ 
¦ ¦[X] IFSESSION        Include mod_ifsession                      ¦ ¦
¦ ¦[X] IPV6             Use IPv6                                   ¦ ¦
¦ ¦[ ] LDAP             Use LDAP                                   ¦ ¦
¦ ¦[ ] LDAP_TLS         Use LDAP TLS (Requires LDAP, OPENSSL)      ¦ ¦
¦ ¦[X] MYSQL            MySQL auth                                 ¦ ¦
¦ ¦[X] NLS              Use nls (builds mod_lang)                  ¦ ¦
¦ ¦[ ] ODBC             ODBC                                       ¦ ¦  
¦ ¦[X] OPENSSL          Include mod_tls                            ¦ ¦
¦ ¦[ ] PGSQL            Postgres auth                              ¦ ¦
¦ ¦[X] QUOTA            Include mod_quota                          ¦ ¦
¦ ¦[ ] QUOTATAB_RADIUS  include mod_quotatab_radius                ¦ ¦
¦ ¦[ ] SHAPER           Shaper module                              ¦ ¦  
¦ ¦[ ] SQLITE           SQLite auth                                ¦ ¦  
¦ ¦[ ] RADIUS           Include mod_radius                         ¦ ¦
¦ ¦[ ] RATIO            Include mod_ratio                          ¦ ¦
¦ ¦[X] README           Include mod_readme                         ¦ ¦
¦ ¦[X] REWRITE          Include mod_rewrite                        ¦ ¦
¦ ¦[ ] TLS_SHMCACHE     TLS SHM session cache (requires OPENSSL)   ¦ ¦  
¦ ¦[ ] TDS              Include mod_sql_tds                        ¦ ¦  
¦ ¦[ ] SFTP             Include mod_sftp                           ¦ ¦  
¦ ¦[ ] SFTP_SQL         Include mod_sftp_sql                       ¦ ¦  
¦ ¦[ ] SFTP_PAM         Include mod_sftp_pam                       ¦ ¦  
¦ ¦[ ] SQL_PASSWD       Include mod_sql_passwd                     ¦ ¦  
¦ ¦[ ] UNIQUE           Include mod_unique_id                      ¦ ¦  
¦ ¦[X] WRAP             Include mod_wrap2                          ¦ ¦
¦ ¦[ ] WRAP_FILE        Include mod_wrap2_file (requires WRAP)     ¦ ¦
¦ ¦[ ] WRAP_SQL         Include mod_wrap2_sql (requires WRAP)      ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Postfix Options

+ Install the DOVECOT SASL if you are going to install Dovecot
+ VDA for MailQuota → http://ispcp.geoclave.net/

+--------------------------------------------------------------------+
¦                   Options for postfix 2.7.2,1                      ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦[X] PCRE      Perl Compatible Regular Expressions               ¦ ¦
¦ ¦[X] SASL2     Cyrus SASLv2 (Simple Auth. and Sec. Layer)        ¦ ¦
¦ ¦[+] DOVECOT   Dovecot SASL authentication method                ¦ ¦
¦ ¦[ ] SASLKRB   If your SASL req. Kerberos select this option     ¦ ¦
¦ ¦[ ] SASLKRB5  If your SASL req. Kerberos5 select this option    ¦ ¦
¦ ¦[ ] SASLKMIT  If your SASL req. MIT Kerberos5 select this option¦ ¦
¦ ¦[X] TLS       Enable SSL and TLS support                        ¦ ¦
¦ ¦[ ] BDB       Berkeley DB (choose version with WITH_BDB_VER)    ¦ ¦
¦ ¦[X] MYSQL     MySQL maps (choose version with WITH_MYSQL_VER)   ¦ ¦
¦ ¦[ ] PGSQL     PostgreSQL maps (choose with DEFAULT_PGSQL_VER)   ¦ ¦
¦ ¦[ ] OPENLDAP  OpenLDAP maps (choose ver. with WITH_OPENLDAP_VER)¦ ¦
¦ ¦[X] CDB       CDB maps lookups                                  ¦ ¦
¦ ¦[ ] NIS       NIS maps lookups                                  ¦ ¦
¦ ¦[X] VDA       VDA (Virtual Delivery Agent)                      ¦ ¦
¦ ¦[ ] TEST      SMTP/LMTP test server and generator               ¦ ¦
¦ ¦[ ] SPF       SPF support (via libspf2 1.2.x)                   ¦ ¦
¦ ¦[ ] INST_BASE Install into /usr and /etc/postfix               ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

cyrus-sasl Options

+--------------------------------------------------------------------+
¦                  Options for cyrus-sasl 2.1.23_1                   ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦   [X] BDB           Use Berkeley DB                            ¦ ¦
¦ ¦   [X] MYSQL         Use MySQL                                  ¦ ¦
¦ ¦   [ ] PGSQL         Use PostgreSQL                             ¦ ¦
¦ ¦   [ ] SQLITE        Use SQLite                                 ¦ ¦
¦ ¦   [ ] DEV_URANDOM   Use /dev/urandom                           ¦ ¦
¦ ¦   [ ] ALWAYSTRUE    Enable the alwaystrue password verifier    ¦ ¦
¦ ¦   [ ] KEEP_DB_OPEN  Keep handle to Berkeley DB open            ¦ ¦
¦ ¦   [X] AUTHDAEMOND   Enable use of authdaemon                   ¦ ¦
¦ ¦   [X] LOGIN         Enable LOGIN authentication                ¦ ¦
¦ ¦   [X] PLAIN         Enable PLAIN authentication                ¦ ¦
¦ ¦   [X] CRAM          Enable CRAM-MD5 authentication             ¦ ¦
¦ ¦   [X] DIGEST        Enable DIGEST-MD5 authentication           ¦ ¦
¦ ¦   [ ] OTP           Enable OTP authentication                  ¦ ¦
¦ ¦   [ ] NTLM          Enable NTLM authentication                 ¦ ¦
¦ ¦                                                                ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                          OK         [Cancel]                       ¦
+--------------------------------------------------------------------+

p5-Net-DNS Options

+--------------------------------------------------------------------+
¦                   Options for p5-Net-DNS 0.66_1                    ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦       [X] IPV6  Enable functionality over IPv6 transport       ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

courier-imap Options

+--------------------------------------------------------------------+
¦                 Options for courier-imap 4.8.1,2                   ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦     [ ] FAM          Build in fam support for IDLE command     ¦ ¦
¦ ¦     [ ] TRASHQUOTA   Include deleted mails in the quota        ¦ ¦
¦ ¦     [ ] GDBM         Use gdbm db instead of system bdb         ¦ ¦
¦ ¦     [X] IPV6         Build with IPv6 support                   ¦ ¦
¦ ¦     [ ] AUTH_LDAP    LDAP support                              ¦ ¦
¦ ¦     [ ] AUTH_MYSQL   MySQL support                             ¦ ¦
¦ ¦     [ ] AUTH_PGSQL   PostgreSQL support                        ¦ ¦
¦ ¦     [X] AUTH_USERDB  Userdb support                            ¦ ¦
¦ ¦     [ ] AUTH_VCHKPW  Vpopmail/vchkpw support                   ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

courier-authlib Options

+--------------------------------------------------------------------+
¦                Options for courier-authlib 0.63.0_2                ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦        [ ] GDBM         Use gdbm instead of system bdb         ¦ ¦
¦ ¦        [ ] AUTH_LDAP    LDAP support                           ¦ ¦
¦ ¦        [ ] AUTH_MYSQL   MySQL support                          ¦ ¦
¦ ¦        [ ] AUTH_PGSQL   PostgreSQL support                     ¦ ¦
¦ ¦        [X] AUTH_USERDB  Userdb support                         ¦ ¦
¦ ¦        [ ] AUTH_VCHKPW  Vpopmail/vchkpw support                ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Perl Options

+--------------------------------------------------------------------+
¦                     Options for perl 5.10.1_2                      ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦      [ ] DEBUGGING      Build with debugging support           ¦ ¦
¦ ¦      [ ] GDBM           Build GDBM_File extension              ¦ ¦
¦ ¦      [ ] PERL_MALLOC    Use Perl malloc                        ¦ ¦
¦ ¦      [X] PERL_64BITINT  Use 64 bit integers (on i386)          ¦ ¦
¦ ¦      [X] THREADS        Build threaded perl                    ¦ ¦
¦ ¦      [ ] MULTIPLICITY   Use multiplicity                       ¦ ¦
¦ ¦      [ ] SUIDPERL       Build set-user-id suidperl binary      ¦ ¦
¦ ¦      [ ] SITECUSTOMIZE  Run-time customization of @INC         ¦ ¦
¦ ¦      [X] USE_PERL       Rewrite links in /usr/bin              ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5 Options

+--------------------------------------------------------------------+
¦                      Options for php5 5.3.3_2                      ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦[X] CLI        Build CLI version                                ¦ ¦
¦ ¦[X] CGI        Build CGI version                                ¦ ¦
¦ ¦[ ] FPM        Build FPM version (experimental)                 ¦ ¦
¦ ¦[ ] APACHE     Build Apache module                              ¦ ¦
¦ ¦[ ] AP2FILTER   Use Apache 2.x filter interface (experimental)  ¦ ¦
¦ ¦[ ] DEBUG      Enable debug                                     ¦ ¦
¦ ¦[X] SUHOSIN    Enable Suhosin protection system (not for jails) ¦ ¦
¦ ¦[ ] MULTIBYTE  Enable zend multibyte support                    ¦ ¦
¦ ¦[X] IPV6       Enable ipv6 support                              ¦ ¦
¦ ¦[ ] MAILHEAD   Enable mail header patch                         ¦ ¦
¦ ¦[ ] LINKTHR    Link thread lib (for threaded extensions)        ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5-Extensions Options

+--------------------------------------------------------------------+
¦                 Options for php5-extensions 1.4                    ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦    [ ] BCMATH      bc style precision math functions           ¦ ¦
¦ ¦    [X] BZ2         bzip2 library support                       ¦ ¦
¦ ¦    [ ] CALENDAR    calendar conversion support                 ¦ ¦
¦ ¦    [X] CTYPE       ctype functions                             ¦ ¦
¦ ¦    [X] CURL        CURL support                                ¦ ¦
¦ ¦    [X] DBA         dba support                                 ¦ ¦
¦ ¦    [X] DOM         DOM support                                 ¦ ¦
¦ ¦    [ ] EXIF        EXIF support                                ¦ ¦
¦ ¦    [X] FILEINFO    fileinfo support                            ¦ ¦
¦ ¦    [X] FILTER      input filter support                        ¦ ¦
¦ ¦    [ ] FRIBIDI     FriBidi support                             ¦ ¦
¦ ¦    [X] FTP         FTP support                                 ¦ ¦
¦ ¦    [X] GD          GD library support                          ¦ ¦
¦ ¦    [X] GETTEXT     gettext library support                     ¦ ¦
¦ ¦    [ ] GMP         GNU MP support                              ¦ ¦
¦ ¦    [X] HASH        HASH Message Digest Framework               ¦ ¦
¦ ¦    [X] ICONV       iconv support                               ¦ ¦
¦ ¦    [X] IMAP        IMAP support                                ¦ ¦
¦ ¦    [ ] INTERBASE   Interbase 6 database support (Firebird)     ¦ ¦
¦ ¦    [X] JSON        JavaScript Object Serialization support     ¦ ¦
¦ ¦    [ ] LDAP        OpenLDAP support                            ¦ ¦
¦ ¦    [X] MBSTRING    multibyte string support                    ¦ ¦
¦ ¦    [X] MCRYPT      Encryption support                          ¦ ¦
¦ ¦    [ ] MSSQL       MS-SQL database support                     ¦ ¦
¦ ¦    [X] MYSQL       MySQL database support                      ¦ ¦
¦ ¦    [X] MYSQLI      MySQLi database support                     ¦ ¦
¦ ¦    [ ] ODBC        unixODBC support                            ¦ ¦
¦ ¦    [ ] OPENSSL     OpenSSL support                             ¦ ¦
¦ ¦    [ ] PCNTL       pcntl support (code only)                   ¦ ¦
¦ ¦    [ ] PDF         PDFlib support (implies GD)                 ¦ ¦
¦ ¦    [X] PDO         PHP Data Objects Interface (PDO)            ¦ ¦
¦ ¦    [X] PDO_SQLITE  PDO sqlite driver                           ¦ ¦
¦ ¦    [ ] PGSQL       PostgreSQL database support                 ¦ ¦
¦ ¦    [X] POSIX       POSIX-like functions                        ¦ ¦
¦ ¦    [ ] PSPELL      pspell support                              ¦ ¦
¦ ¦    [ ] READLINE    readline support (code only)                ¦ ¦
¦ ¦    [ ] RECODE      recode support                              ¦ ¦
¦ ¦    [X] SESSION     session support                             ¦ ¦
¦ ¦    [X] SHMOP       shmop support                               ¦ ¦
¦ ¦    [X] SIMPLEXML   simplexml support                           ¦ ¦
¦ ¦    [ ] SNMP        SNMP support                                ¦ ¦
¦ ¦    [X] SOAP        SOAP support                                ¦ ¦
¦ ¦    [X] SOCKETS     sockets support                             ¦ ¦
¦ ¦    [X] SQLITE      sqlite support                              ¦ ¦
¦ ¦    [ ] SYBASE_CT   Sybase database support                     ¦ ¦
¦ ¦    [ ] SYSVMSG     System V message support                    ¦ ¦
¦ ¦    [ ] SYSVSEM     System V semaphore support                  ¦ ¦
¦ ¦    [ ] SYSVSHM     System V shared memory support              ¦ ¦
¦ ¦    [ ] TIDY        TIDY support                                ¦ ¦
¦ ¦    [X] TOKENIZER   tokenizer support                           ¦ ¦
¦ ¦    [ ] WDDX        WDDX support (implies XML)                  ¦ ¦
¦ ¦    [X] XML         XML support                                 ¦ ¦
¦ ¦    [X] XMLREADER   XMLReader support                           ¦ ¦
¦ ¦    [X] XMLRPC      XMLRPC-EPI support                          ¦ ¦
¦ ¦    [X] XMLWRITER   XMLWriter support                           ¦ ¦
¦ ¦    [ ] XSL         XSL support (Implies DOM)                   ¦ ¦
¦ ¦    [ ] YAZ         YAZ support (ANSI/NISO Z39.50)              ¦ ¦
¦ ¦    [X] ZIP         ZIP support                                 ¦ ¦
¦ ¦    [X] ZLIB        ZLIB support                                ¦ ¦
+-+--------v(+)----------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5-MBString Options

+--------------------------------------------------------------------+
¦                 Options for php5-mbstring 5.3.3_2                  ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦           [X] REGEX  Enable multibyte regex support            ¦ ¦ 
+-+--------v(+)----------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5-DBA Options

+--------------------------------------------------------------------+
¦                   Options for php5-dba 5.3.3_2                     ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦              [X] CDB       cdb database support                ¦ ¦
¦ ¦              [ ] DB4       Berkeley DB4 support                ¦ ¦
¦ ¦              [ ] GDBM      GDBM database support               ¦ ¦
¦ ¦              [ ] QDBM      QDBM database support               ¦ ¦
¦ ¦              [X] INIFILE   INI file support                    ¦ ¦
¦ ¦              [X] FLATFILE  flatfile support                    ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5-MySQL Options

+--------------------------------------------------------------------+
¦                   Options for php5-mysql 5.3.3_2                   ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦              [ ] MYSQLND  Use MySQL Native Driver              ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5-MySQLi Options

+--------------------------------------------------------------------+
¦                   Options for php5-mysql 5.3.3_2                   ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦              [ ] MYSQLND  Use MySQL Native Driver              ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5-SQL-lite Options

+--------------------------------------------------------------------+
¦                  Options for php5-sqlite 5.3.3_2                   ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦                 [X] UTF8  Enable UTF-8 support                 ¦ ¦
¦ ¦                                                                ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

AWStats IPv6

+--------------------------------------------------------------------+
¦                    Options for awstats 6.95,1                      ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦         [X] IPV6  Enable IPV6 for use with IPv6 Plugin         ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

CURL Options

+--------------------------------------------------------------------+
¦                    Options for curl 7.21.1                         ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦   [ ] CARES        Asynchronous DNS resolution via c-ares      ¦ ¦
¦ ¦   [ ] CURL_DEBUG   Enable curl diagnostic output               ¦ ¦
¦ ¦   [ ] GNUTLS       Use GNU TLS if OPENSSL is OFF               ¦ ¦
¦ ¦   [X] IPV6         IPv6 support                                ¦ ¦
¦ ¦   [ ] KERBEROS4    Kerberos 4 authentication                   ¦ ¦
¦ ¦   [ ] LDAP         LDAP support                                ¦ ¦
¦ ¦   [ ] LDAPS        LDAPS support (requires LDAP and SSL)       ¦ ¦
¦ ¦   [ ] LIBIDN       Internationalized Domain Names via libidn   ¦ ¦
¦ ¦   [ ] LIBSSH2      SCP/SFTP support via libssh2                ¦ ¦
¦ ¦   [ ] NTLM         NTLM authentication                         ¦ ¦
¦ ¦   [X] OPENSSL      OpenSSL support                             ¦ ¦
¦ ¦   [X] CA_BUNDLE    Install CA bundle for OpenSSL               ¦ ¦
¦ ¦   [X] PROXY        Proxy support                               ¦ ¦
¦ ¦   [ ] RTMP         RTMP streams support                        ¦ ¦
¦ ¦   [ ] TRACKMEMORY  Enable curl memory diagnostic output        ¦ ¦
¦ ¦   [X] WERROR       Treat compilation warnings as errors        ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Root Certificates Options

+--------------------------------------------------------------------+
¦                  Options for ca_root_nss 3.12.6                    ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦        [X] ETCSYMLINK  Add symlink to /etc/ssl/cert.pem        ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PHP5-GD Options

+--------------------------------------------------------------------+
¦                    Options for php5-gd 5.3.3_2                     ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦     [X] T1LIB     Include T1lib support                        ¦ ¦
¦ ¦     [X] TRUETYPE  Enable TrueType string function              ¦ ¦
¦ ¦     [ ] JIS       Enable JIS-mapped Japanese font support      ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Libxslt Options

+--------------------------------------------------------------------+
¦                    Options for libxslt 1.1.26_2                    ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦         [ ] MEM_DEBUG  Enable memory debugging                 ¦ ¦
¦ ¦         [X] CRYPTO     Enable crypto support for exslt         ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

PNG Options

+--------------------------------------------------------------------+
¦                      Options for png 1.4.3                         ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦                 [X] APNG  Animated PNG support                 ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Ccodeent Options

+--------------------------------------------------------------------+
¦                   Options for ccodeent 2007e,1                     ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦   [X] SSL                Compile with SSL support              ¦ ¦
¦ ¦   [ ] SSL_AND_PLAINTEXT  Allow plain text passwords and SSL    ¦ ¦
¦ ¦   [X] IPV6               Support IPv6                          ¦ ¦
¦ ¦   [ ] MBX_DEFAULT        Use MBX as default mailbox format     ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

rkHunter Options

+--------------------------------------------------------------------+
¦                    Options for rkhunter 1.3.6                      ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦                       [X] LSOF  Use LSOF                       ¦ ¦
¦ ¦                       [ ] NMAP  Use NMAP                       ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Wget Options

+--------------------------------------------------------------------+
¦                      Options for wget 1.12_2                       ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦       [ ] GNUTLS   Support for SSL via GnuTLS                  ¦ ¦
¦ ¦       [X] IPV6     Support for IPv6                            ¦ ¦
¦ ¦       [X] NLS      Native Language Support with gettext        ¦ ¦
¦ ¦       [X] OPENSSL  Support for SSL via OpenSSL                 ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

p7zip Options

+--------------------------------------------------------------------+
¦                      Options for p7zip 9.13                        ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦           [ ] MINIMAL  Support only .7z file format            ¦ ¦
¦ ¦           [X] MODULES  Build modules                           ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

p5-Archive-Tar Options

+--------------------------------------------------------------------+
¦                 Options for p5-Archive-Tar 1.62                    ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦         [ ] TEXT_DIFF  Text::Diff support for ptardiff         ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

gnupg Options

+--------------------------------------------------------------------+
¦                     Options for gnupg 2.0.16_2                     ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦ [ ] LDAP      LDAP keyserver interface                         ¦ ¦
¦ ¦ [ ] SCDAEMON  Enable Smartcard daemon (with libusb)            ¦ ¦
¦ ¦ [X] CURL      Use the real curl library (worked around if no)  ¦ ¦
¦ ¦ [ ] GPGSM     Enable GPGSM (require LDAP)                      ¦ ¦
¦ ¦ [X] CAMELLIA  Enable Camellia algorithm                        ¦ ¦
¦ ¦ [ ] KDNS      Use DNS CERT helper                              ¦ ¦
¦ ¦ [ ] STD_SOCKET  Use standard socket for agent                  ¦ ¦
¦ ¦ [ ] NLS       National Language Support                        ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

pth Options

+--------------------------------------------------------------------+
¦                      Options for pth 2.0.7                         ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦       [X] OPTIMIZED_CFLAGS  Build with optimized CFLAGS        ¦ ¦
¦ ¦                                                                ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

p5-IO-Socket-SSL Options

+--------------------------------------------------------------------+
¦                Options for p5-IO-Socket-SSL 1.34                   ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦       [X] IDN  International Domain Names (IDN) support        ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

AMaViS Options

+--------------------------------------------------------------------+
¦                Options for amavisd-new 2.6.4_8,1                   ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦  [X] BDB           Use BerkeleyDB for nanny/cache/snmp         ¦ ¦
¦ ¦  [ ] SNMP          Install amavisd snmp subagent               ¦ ¦
¦ ¦  [ ] SQLITE        Use SQLite for lookups                      ¦ ¦
¦ ¦  [ ] MYSQL         Use MySQL for lookups/logging/quarantine    ¦ ¦
¦ ¦  [ ] PGSQL         Use PgSQL for lookups/logging/quarantine    ¦ ¦
¦ ¦  [ ] LDAP          Use LDAP for lookups                        ¦ ¦
¦ ¦  [ ] SASL          Use SASL authentication                     ¦ ¦
¦ ¦  [X] MILTER        Sendmail milter support                     ¦ ¦
¦ ¦  [X] SPAMASSASSIN  Use mail/p5-Mail-SpamAssassin               ¦ ¦
¦ ¦  [ ] P0F           Passive operating system fingerprinting     ¦ ¦
¦ ¦  [ ] ALTERMIME     Use AlterMime for defanging/disclaimers     ¦ ¦
¦ ¦  [X] FILE          Use newer file(1) utility from ports        ¦ ¦
¦ ¦  [ ] RAR           RAR support with archivers/rar              ¦ ¦
¦ ¦  [X] UNRAR         RAR support with archivers/unrar            ¦ ¦
¦ ¦  [X] ARJ           ARJ support with archivers/arj              ¦ ¦
¦ ¦  [ ] UNARJ         ARJ support with archivers/unarj            ¦ ¦
¦ ¦  [X] LHA           LHA support with archivers/lha              ¦ ¦
¦ ¦  [X] ARC           ARC support with archivers/arc              ¦ ¦
¦ ¦  [ ] NOMARCH       ARC support with archivers/nomarch          ¦ ¦
¦ ¦  [X] CAB           CAB support with archivers/cabextract       ¦ ¦
¦ ¦  [X] RPM           RPM support with archivers/rpm2cpio         ¦ ¦
¦ ¦  [X] ZOO           ZOO support with archivers/zoo              ¦ ¦
¦ ¦  [ ] UNZOO         ZOO support with archivers/unzoo            ¦ ¦
¦ ¦  [X] LZOP          LZOP support with archivers/lzop            ¦ ¦
¦ ¦  [X] FREEZE        FREEZE support with archivers/freeze        ¦ ¦
¦ ¦  [X] P7ZIP         P7ZIP support with archivers/p7zip          ¦ ¦
¦ ¦  [X] MSWORD        Ms Word support with textproc/ripole        ¦ ¦
¦ ¦  [ ] TNEF          Add external tnef decoder converters/tnef   ¦ ¦
+-+------v(+)------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

SpamAssassin Options

+--------------------------------------------------------------------+
¦             Options for p5-Mail-SpamAssassin 3.3.1_2               ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦   [X] AS_ROOT        Run spamd as root (recommended)           ¦ ¦
¦ ¦   [X] SPAMC          Build spamd/spamc (not for amavisd)       ¦ ¦
¦ ¦   [ ] SACOMPILE      sa-compile                                ¦ ¦
¦ ¦   [X] DKIM           DKIM/DomainKeys Identified Mail           ¦ ¦
¦ ¦   [X] SSL            Build with SSL support for spamd/spamc    ¦ ¦
¦ ¦   [X] GNUPG          Install GnuPG (for sa-update)             ¦ ¦
¦ ¦   [ ] MYSQL          Add MySQL support                         ¦ ¦
¦ ¦   [ ] PGSQL          Add PostreSQL support                     ¦ ¦
¦ ¦   [X] RAZOR          Add Vipul's Razor support                 ¦ ¦
¦ ¦   [ ] SPF_QUERY      Add SPF query support                     ¦ ¦
¦ ¦   [ ] RELAY_COUNTRY  Relay country support                     ¦ ¦
¦ ¦   [ ] DCC            Add DCC support (see LICENSE)             ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

p5-libwww Options

+--------------------------------------------------------------------+
¦                   Options for p5-libwww 5.837                      ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦                 [X] SSL  Enable https support                  ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Cyrus-SASL-saslauthd Options

+--------------------------------------------------------------------+
¦             Options for cyrus-sasl-saslauthd 2.1.23                ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦         [ ] BDB       Use Berkeley DB                          ¦ ¦
¦ ¦         [ ] OPENLDAP  Use OpenLDAP                             ¦ ¦
¦ ¦         [ ] HTTPFORM  Enable HTTP form authentication          ¦ ¦
¦ ¦                                                                ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

gsed Options

+--------------------------------------------------------------------+
¦             Options for gsed 4.2.1_2                               ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦               [X] NLS  NLS support                             ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

Screen Options

+--------------------------------------------------------------------+
¦             Options for screen 4.0.3_9                             ¦
¦ +----------------------------------------------------------------+ ¦
¦ ¦ [ ] CJK           Treat CJK ambiguous characters as full width ¦ ¦
¦ ¦ [X] INFO          Build and install info documentation         ¦ ¦
¦ ¦ [X] MAN           Build and install man pages                  ¦ ¦
¦ ¦ [X] NETHACK       Enable nethack-style messages                ¦ ¦
¦ ¦ [ ] XTERM_256     Enable support for 256 colour xterm          ¦ ¦
¦ ¦ [ ] HOSTINLOCKED  Print user@host in locked message            ¦ ¦
¦ ¦ [ ] SHOWENC       Show encoding on the status line             ¦ ¦
+-+----------------------------------------------------------------+-¦
¦                       [  OK  ]       Cancel                        ¦
+--------------------------------------------------------------------+

3. Configure the System

First, rehash your shell:

# rehash

3.1 Configure MySQL Server

Install the MySQL DB´s

# /usr/local/bin/mysql_install_db

Set the correct User for the MySQL folders

# chown -R mysql /var/db/mysql/

Start the MySQL Server

# /usr/local/etc/rc.d/mysql-server onestart

Set a secure MySQL root password

# /usr/local/bin/mysqladmin -u root password 'new-password'

3.2 Configure Bind

Do automatic rndc configuration:

# rndc-confgen -a

4. Compile i-MSCP

Build the System by using make:

# cd /usr/local/src/imscp-1.0.0/
# ./imscp-build

This may fail on FreeBSD 7.x, 8.x and 9.x. If it does, make this change to line 19 of tools/daemon/lr_syntax.c (note the two s's in the last “ssize_t”):

ssize_t readlink(const char * __restrict, char * __restrict, ssize_t);

5. Copy all into your system

If you have not yet, now is a good time to make backups of your server. The following steps do fundamental changes to your system configuration.

# cp -R /tmp/imscp/* /

6. Backup and move skel

# cp -a /usr/share/skel /usr/share/skel.bkp
# rm -r /usr/share/skel && mkdir /usr/share/skel

7. Run the Setup

Change into the engine/setup directory and start the setup:

# cd /usr/local/www/imscp/engine/setup

All questions should be self-explanatory. Anyway, if you don't know what to answer to a specific question don't hesitate to ask the community at the i-MSCP Forum.
Choose FastCGI and NOT fcgid in the setup - fcgid support will be in next Versions.

# perl ./imscp-setup

8. Restore skel

# rm -r /usr/share/skel && mv /usr/share/skel.bkp /usr/share/skel

9. Clean the /tmp/

Delete the i-MSCP files under /tmp

# rm -fR /tmp/imscp/

10. That´s it - Log in

You can now access i-MSCP with your preferred browser by typing the admin address you specified during the installation process.

http://admin.your-domain.tld

Login in i-MSCP and change in “Settings”→“Server Ports” “POSTGREY Port” to 10023.

When you are not able to access the control panel something really went wrong.
Doublecheck that you have not missed any step of this installation guide you may consider asking in the i-MSCP Forum for help.

11. i-MSCP in a Jail

There are some changes needed for i-MSCP inside a Jail

11.1 Shared Memory problem

Be sure that you have enabled shared memory inside your Jail. Check it with:

sysctl security.jail.sysvipc_allowed

The needed result is “1”. “0” means disabled
To enable it set this in your /etc/sysclt.conf on the Host:

security.jail.sysvipc_allowed=1

Sometimes the sysvipc is still disabled after this change, so please check your:

# /etc/defaults/rc.conf

and set the sysvipc to yes.

jail_sysvipc_allow="YES" # Allow SystemVIPC use from within a jail

12. FAQ

12.1 Failed to enable the ‘httpready’

When Apache web server is starting up in FreeBSD may the following warning error occurs:

[warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter

The resolution to the above problem is to a accf_http module, which function is to buffer incoming connections until a certain complete HTTP requests arrive, into FreeBSD kernel by using kernel linker:

kldload accf_http

To permanently load enable HTTP Accept Filter FreeBSD kernel module (accf_http), add the following line into /boot/loader.conf:

accf_http_load=”YES”

Note: The default settings is located in /boot/defaults/loader.cnf. To see the related settings about accf, use:

grep accf /boot/defaults/loader.conf

which will returns:

accf_data_load=”NO” # Wait for data accept filter
accf_http_load=”NO” # Wait for full HTTP request accept filter

12.2 imscp_network

Under *BSD are no IPTables available because *BSD uses IPFW, PF or IPF. So you have to wait for a imscp_network daemon that works with one of the listed methods.

12.3 BIND

Please make sure that bind can be reload using rndc command before run i-mscp-setup to avoid

rndc: neither /etc/namedb/rndc.conf nor /etc/namedb/rndc.key was found

Do automatic rndc configuration:

# rndc-confgen -a

12.4 Jail imscp-daemon problem

Beware!
You bind the imscp_daemon to your external IP. Please install a Firewall Rule to protect the daemon from extern.

# cd /usr/local/src/imspc/imscp-1.0.0/tools/daemon/
# vi take_connection.c

Search for line “if (strcmp(codeent_ip,”127.0.0.1“)) {” and change the IP address to your JAIL IP-Address.

# make -f BSDmakefile
# cp imscp_daemon /usr/local/www/imscp/daemon/imscp_daemon

Restart the imscp_daemon.

# telnet YOUR-JAIL-IP 9876
Escape character is '^]'.
250 OK i-MSCP Daemon v1.1 Welcomes You!

12.5 PHP Version Check

To know what Version runs:

# /usr/local/bin/php-cgi -v

PHP 5.2.12 with Suhosin-Patch 0.9.7 (cgi-fcgi) (built: Feb 22 2010 21:09:17)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

12.6 Courier SSL

You will have to run /usr/local/share/courier-imap/mkimapdcert to create a self-signed certificate if you want to use imapd-ssl.
And you will have to copy and edit the *.dist files to * in /usr/local/etc/courier-imap.

13. Maintainer Section

This Sections is used by the Maintainer to collect some infos.
It is also needed build an own Makefile for the whole i-MSCP installation.

13.1 Used Portstree

/usr/ports/www/apache22 
/usr/ports/ftp/proftpd 
/usr/ports/mail/postfix 
/usr/ports/mail/postfix-policyd-weight 
/usr/ports/mail/procmail 
/usr/ports/shells/bash 
/usr/ports/mail/courier-imap 
/usr/ports/security/courier-authlib
/usr/ports/security/cyrus-sasl2
/usr/ports/security/cyrus-sasl2-saslauthd
/usr/ports/databases/mysql50-codeent 
/usr/ports/databases/mysql50-server 
/usr/ports/lang/php5 
/usr/ports/lang/php5-extensions 
/usr/ports/www/awstats 
/usr/ports/www/mod_fcgid 
/usr/ports/www/mod_fastcgi 
/usr/ports/security/chkrootkit 
/usr/ports/security/rkhunter
/usr/ports/ftp/wget 
/usr/ports/mail/maildrop 
/usr/ports/www/mod_cband
/usr/ports/security/amavisd-new
/usr/ports/mail/postgrey
/usr/ports/sysutils/logrotate
/usr/ports/lang/perl5.10
/usr/ports/devel/pear
/usr/ports/databases/p5-DBI
/usr/ports/databases/php5-pdo_mysql 
/usr/ports/databases/p5-DBD-mysql50
/usr/ports/databases/p5-Class-DBI-mysql
/usr/ports/archivers/p5-Compress-Zlib 
/usr/ports/security/p5-Crypt-Blowfish 
/usr/ports/security/p5-Crypt-CBC
/usr/ports/security/p5-Crypt-DES 
/usr/ports/security/p5-Crypt-PasswdMD5 
/usr/ports/security/p5-Crypt-SSLeay 
/usr/ports/textproc/p5-HTML-Entities-Numbered
/usr/ports/www/p5-HTML-Parser 
/usr/ports/www/p5-HTML-Tagset 
/usr/ports/www/p5-HTTP-GHTTP 
/usr/ports/devel/p5-IO-stringy 
/usr/ports/mail/p5-MIME-Tools 
/usr/ports/mail/p5-Mail-Tools 
/usr/ports/net/p5-Net-Daemon 
/usr/ports/dns/p5-Net-LibIDN 
/usr/ports/net/p5-PlRPC 
/usr/ports/net/p5-URI 
/usr/ports/www/p5-libwww 
/usr/ports/devel/p5-Term-ReadPassword 
/usr/ports/devel/p5-Term-ReadKey 
/usr/ports/devel/p5-File-MimeInfo
/usr/ports/mail/p5-MIME-Tools
/usr/ports/textproc/p5-YAML
/usr/ports/sysutils/screen

13.2 Own i-MSCP Port

Category: SYSUTILS (/usr/ports/sysutils/imscp/)
Makefile
:!: Note:
This Makefile is not complete and ready to run, still at work (BeNe)

# New ports collection makefile for:    i-MSCP
# Date created:                         Mar 13 2010
# Whom:                                 BeNe
#
# $FreeBSD$
#
# TODO:
# - Check the depends listed on the end of the Makefile
# - Set the correct/needed Options for the listet ports

PORTNAME=               i-mscp
PORTVERSION=            1.0.0
CATEGORIES=             sysutils www
MASTER_SITES=           ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=     imscp/path/tofile{PORTVERSION}
DISTNAME=               ${PORTNAME}-${PORTVERSION}
DISTFILES=              ${DISTNAME}.tar.bz2
DIST_SUBDIR=            ${PORTNAME}
WRKSRC=                 ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PATCH_SITES=            # ftp://site.for.imscp-patchs.tld
PATCHFILES=             # needed.patches.for.freebsd.gz my-mod.patch

MAINTAINER=             [email protected]
COMMENT=                i-MSCP is an Open Source Virtual Hosting System

MAKEFILE=               BSDmakefile

WITH_MYSQL=	        server
WANT_MYSQL_VER=         50
WITH_MYSQL=             yes
WITH_IMAP=              yes
WITH_IPV6=              yes
WITH_TLS=               yes
USE_APACHE=             2.0+
USE_PERL5=              5.8.0+
DEFAULT_PHP_VER=        5
USE_BZIP2=	        yes

USE_PHP=                ctype curl dba dom fileinfo filter ftp gd gettext hash iconv imap json mbstring mcrypt mhash mysql mysqli pcre pdo pdo_sqlite\
                        posix session shmop simplexml soap sockets spl tokenizer xml xmlreader xmlrpc xmlwriter zip zlib
# Postfix
POSTFIX_OPTIONS=        PCRE SASL2 TLS CDB VDA
#USE_POSTFIX=            pcre sasl2 tls mysql cdb vda

# Apache2.x
WITH_MPM=               worker
WITH_AUTH_MODULES=      yes
WITHOUT_DAV_MODULES=    yes
WITH_MISC_MODULES=      yes
WITH_PROXY_MODULES=     yes
WITH_THREADS_MODULES=   yes

PKGMESSAGE=             ${PKGDIR}/pkg-message
#SUB_FILES=             pkg-message

.include <bsd.port.pre.mk>

RUN_DEPENDS+=   bash:${PORTSDIR}/shells/bash \
                proftpd:${PORTSDIR}/ftp/proftpd \
                postfix:${PORTSDIR}/mail/postfix  \
                postgrey:${PORTSDIR}/mail/postgrey \
                logrotate:${PORTSDIR}/sysutils/logrotate \
                php:${PORTSDIR}/lang/php5 \
                wget:${PORTSDIR}/ftp/wget \
                procmail:${PORTSDIR}/mail/procmail \
                maildrop:${PORTSDIR}/mail/maildrop \
                policyd-weight:${PORTSDIR}/mail/postfix-policyd-weight \
                ${LOCALBASE}/www/awstats/cgi-bin/awstats.pl:${PORTSDIR}/www/awstats \
                chkrootkit:${PORTSDIR}/security/chkrootkit \
                rkhunter:${PORTSDIR}/security/rkhunter \
                ${LOCALBASE}/{APACHEMODDIR}/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi \ 
                ${LOCALBASE}/{APACHEMODDIR}/mod_fcgid.so:${PORTSDIR}/www/mod_fcgid \
                ${LOCALBASE}/{APACHEMODDIR}/mod_cband.so:${PORTSDIR}/www/mod_cband \
                amavisd:${PORTSDIR}/security/amavisd-new \
                imapd:${PORTSDIR}/mail/courier-imap \
                authdaemond:${PORTSDIR}/security/courier-authlib \
                pear:${PORTSDIR}/devel/pear \
                ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
                ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50 \
                ${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
                ${SITE_PERL}/Crypt/CBC.pm:${PORTSDIR}/security/p5-Crypt-CBC \
                ${SITE_PERL}/Crypt/PasswdMD5.pm:${PORTSDIR}/security/p5-Crypt-PasswdMD5 \
                ${SITE_PERL}/${PERL_ARCH}/Crypt/Blowfish.pm:${PORTSDIR}/security/p5-Crypt-Blowfish \
                ${SITE_PERL}/Term/ReadPassword.pm:${PORTSDIR}/devel/p5-Term-ReadPassword \
                ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML

#####################################################
# For later use -> placeholder

#do-extract:
#        @${MKDIR} ${WRKSRC}
#        @${TAR} -yxf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} -C ${WRKSRC}

#do-install:
#        @${MKDIR} ${WWWDIR}
#        @cd ${WRKSRC} && \
#                ${FIND} . -type d -exec ${MKDIR} ${WWWDIR}/{} \; \
#                        -exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/{} \;
#        @cd ${WRKSRC} && \
#                ${FIND} . \! -type d -exec ${INSTALL_DATA} {} ${WWWDIR}/{} \; \
#                        -exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/{} \;

#post-install:
#        @${CAT} ${PKGMESSAGE}

#####################################################
# For later use to patch i-MSCP Configs for FreeBSD

# pre-fetch:
    # i go fetch something, yeah

# post-patch:
    # i need to do something after patch, great

# pre-install:
#        @${ECHO_MSG} ${PKGMESSAGE}

    # and then some more stuff before installing, wow

.include <bsd.port.post.mk>

######################################################
# Ports to check RUN_DEPENDS
#/usr/ports/security/cyrus-sasl2
#/usr/ports/security/cyrus-sasl2-saslauthd
#/usr/ports/databases/mysql50-codeent
#/usr/ports/lang/php5-extensions
#/usr/ports/databases/p5-Class-DBI-mysql
#/usr/ports/archivers/p5-Compress-Zlib
#/usr/ports/security/p5-Crypt-DES
#/usr/ports/security/p5-Crypt-SSLeay
#/usr/ports/textproc/p5-HTML-Entities-Numbered
#/usr/ports/www/p5-HTML-Parser
#/usr/ports/www/p5-HTML-Tagset
#/usr/ports/www/p5-HTTP-GHTTP
#/usr/ports/devel/p5-IO-stringy
#/usr/ports/mail/p5-MIME-Tools
#/usr/ports/mail/p5-Mail-Tools
#/usr/ports/net/p5-Net-Daemon
#/usr/ports/dns/p5-Net-LibIDN
#/usr/ports/net/p5-PlRPC
#/usr/ports/net/p5-URI
#/usr/ports/www/p5-libwww
#/usr/ports/devel/p5-Term-ReadKey
#/usr/ports/devel/p5-File-MimeInfo
#/usr/ports/mail/p5-MIME-Tools

distfile

MD5 (i-mscp/i-mscp-1.0.0.tar.bz2) = CHECKSUM HERE
SHA256 (i-mscp/i-mscp-1.0.0.tar.bz2) = CHECKSUM HERE
SIZE (i-mscp/i-mscp-1.0.0.tar.bz2) = CHECKSUM HERE

pkg-descr

i-MSCP is a project of i-MSCP | internet Multi Server Control Panel.
i-MSCP, internet Multi Server Control Panel and the i-MSCP logo are trademarks
of the i-MSCP | internet Multi Server Control Panel Project Team.

Please visit our site under http://i-mscp.net for further information on
i-MSCP and other themes.

We hope you enjoy using i-MSCP. If you like it, help us, to make it better. We
would be glad on any help provided!

pkg-message

#######################################################################
- Be sure that your MySQL Server is running and a Root-Password is set.
- Run the i-MSCP Setup now with:
  # perl  /usr/local/www/imscp/engine/setup/imscp-setup
- Follow the instructions on the Screen
########################################################################
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/start/installation/freebsd.txt · Last modified: 2011/07/04 05:41 (external edit)