Installing Mysql
-----------------------
# groupadd mysql
# useradd -d /usr/local/mysql mysql
in '/etc/passwd' change mysql's shell with 'nologin'
# cd mysql...[version]
# ./configure --prefix=/usr/local/mysql
or
#./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-assembler --with-named-z-libs=no --with-named-curses-libs=-lcurses --disable-shared CXX=gcc
#make
#make clean (when errors,warnings come out with 'make')
#make install
# /usr/local/mysql/bin/mysql_install_db
# chown -R mysql /usr/local/mysql/var
# chgrp -R mysql /usr/local/mysql/var
# /usr/local/mysql/bin//mysqld_safe --user=mysql &
# /usr/local/mysql/bin/mysqladmin -u root password ...
# /usr/local/mysql/bin/mysqladmin -u admin password ...
creation of my.cnf in folder /usr/local/mysql/var
cp (from redhat
) greek.conf in folder /usr/local/mysql/share/mysql/charsets
# ./bin/mysqld --defaults-file=<MySQL Databasedirectry>/my.cnf \
--basedir=<MySQL Basedirectory>\
--datadir=<MySQL Databasedirectory>\
--user=mysql --pid-file=<MySQL Databasedirectory>/mysqld.pid &
Required programs
------------------
tcsh-6.08.00-sol7-sparc-local.tar.gz
bash-3.0-sol7-sparc-local.tar.gz
zlib-1.2.2.tar.gz
gcc-3.4.2-sol7-sparc-local.tar.gz
gzip-1.3.5-sol7-sparc-local.tar.gz
make-3.80-sol7-sparc-local.tar.gz
ncurses-5.4-sol7-sparc-local.gz
ncurses-5.4.tar.gz
perl-5.8.5.tar.gz
m4-1.4.2.tar.gz
autoconf-2.59.tar.gz
bison-1.28.tar.gz
flex_2.5.4_hpux_ia64_src.tar.gz
openssl-0.9.7g.tar.gz
zlib1.2.3
Installing Apache
-------------------------
αφού εγκατασταθούν τα w4,autoconf,bison,flex,openssl,libtool,db (Berkeley)
#setenv CFLAGS="-I /usr/local/BerkeleyDB.3.3/include"
#setenv LDFLAGS="-L /usr/local/BerkeleyDB.3.3/lib -R"
#ln -s /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so /usr/lib/libdb-3.3.so
#ln -s /usr/ccs/bin/ld /usr/bin/ld
# ./configure --with-layout=Apache --prefix=/usr/local/apache --enable-module=all --disable-module=auth_db
Installing php-4.3.11
--------------------
since now , only the configuration below:
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/php --enable-force-cgi-redirect --with-zlib --with-zlib-dir=/usr/local/zlib-1.2.3 --enable-libgcc --enable-track-vars
and this configuration, after several minutes provides the below error:
Configuring extensions
checking for OpenSSL support... no
checking for Kerberos support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... /usr/local/zlib-1.2.3
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9
Thanks again.