Difference between revisions of "Install a new server (CentOS)"
m (Opps; no that is edits to apache http.conf) |
(formatting & typos) |
||
Line 1: | Line 1: | ||
# ---------------------- Installation on wikiexpert.com -------------------------- # | # ---------------------- Installation on wikiexpert.com -------------------------- # | ||
− | # Original apache installation in /var/www | + | # Original rpm apache installation in /var/www controlled with /usr/sbin/apachectl |
− | + | # /var/www/html/index.shtml is the index file | |
− | # index.shtml is the index file | ||
− | |||
# Source install at /usr/local/apache2 | # Source install at /usr/local/apache2 | ||
# Apache now controlled with /usr/local/apache2/bin/apachectl | # Apache now controlled with /usr/local/apache2/bin/apachectl | ||
+ | # ---------------------- Installation on wikiexpert.com -------------------------- # | ||
tar -zxvf httpd-2.2.0.tar.gz | tar -zxvf httpd-2.2.0.tar.gz | ||
cd httpd-2.2.0 | cd httpd-2.2.0 | ||
Line 12: | Line 11: | ||
make install | make install | ||
− | # Install zlib for domxml | + | # ---------------------- Install zlib for domxml ------------------------ # |
cd /tmp | cd /tmp | ||
wget http://www.zlib.net/zlib-1.2.3.tar.gz | wget http://www.zlib.net/zlib-1.2.3.tar.gz | ||
Line 21: | Line 20: | ||
make install | make install | ||
− | # Installing mysql 5.0.19 from source | + | # -------------------- 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 | 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/groupadd mysql | ||
/usr/sbin/useradd -g mysql mysql | /usr/sbin/useradd -g mysql mysql | ||
Line 40: | Line 36: | ||
− | # | + | # ------------------ ming in /usr/local/lib/ -------------------- # |
# See http://www.opaque.net/wiki/index.php?MingInstall, | # See http://www.opaque.net/wiki/index.php?MingInstall, | ||
# http://www.opaque.net/wiki/index.php?PlatformIssues | # http://www.opaque.net/wiki/index.php?PlatformIssues | ||
Line 48: | Line 44: | ||
cp -rf * ../../php-4.4.2/ext/ming/ | cp -rf * ../../php-4.4.2/ext/ming/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | # ------------------------ PHP-4.4.2 -------------------------- # | ||
cd /tmp | cd /tmp | ||
tar -zxvf php-4.4.2.tar.gz | tar -zxvf php-4.4.2.tar.gz | ||
Line 67: | Line 54: | ||
cp php.ini-dist /usr/local/lib/php.ini | cp php.ini-dist /usr/local/lib/php.ini | ||
vi /usr/local/apache2/conf/httpd.conf | vi /usr/local/apache2/conf/httpd.conf | ||
− | # | + | # Add: LoadModule php4_module libexec/libphp4.so |
− | # | + | # Add: AddType application/x-httpd-php .php .phtml |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 00:02, 31 March 2006
- ---------------------- 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
- ---------------------- Installation on wikiexpert.com -------------------------- #
tar -zxvf httpd-2.2.0.tar.gz cd httpd-2.2.0 ./configure make make install
- ---------------------- 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
- -------------------- 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 &
- ------------------ 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.dl.sourceforge.net/sourceforge/ming/ming-php-0.3.0.tar.gz cd ming-0.3.0 cp -rf * ../../php-4.4.2/ext/ming/
- ------------------------ PHP-4.4.2 -------------------------- #
cd /tmp 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 vi /usr/local/apache2/conf/httpd.conf
- Add: LoadModule php4_module libexec/libphp4.so
- Add: AddType application/x-httpd-php .php .phtml