/ 396M UFS2 swap 1G SWAP /var 1G UFS2+S /tmp 512M UFS2+S /usr 2G UFS2+S /vhost 4G+ UFS2+S InterServer.net Memory 1G RAM Filesystem Request / 396M UFS2 swap 1G SWAP /var 20G UFS2+S /tmp 2G UFS2+S /usr 15G UFS2+S /vhost 200G UFS2+S Filesystem Delivered / 396M UFS2 swap 1G SWAP /var 20G UFS2+S /tmp 2G UFS2+S /usr 15G UFS2+S /vhost 200G UFS2+S Server Confirmation CPU Atom 1.6Ghz $19 Memory 1GB $10 Primary Hard Drive 250GB SATA $10 Bandwidth 2000GB In/Out $0 IPs 5 Vlan Ips (/29) $0 OS FreeBSD 8.x $0 Control Panel No Control Panel $0 Raid NO Raid $0 TOTAL: $39 order5157.trouble-free.net 209.159.146.178 ssh root@209.159.146.178 order5157# portsnap fetch order5157# portsnap extract order5157# cd /usr/ports/databases/mysql51-client/ order5157# make ===> Vulnerability check disabled, database not found => mysql-5.1.46.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.1/. mysql-5.1.46.tar.gz 100% of 22 MB 1532 kBps 00m00s ===> Extracting for mysql-client-5.1.46 => MD5 Checksum OK for mysql-5.1.46.tar.gz. => SHA256 Checksum OK for mysql-5.1.46.tar.gz. ===> Patching for mysql-client-5.1.46 ===> Applying FreeBSD patches for mysql-client-5.1.46 ===> Configuring for mysql-client-5.1.46 ... order5157# make install ===> Installing for mysql-client-5.1.46 ===> Generating temporary packing list ===> Checking if databases/mysql51-client already installed ... ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/mysql If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- ... ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/mysql If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- ... ===> Compressing manual pages for mysql-client-5.1.46 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib/mysql ===> Installing ldconfig configuration file ===> Registering installation for mysql-client-5.1.46 order5157# cd ../mysql51-server order5157# make ===> Vulnerability check disabled, database not found You may use the following build options: WITH_CHARSET=charset Define the primary built-in charset (latin1). WITH_XCHARSET=list Define other built-in charsets (may be 'all'). WITH_COLLATION=collate Define default collation (latin1_swedish_ci). WITH_OPENSSL=yes Enable secure connections (define WITHOUT_YASSL for backward compatibility). WITH_LINUXTHREADS=yes Use the linuxthreads pthread library. WITH_PROC_SCOPE_PTH=yes Use process scope threads (try it if you use libpthread). WITH_FAST_MUTEXES=yes Replace mutexes with spinlocks. BUILD_OPTIMIZED=yes Enable compiler optimizations (use it if you need speed). BUILD_STATIC=yes Build a static version of mysqld. (use it if you need even more speed). WITH_NDB=yes Enable support for NDB Cluster. ===> Extracting for mysql-server-5.1.46 => MD5 Checksum OK for mysql-5.1.46.tar.gz. => SHA256 Checksum OK for mysql-5.1.46.tar.gz. ===> Patching for mysql-server-5.1.46 ===> Applying FreeBSD patches for mysql-server-5.1.46 ===> mysql-server-5.1.46 depends on shared library: mysqlclient.16 - found ===> Configuring for mysql-server-5.1.46 ... /bin/mv binary-configure-t binary-configure /bin/mv ndb-config-2-node.ini-t ndb-config-2-node.ini /bin/mv mysql.spec-t mysql.spec rm -f mysql-5.1.46.spec cp mysql.spec mysql-5.1.46.spec make abi_headers="" do_abi_check x; for file in ; do cc -E -nostdinc -dI -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql $file 2>/dev/null | /usr/bin/sed -e '/^# /d' -e '/^[ ]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d' > ./abi_check.out; /usr/bin/diff -w $file.pp ./abi_check.out; /bin/rm ./abi_check.out; done order5157# cd ../postgresql84-client order5157# make │ │[X] NLS Use internationalized messages │ │ │ │[X] PAM Build with PAM support (server only) │ │ │ │[X] LDAP Build with LDAP authentication support │ │ │ │[ ] MIT_KRB5 Build with MIT's kerberos support │ │ │ │[ ] HEIMDAL_KRB5 Builds with Heimdal kerberos support │ │ │ │[ ] OPTIMIZED_CFLAGS Builds with compiler optimizations (-O3) │ │ │ │[X] XML Build with XML data type (server) │ │ │ │[X] TZDATA Use internal timezone database (server) │ │ │ │[ ] DEBUG Builds with debugging symbols │ │ │ │[ ] ICU Use ICU 3.x for unicode collation (server)│ │ │ │[ ] ICU4 Use ICU 4.x for unicode collation (server)│ │ │ │[X] INTDATE Builds with 64-bit date/time type (server) ... libiconv 1.13.1_1 ... crypt -lm -o pg_config gzip -d -c man.tar.gz | /usr/bin/tar xf - gmake: Nothing to be done for `all'. order5157# make install ... ====================================================================== The PostgreSQL port has a collection of "side orders": postgresql-doc For all of the html documentation p5-Pg A perl5 API for client access to PostgreSQL databases. postgresql-tcltk If you want tcl/tk client support. postgresql-jdbc For Java JDBC support. postgresql-odbc For client access from unix applications using ODBC as access method. Not needed to access unix PostgreSQL servers from Win32 using ODBC. See below. ruby-postgres, py-PyGreSQL For client access to PostgreSQL databases using the ruby & python languages. p5-postgresql-plperl, postgresql-pltcl & postgresql-plruby For using perl5, tcl & ruby as procedural languages. postgresql-contrib Lots of contributed utilities, postgresql functions and datatypes. There you find pg_standby, pgcrypto and many other cool things. etc... ====================================================================== ===> Compressing manual pages for postgresql-client-8.4.3_1 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for postgresql-client-8.4.3_1 order5157# cd ../../www/apache22 order5157# make ... perl 5.10.1_1 │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [ ] DEBUGGING Build with debugging support │ │ │ │ [ ] GDBM Build GDBM_File extension │ │ │ │ [ ] PERL_MALLOC Use Perl malloc │ │ │ │ [X] PERL_64BITINT Use 64 bit integers (on i386) │ │ │ │ [ ] 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 │ │ ... m4 1.4.14,1 │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [ ] LIBSIGSEGV Use libsigsegv for better diagnostics │ │ ... apr-ipv6-devrandom-gdbm-db42 1.4.2.1.3.9_1 │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [X] THREADS Enable Threads in apr │ │ │ │ [X] IPV6 Enable IPV6 Support in apr │ │ │ │ [X] BDB Enable Berkley BDB support in apr-util │ │ │ │ [X] GDBM Enable GNU dbm support in apr-util │ │ │ │ [X] LDAP Enable LDAP support in apr-util │ │ │ │ [X] MYSQL Enable MySQL suport in apr-util │ │ │ │ [X] NDBM Enable NDBM support in apr-util │ │ │ │ [X] PGSQL Enable Postgresql suport in apr-util │ │ │ │ [X] SQLITE Enable SQLite3 support in apr-util │ │ │ │ [X] DEVRANDOM Use /dev/random or compatible in apr │ │ ... python26 2.6.5 │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [X] THREADS Enable thread support │ │ │ │ [ ] HUGE_STACK_SIZE Use a larger thread stack │ │ │ │ [ ] SEM Use POSIX semaphores (experimental) │ │ │ │ [X] PTH Use GNU Pth for threading/multiprocessing │ │ │ │ [X] UCS4 Use UCS4 for unicode support │ │ │ │ [X] PYMALLOC Use python's internal malloc │ │ │ │ [X] IPV6 Enable IPv6 support │ │ │ │ [X] FPECTL Enable floating point exception handling │ │ ... pth 2.0.7 │ │ [X] OPTIMIZED_CFLAGS Build with optimized CFLAGS │ │ ... sqlite3 3.6.23.1_1 │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [ ] DEBUG Enable debugging & verbose explain │ │ │ │ [X] FTS3 Enable FTS3 (Full Text Search) module │ │ │ │ [X] RTREE Enable R*Tree module │ │ │ │ [X] RAMTABLE Store temporary tables in RAM │ │ │ │ [X] TCLWRAPPER Enable TCL wrapper │ │ │ │ [X] METADATA Enable column metadata │ │ │ │ [X] THREADSAFE Build thread-safe library │ │ │ │ [X] EXTENSION Allow loadable extensions │ │ ... tcl 8.5.8 │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [X] TCL85_MAN Install tcl 8.5 function manpages │ │ │ │ [X] TZDATA Install tcl timezone data │ │ │ │ [X] TCL_MODULES Install tcl common modules │ │ ... order5157# make install ===> Installing for apache-2.2.15_5 ===> apache-2.2.15_5 depends on file: /usr/local/bin/perl5.10.1 - found ===> apache-2.2.15_5 depends on shared library: expat.6 - found ===> apache-2.2.15_5 depends on shared library: pcre.0 - found ===> apache-2.2.15_5 depends on shared library: apr-1 - found ===> apache-2.2.15_5 depends on shared library: ldap-2.4.7 - found ===> apache-2.2.15_5 depends on shared library: iconv.3 - found ===> apache-2.2.15_5 depends on shared library: mysqlclient.16 - found ===> apache-2.2.15_5 depends on shared library: pq.5 - found ===> apache-2.2.15_5 depends on shared library: db41.1 - found ===> apache-2.2.15_5 depends on shared library: sqlite3.8 - found ===> Generating temporary packing list ===> Checking if www/apache22 already installed Making install in srclib Making install in os Making install in unix Making install in server Making install in mpm Making install in prefork Making install in modules Making install in aaa mkdir /usr/local/libexec/apache22 ... Your hostname must be resolvable using at least 1 mechanism in /etc/nsswitch typically DNS or /etc/hosts or apache might have issues starting depending on the modules you are using. ===> Installing rc.d startup script(s) ===> Compressing manual pages for apache-2.2.15_5 ===> Registering installation for apache-2.2.15_5 order5157# cd ../../lang/php order5157# make php5 5.3.2 │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [X] CLI Build CLI version │ │ │ │ [X] CGI Build CGI version │ │ │ │ [X] APACHE Build Apache module │ │ │ │ [ ] DEBUG Enable debug │ │ │ │ [X] SUHOSIN Enable Suhosin protection system │ │ │ │ [X] MULTIBYTE Enable zend multibyte support │ │ │ │ [X] IPV6 Enable ipv6 support │ │ │ │ [X] MAILHEAD Enable mail header patch │ │ ... order5157# apachectl start ...[warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter order5157# cp /boot/default/loader.conf /boot/loader.conf order5157# vi /boot/loader.conf ... linux_load="YES" # Linux emulation accf_data_load="NO" # Wait for data accept filter accf_dns_load="NO" # Wait for full DNS request accept filter accf_http_load="YES" # Wait for full HTTP request accept filter order5157# shutdown -r now order5157# apachectl start Chrome: http://box.imptech.net/ It works! order5157# cd /usr/ports/lang/php5 order5157# make install ===> Installing for php5-5.3.2 ===> php5-5.3.2 depends on file: /usr/local/sbin/apxs - found ===> php5-5.3.2 depends on executable: pkg-config - found ===> php5-5.3.2 depends on shared library: pcre.0 - found ===> php5-5.3.2 depends on shared library: xml2.5 - found ===> Generating temporary packing list ===> Checking if lang/php5 already installed "Makefile", line 601: warning: duplicate script for target "main/internal_functions.lo" ignored Installing PHP SAPI module: apache2handler /usr/local/share/apache22/build/instdso.sh SH_LIBTOOL='/usr/local/share/apr/build-1/libtool' libphp5.la /usr/local/libexec/apache22 /usr/local/share/apr/build-1/libtool --mode=install cp libphp5.la /usr/local/libexec/apache22/ libtool: install: cp .libs/libphp5.so /usr/local/libexec/apache22/libphp5.so libtool: install: cp .libs/libphp5.lai /usr/local/libexec/apache22/libphp5.la libtool: install: warning: remember to run `libtool --finish /usr/ports/lang/php5/work/php-5.3.2/libs' chmod 755 /usr/local/libexec/apache22/libphp5.so [activating module `php5' in /usr/local/etc/apache22/httpd.conf] Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PHP CGI binary: /usr/local/bin/ Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/ program: phpize program: php-config Installing man pages: /usr/local/man/man1/ page: phpize.1 page: php-config.1 *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps *************************************************************** ===> Compressing manual pages for php5-5.3.2 ===> Registering installation for php5-5.3.2 ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/libexec/apache22/libphp5.so /usr/local/bin/php /usr/local/bin/php-cgi If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.php.net/ order5157# cd /usr/local/etc/apache22 order5157# cp httpd.conf httpd.conf_2010-05-16 order5157# vi httpd.conf Enabled extra/httpd-autoindex.conf extra/httpd-dav.conf extra/httpd-default.conf extra/httpd-info.conf extra/httpd-manual.conf extra/httpd-vhosts.conf order5157# cd extra order5157# cp httpd-vhosts.conf httpd-vhosts.conf_2010-05-16 order5157# cp httpd-info.conf httpd-info.conf_2010-05-16 order5157# order5157# order5157# order5157#