Install a new server (CentOS)
- ---------------------- Installation on wikiexpert.com -------------------------- #
- Original apache installation in /var/www
- controlled with /usr/sbin/apachectl
- index.shtml is the index file
- Source install at /usr/local/apache2
- 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
- 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
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
- not finished see INSTALL
- Reinstalling ming (php compilation failed) /usr/local/lib/
- See http://www.opaque.net/wiki/index.php?MingInstall,
- http://www.opaque.net/wiki/index.php?PlatformIssues
- 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) e.g.
- gcc: ext/pcre/pcrelib/pcre_chartables.o: No such file or directory
- pcre is perl compatible regular expressions
- v5.8.3 built for i386-linux-thread-multi (not 5.8.6)
- Looks like pcre needs to be installed again :(
- http://www.pcre.org/
- Stupid header file appears to be in the wrong place
- cp /usr/include/pcre/pcre.h /usr/lib
- ./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-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. | +--------------------------------------------------------------------+