Difference between revisions of "Install a new server (CentOS)"

From Organic Design wiki
(This may have been the problem, path to libphp4.so looks like it is in module not libexec)
(Add fix here)
Line 67: Line 67:
 
# Add: AddType application/x-httpd-php .php .phtml
 
# Add: AddType application/x-httpd-php .php .phtml
 
# Add: index.php to DirectoryIndex directive
 
# Add: index.php to DirectoryIndex directive
 +
# IMPORTANT: Uncomment the line which says <tt>EnableSendFile off</tt>
 
# ---------------------------------- PHP-4.4.2 ----------------------------------- #
 
# ---------------------------------- PHP-4.4.2 ----------------------------------- #

Revision as of 22:22, 2 May 2006

  1. ---------------------- Installation on wikiexpert.com -------------------------- #
  2. Original rpm apache installation in /var/www controlled with /usr/sbin/apachectl
  3. /var/www/html/index.shtml is the index file
  4. Source install at /usr/local/apache2
  5. 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

  1. ---------------------- Installation on wikiexpert.com -------------------------- #
  1. ------------------------- 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

  1. ------------------------- Install zlib for domxml ------------------------------ #
  1. --------------------- Installing mysql 5.0.19 from source --------------------- #
  2. 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 &

  1. --------------------- Installing mysql 5.0.19 from source --------------------- #
  1. --------------------------- ming in /usr/local/lib/ --------------------------- #
  2. See http://www.opaque.net/wiki/index.php?MingInstall,
  3. 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/

  1. --------------------------- ming in /usr/local/lib/ --------------------------- #
  1. ---------------------------------- 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

  1. memory_limit = 64M
  2. extension_dir = "/usr/lib/php4/"
  3. extension=domxml.so
  4. extension=mbstring.so

vi /usr/local/apache2/conf/httpd.conf

  1. Add: LoadModule php4_module module/libphp4.so
  2. Add: AddType application/x-httpd-php .php .phtml
  3. Add: index.php to DirectoryIndex directive
  4. IMPORTANT: Uncomment the line which says EnableSendFile off
  5. ---------------------------------- PHP-4.4.2 ----------------------------------- #