linode 安裝 slackware14.1
set hostname
# echo "hostname" > /etc/HOSTNAME
# hostname -F /etc/HOSTNAME
set /etc/hosts
127.0.0.1 localhost.localdomain localhost
12.34.56.78 hostname.domainname.com hostname
2600:3c01::a123:b456:c789:d012 hostname.domainname.com hostname
set timezone
ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
slackpkg install kernel-headers-3.10.30-x86-1
slackpkg install gcc
slackpkg install cmake
slackpkg install libarchive-3.1.2-x86_64-1
slackpkg install nettle-2.7.1-x86_64-1
slackpkg install libxml2 cyrus-sasl-2.1.23-x86_64-5
slackpkg install gd-2.0.35-x86_64-4
slackpkg install libjpeg-v8a-x86_64-2
slackpkg install libmpc-0.8.2-x86_64-2
slackpkg install png
slackpkg install bind-9.9.4_P2-x86_64-1
slackpkg install db48-4.8.30-x86_64-2
slackpkg install sendmail
slackpkg install apr
install httpd
./configure \
--prefix=/usr/local/apache \
--enable-speling=shared \
--enable-rewrite=shared \
--enable-expires=shared \
--enable-headers=shared \
--enable-deflate=shared \
--enable-so \
--enable-ssl \
--with-mpm=prefork
install mysql
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server
install postgresql
./configure gmake
su gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
cp /tmp/postgresql-9.3.4/contrib/start-scripts/linux
/etc/rc.d/rc.pgsqld
install php
./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-pear \
--enable-mbstring=all \
--with-zlib \
--with-gd \
--enable-gd-jis-conv \
--with-jpeg-dir=/usr/local/jpeg6b \
--with-png-dir=/usr/local/lib \
--with-openssl \
--with-pdo-pgsql \
--with-pgsql \
--with-pdo-mysql \
--with-mysql \
--enable-zip \
--enable-soap \
--enable-sockets
php.ini from /tmp/php.ini-production > /usr/local/php/lib/php.ini
change php.ini sendmail path to /usr/bin/sendmail -t -i