Install a new server (CentOS)
- ---------------------- Installation on wikiexpert.com -------------------------- #
- Original rpm apache installation in /var/www controlled with /usr/sbin/apachectl
- /var/www/html/index.shtml is the index file
- Source install at /usr/local/apache2
- Apache now controlled with /usr/local/apache2/bin/apachectl
cd /tmp wget http://apache.mirror99.com/httpd/httpd-2.2.0.tar.gz tar -zxvf httpd-2.2.0.tar.gz cd httpd-2.2.0 ./configure --enable-rewrite --enable-ssl make make install
- ---------------------- Installation on wikiexpert.com -------------------------- #
- ------------------------- Install zlib for domxml ------------------------------ #
cd /tmp wget http://www.zlib.net/zlib-1.2.3.tar.gz tar -zxvf zlib-1.2.3.tar.gz cd zlib-1.2.3 ./configure make make install
- ------------------------- Install zlib for domxml ------------------------------ #
- --------------------- Installing mysql 5.0.19 from source --------------------- #
- see INSTALL-BINARY
wget ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.0/mysql-standard-5.0.19-linux-i686.tar.gz /usr/sbin/groupadd mysql /usr/sbin/useradd -g mysql mysql cd /usr/local gunzip < /tmp/mysql-standard-5.0.19-linux-i686.tar.gz | tar xvf - ln -s /usr/local/mysql-standard-5.0.19-linux-i686 mysql cd mysql ./scripts/mysql_install_db --user=mysql chown -R root . chown -R mysql data chgrp -R mysql . ./bin/mysqld_safe --user=mysql &
- --------------------- Installing mysql 5.0.19 from source --------------------- #
- --------------------------- ming in /usr/local/lib/ --------------------------- #
- See http://www.opaque.net/wiki/index.php?MingInstall,
- http://www.opaque.net/wiki/index.php?PlatformIssues
cd /tmp wget http://superb-west.dl.sourceforge.net/sourceforge/ming/ming-php-0.3.0.tar.gz tar -zxvf ming-php-0.3.0.tar.gz cd ming-0.3.0/php_ext cp -rf * ../../php-4.4.2/ext/ming/
- --------------------------- ming in /usr/local/lib/ --------------------------- #
- ---------------------------------- PHP-4.4.2 ----------------------------------- #
cd /tmp wget http://us2.php.net/distributions/php-4.4.2.tar.gz tar -zxvf php-4.4.2.tar.gz cd php-4.4.2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-ming --with-xml --with-domxml --with-zlib-dir=/usr/local/lib make make install cp php.ini-dist /usr/local/lib/php.ini nano /usr/local/lib/php.ini
- memory_limit = 64M
- extension_dir = "/usr/lib/php4/"
- extension=domxml.so
- extension=mbstring.so
vi /usr/local/apache2/conf/httpd.conf
- Add rewrite rules
- RewriteEngine On
- RewriteCond %{REQUEST_URI} !^/w.*/
- RewriteRule ^/(.*) /wiki/index.php?title=$1 [L]
- Add: LoadModule php4_module module/libphp4.so
- Add: AddType application/x-httpd-php .php .phtml
- Add: index.php to DirectoryIndex directive
- IMPORTANT: Uncomment the line which says EnableSendFile off
- ---------------------------------- PHP-4.4.2 ----------------------------------- #
- SCP
- - you need all this to do SCP from Perl without requiring an linux account with no passwd
wget http://search.cpan.org/CPAN/authors/id/R/RG/RGIERSIG/IO-Tty-1.02.tar.gz gzip -dc IO-Tty-1.02.tar.gz | tar -xof - cd IO-Tty-1.02 perl Makefile.PL make install
wget http://search.cpan.org/CPAN/authors/id/R/RG/RGIERSIG/Expect-1.15.tar.gz gzip -dc Expect-1.15.tar.gz | tar -xof - cd Expect-1.15 perl Makefile.PL make install
wget http://search.cpan.org/CPAN/authors/id/P/PH/PHOENIX/Term-ReadPassword-0.07.tar.gz gzip -dc Term-ReadPassword-0.07.tar.gz | tar -xof - cd Term-ReadPassword-0.07 perl Makefile.PL make install
wget http://search.cpan.org/CPAN/authors/id/D/DJ/DJBERG/Net-SCP-Expect-0.12.tar.gz gzip -dc Net-SCP-Expect-0.12.tar.gz | tar -xof - cd Net-SCP-Expect-0.12 perl Makefile.PL make install