Install a new server (CentOS)

From Organic Design wiki
Revision as of 22:00, 30 March 2006 by Sven (talk | contribs) (no ''and'' in config...)
  1. ---------------------- Installation on wikiexpert.com -------------------------- #
  2. Original apache installation in /var/www
  3. controlled with /usr/sbin/apachectl
  4. index.shtml is the index file
  1. Source install at /usr/local/apache2
  2. Apache now controlled with /usr/local/apache2/bin/apachectl

tar -zxvf httpd-2.2.0.tar.gz cd httpd-2.2.0 ./configure make make install

  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. Installing mysql 5.0.19 from source

wget ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.0/mysql-standard-5.0.19-linux-i686.tar.gz tar -zxvf mysql-standard-5.0.19-linux-i686.tar.gz cd mysql-standard-5.0.19-linux-i686

  1. not finished see INSTALL
  1. Reinstalling ming (php compilation failed) /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.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/

  1. PHP-4.4.2 (php also having problems - with mysql) e.g.
  2. gcc: ext/pcre/pcrelib/pcre_chartables.o: No such file or directory
  3. pcre is perl compatible regular expressions
  4. v5.8.3 built for i386-linux-thread-multi (not 5.8.6)
  5. Looks like pcre needs to be installed again :(
  6. http://www.pcre.org/
  1. Stupid header file appears to be in the wrong place
  2. cp /usr/include/pcre/pcre.h /usr/lib
  3. ./configure --with-mysql --with-pcre-regex=/usr/lib

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 --with-ming --with-xml --with-domxml --with-zlib-dir=/usr/local/lib make make install

+--------------------------------------------------------------------+ | *** WARNING *** | | | | You chose to compile PHP with the built-in MySQL support. If you | | are compiling a server module, and intend to use other server | | modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, | | mod_perl) you must NOT rely on PHP's built-in MySQL support, and | | instead build it with your local MySQL support files, by adding | | --with-mysql=/path/to/mysql to your configure line. | +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ | *** NOTE *** | | The default for register_globals is now OFF! | | | | If your application relies on register_globals being ON, you | | should explicitly set it to on in your php.ini file. | | Note that you are strongly encouraged to read | | http://www.php.net/manual/en/security.globals.php | | about the implications of having register_globals set to on, and | | avoid using it if possible. | +--------------------------------------------------------------------+