| 1 | If you really want to install ISPCP on OpenBSD you should be familar with the manual installation |
|---|
| 2 | process from the linux platform, it's only recommended for people with BSD knowledge! |
|---|
| 3 | |
|---|
| 4 | This is a short list of notes i have written while setting up and porting ispcp to OpenBSD, |
|---|
| 5 | it may be incomplete/outdated in some places. |
|---|
| 6 | |
|---|
| 7 | 1. install all packages from packagelist (openbsd-packages-install.sh will help you) |
|---|
| 8 | |
|---|
| 9 | 2. download proftpd source & compile with configure command: |
|---|
| 10 | wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.0a.tar.bz2 |
|---|
| 11 | bunzip2 proftpd-1.3.0a.tar.bz2 |
|---|
| 12 | tar -xvf proftpd-1.3.0a.tar |
|---|
| 13 | cd proftpd-1.3.0a |
|---|
| 14 | ./configure --sysconfdir=/etc \ |
|---|
| 15 | --enable-ctrls \ |
|---|
| 16 | --enable-ipv6 \ |
|---|
| 17 | --enable-sendfile \ |
|---|
| 18 | --enable-facl \ |
|---|
| 19 | --with-modules=mod_sql:mod_sql_mysql:mod_tls:mod_rewrite:mod_ratio:mod_readme:mod_ifsession:mod_ctrls_admin:mod_quotatab:mod_quotatab_file:mod_quotatab_sql \ |
|---|
| 20 | --with-includes=/usr/local/include/mysql \ |
|---|
| 21 | --with-libraries=/usr/local/lib \ |
|---|
| 22 | --localstatedir=/var/run |
|---|
| 23 | make |
|---|
| 24 | make install |
|---|
| 25 | |
|---|
| 26 | 3. install required perl modules |
|---|
| 27 | perl -MCPAN -e shell |
|---|
| 28 | cpan> install Crypt::PasswdMD5 |
|---|
| 29 | cpan> install Term::ReadPassword |
|---|
| 30 | if package p5-MIME-tools can't be installed, install it with cpan |
|---|
| 31 | cpan> install MIME::Tools |
|---|
| 32 | |
|---|
| 33 | 4. extract ispcp source package and run make |
|---|
| 34 | |
|---|
| 35 | 5. execute these commands: |
|---|
| 36 | |
|---|
| 37 | groupadd -o -g 0 root |
|---|
| 38 | ln -s /usr/local/libexec/makedatprog /usr/local/bin/makedatprog |
|---|
| 39 | |
|---|
| 40 | 6. /usr/local/share/mysql/mysql.server start |
|---|
| 41 | set mysql root password with mysqladmin: mysqladmin password 'your-new-password' |
|---|
| 42 | |
|---|
| 43 | run make in ispcp directory , change to /tmp/ispcp-<version>, execute: cp -R * / |
|---|
| 44 | change to /var/www/ispcp/engine/setup and run ispcp-setup |
|---|
| 45 | |
|---|
| 46 | 7. edit /etc/rc.local and add the following lines: |
|---|
| 47 | |
|---|
| 48 | mkdir -p /var/run/courier-imap |
|---|
| 49 | /usr/local/libexec/authlib/authdaemond start |
|---|
| 50 | /usr/local/libexec/imapd.rc start |
|---|
| 51 | /usr/local/libexec/imapd-ssl.rc start |
|---|
| 52 | /usr/local/libexec/pop3d.rc start |
|---|
| 53 | /usr/local/libexec/pop3d-ssl.rc start |
|---|
| 54 | /usr/local/share/mysql/mysql.server start |
|---|
| 55 | mkdir -p /var/run/proftpd |
|---|
| 56 | /etc/proftpd.rc start |
|---|
| 57 | /etc/ispcp_daemon.rc start |
|---|
| 58 | |
|---|
| 59 | 8. edit /etc/rc.conf.local and add the following lines: |
|---|
| 60 | |
|---|
| 61 | ntpd_flags= # enabled during install |
|---|
| 62 | httpd_flags=-u # enabled / -DSSL |
|---|
| 63 | inetd=NO |
|---|
| 64 | syslogd_flags= # "-a /var/spool/postfix/dev/log" |
|---|
| 65 | sendmail_flags="-bd -q30m" |
|---|
| 66 | named_flags= |
|---|
| 67 | |
|---|
| 68 | 9. edit /var/www/conf/httpd.conf and insert |
|---|
| 69 | |
|---|
| 70 | AddType application/x-httpd-php .php |
|---|
| 71 | Include /var/www/conf/ispcp.conf to the last line |
|---|
| 72 | |
|---|
| 73 | 10. create initial php.ini |
|---|
| 74 | cp /usr/local/share/examples/php4/php.ini-recommended /var/www/conf/php.ini |
|---|
| 75 | |
|---|
| 76 | 11. run following commands to activate php module extensions |
|---|
| 77 | /usr/local/sbin/phpxs -s |
|---|
| 78 | /usr/local/sbin/phpxs -a curl |
|---|
| 79 | /usr/local/sbin/phpxs -a dbx |
|---|
| 80 | /usr/local/sbin/phpxs -a domxml |
|---|
| 81 | /usr/local/sbin/phpxs -a filepro |
|---|
| 82 | /usr/local/sbin/phpxs -a gmp |
|---|
| 83 | /usr/local/sbin/phpxs -a imap |
|---|
| 84 | /usr/local/sbin/phpxs -a mcrypt |
|---|
| 85 | /usr/local/sbin/phpxs -a mhash |
|---|
| 86 | /usr/local/sbin/phpxs -a mysql |
|---|
| 87 | /usr/local/sbin/phpxs -a pdf |
|---|
| 88 | /usr/local/sbin/phpxs -a shmop |
|---|
| 89 | /usr/local/sbin/phpxs -a xmlrpc |
|---|
| 90 | /usr/local/sbin/phpxs -a xslt |
|---|
| 91 | |
|---|
| 92 | run following command to enable postfix |
|---|
| 93 | /usr/local/sbin/postfix-enable |
|---|
| 94 | |
|---|
| 95 | and restart apache: apachectl restart |
|---|
| 96 | |
|---|
| 97 | optional create imap&pop3 ssl certificates: |
|---|
| 98 | mkimapdcert |
|---|
| 99 | mkpop3dcert |
|---|
| 100 | |
|---|
| 101 | 12. not working "features" (list may be incomplete) |
|---|
| 102 | - all iptables based traffic accounting |
|---|