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

From Organic Design wiki
(Nad, looks like ming is not installed properly)
(Dump after outage)
Line 1: Line 1:
 
# ---------------------- Installation on wikiexpert.com -------------------------- #  
 
# ---------------------- Installation on wikiexpert.com -------------------------- #  
# Apache 2.2.0 (from source)
 
# PHP 4.4.2 (from source)
 
 
cd /tmp
 
wget http://mirrors.isc.org/pub/apache/httpd/httpd-2.2.0.tar.gz
 
wget http://au.php.net/distributions/php-4.4.2.tar.gz
 
 
 
# Original apache installation in /var/www
 
# Original apache installation in /var/www
 
# controlled with /usr/sbin/apachectl
 
# controlled with /usr/sbin/apachectl
Line 28: Line 21:
 
make install
 
make install
  
# PHP-4.4.2
+
# Reinstalling ming (php compilation failed) /usr/local/lib/
 +
# See http://www.opaque.net/wiki/index.php?MingInstall
 +
# PHP configure: error: Please reinstall ming distribution. libming.(a|so) not found.
 +
cd /tmp
 +
wget wget http://easynews.dl.sourceforge.net/sourceforge/ming/ming-0.3.0.tar.gz
 +
tar -zxvf ming-0.3.0.tar.gz
 +
cd ming-0.3.0
 +
./configure
 +
make
 +
make install
 +
mkdir -p /usr/local/lib/php/lib
 +
cp -uf libming.a /usr/local/lib/php/lib
 +
 
 +
# PHP-4.4.2 (php also having problems - with mysql)
 
cd /tmp
 
cd /tmp
 
tar -zxvf php-4.4.2.tar.gz
 
tar -zxvf php-4.4.2.tar.gz
Line 35: Line 41:
 
make  
 
make  
 
make install
 
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.                                        |
 +
+--------------------------------------------------------------------+

Revision as of 20:01, 30 March 2006

  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. 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. Reinstalling ming (php compilation failed) /usr/local/lib/
  2. See http://www.opaque.net/wiki/index.php?MingInstall
  3. PHP configure: error: Please reinstall ming distribution. libming.(a|so) not found.

cd /tmp wget wget http://easynews.dl.sourceforge.net/sourceforge/ming/ming-0.3.0.tar.gz tar -zxvf ming-0.3.0.tar.gz cd ming-0.3.0 ./configure make make install mkdir -p /usr/local/lib/php/lib cp -uf libming.a /usr/local/lib/php/lib

  1. PHP-4.4.2 (php also having problems - with mysql)

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-dom --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. | +--------------------------------------------------------------------+