eva2000
12-24-2000, 09:37 PM
Cool, i installed it and it seems to be working :)
The thing is i followed Felix's instructions he sent me only half way (couldn't do the rest :( ) and then followed another set of instructions for the rest. I am not sure if i will have any problems. So i'll list
1. what felix sent me
2. what steps in felix's instructions i didn't do
3. what steps i did from there
4. how i installed php 4.03pl
[Note]: All done in root
============================================================
1. what felix sent me
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-3.22.32-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-client-3.22.32-1.i386.rp
m
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-devel-3.22.32-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-shared-3.22.32-1.i386.rp
m
rpm -Uvh ftp://ftp.cobaltnet.com/pub/contrib/i386/perl-DBI-1.14-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/contrib/i386/perl-Msql-Mysql-modules-1.2214-1.i3
86.rpm
tar -zxf freetype*
tar -zxf imap*
tar -zxf gd*
tar -zxf libpng*
tar -zxf jpeg*
tar -zxf php*
tar -zxf zlib*
tar -zxf Zend*
rm *
mv freetype* freetype
mv imap* imap
mv gd* gd
mv libpng* libpng
mv jpeg* jpeg
mv php* php
mv zlib* zlib
mv Zend* zend
# ZLIB (php mod + needed for gd)
cd zlib
./configure
make
make test
mkdir /usr/local/include
make install
# Graphic installation (gd+jpeg+png+freetype)
cd ../freetype
make
make
make install
cd ../jpeg
./configure
make
make install
mkdir lib
cp libjpeg.a lib
cd ../libpng
cp scripts/makefile.linux makefile
# cp scripts/makefile.gcmmx makefile
make
make test
make install
cd ../gd
pico -w Makefile
###### changes ##########
COMPILER=gcc
AR=ar
CFLAGS=-O -DHAVE_JPEG -DHAVE_LIBTTF
LIBS=-lm -lgd -lpng -lz -ljpeg -lttf
INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include -I../jpeg -I../png -I../
zlib -I../freetype/lib
LIBDIRS=-L. -L/usr/local/include -L/usr/include -L../jpeg -L../png -L../zlib
-L../freetype/lib -L/usr/local/lib/.libs
INSTALL_LIB=/usr/local/lib
INSTALL_INCLUDE=/usr/local/include
INSTALL_BIN=/usr/local/bin
###### changes ##########
make
make install
cp ../libpng/libpng* ./
cp ../libpng/libpng.so.2 /usr/lib
/usr/lib/libpng.so.2
/usr/local/lib/libpng.a
/usr/local/lib/libpng.so.2.1.0.7
/usr/local/lib/libpng.so.2
/usr/local/lib/libpng.so
cd ../imap
make lnp
pico -w /usr/sbin/apxs
######### CHANGE ##########
chage:
my $CFG_SBINDIR = '/usr/bin'; # substituted via APACI install
to
my $CFG_SBINDIR = '/usr/sbin'; # substituted via APACI install
###################
pico /etc/ld.so.conf
######## ADD ##########
/usr/local/lib/mysql
/usr/local/lib/
############
cd ../php
'./configure' '--with-imap=../imap' '--enable-xml' '--with-mysql'
'--with-apxs=/usr/sbin/apxs' '--with-zlib-dir=../imap' '--with-gd=../gd'
'--with-png-dir=../usr/local/lib/' '--with-jpeg-dir=../jpeg'
'--enable-track-vars'
make
make install
cp php.ini-optimized /usr/local/lib/php.ini
####### Zend optimizer installation
cd ../zend
mkdir /usr/local/Zend
mkdir /usr/local/Zend/lib
cp ZendOptimizer.so /usr/local/Zend/lib
pico -w /usr/local/lib/php.ini
####### CHANGE ###########
engine = Off
register_globals = On
register_argc_argv = On
magic_quotes_gpc = On
####### ADD ###########
zend_optimizer.optimization_level=15
zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"
#######################
pico -w /etc/httpd/conf/httpd.conf
####### CHANGE ############
LoadModule php4_module /usr/lib/apache/libphp4.so
####### ADD before NameVirtualHost 123.123.123.123 (include the ### PHP
stuff)
ExtendedStatus On
<Location /status>
order allow,deny
allow from all
require user admin
Authname ServerStatus
Authtype Basic
SetHandler server-status
</Location>
#################################PHP SAFE MODE############################
<Directory /home/sites/home>
php_admin_flag engine On
php_admin_value doc_root /home/sites/home
php_admin_value safe_mode_exec_dir .:/home/sites/home
php_admin_value open_basedir .:/tmp:/home/sites/home
php_admin_value include_path .:/home/sites/home
</Directory>
###############################EO PHP SAFE MODE###########################
############################
pico -w /etc/httpd/conf/srm.conf
######### CHANGE ############
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
index.php3 index.phtml index.phps index.cgi index.pl
####### CHANGED /ADD ########
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
#################
###### Clean-up! ########
cd ..
rm -R *
============================================================
2. what steps in felix's instructions i didn't do
i couldn't do anything from
tar -zxf freetype* onwards through to the clean up.. just kept on saying directory and file not found when i tried to tar -zvf all those files...?
============================================================
3. what steps i did from there
so from there i followed other instructions
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-devel-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-utils-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/gd-1.3-5.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/gd-devel-1.3-5.i386.rpm
then went to installed php 4.03pl
============================================================
4. how i installed php 4.03pl
php 4.04 has some bugs according some who has installed it so i went with the source 4.03pl
at http://www.php.net/do_download.php?download_file=php-4.0.3pl1.tar.gz&source_site=www.php.net
## installation php4.0.3pl1 for raq3
cd /root
tar zxvf php4.0.3pl1.tar.gz
cd php-4.0.3pl1
./configure --with-mysql --with-apxs
make
make install
cd /etc/httpd/conf
pico srm.conf
## add to srm.conf:
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
^^^^^^^^^^^^
## you can also add index.php4 and index.phtml there if you want..
AddType application/x-httpd-php .php .php4 .phtml
## save file
pico httpd.conf
## change the php4 LoadModule, thats allready added to httpd.conf:
LoadModule php4_module /usr/lib/apache/libphp4.so
## save file
/etc/rc.d/init.d/httpd restart
echo "<? phpinfo(); ?>">/home/sites/home/web/test.php
## test if it works in your browser
============================================================
i installed phpMyAdmin and a php/mysql script and it worked... but not sure if there is any problems from not doing the steps felix outlined ?
The thing is i followed Felix's instructions he sent me only half way (couldn't do the rest :( ) and then followed another set of instructions for the rest. I am not sure if i will have any problems. So i'll list
1. what felix sent me
2. what steps in felix's instructions i didn't do
3. what steps i did from there
4. how i installed php 4.03pl
[Note]: All done in root
============================================================
1. what felix sent me
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-3.22.32-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-client-3.22.32-1.i386.rp
m
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-devel-3.22.32-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-shared-3.22.32-1.i386.rp
m
rpm -Uvh ftp://ftp.cobaltnet.com/pub/contrib/i386/perl-DBI-1.14-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/contrib/i386/perl-Msql-Mysql-modules-1.2214-1.i3
86.rpm
tar -zxf freetype*
tar -zxf imap*
tar -zxf gd*
tar -zxf libpng*
tar -zxf jpeg*
tar -zxf php*
tar -zxf zlib*
tar -zxf Zend*
rm *
mv freetype* freetype
mv imap* imap
mv gd* gd
mv libpng* libpng
mv jpeg* jpeg
mv php* php
mv zlib* zlib
mv Zend* zend
# ZLIB (php mod + needed for gd)
cd zlib
./configure
make
make test
mkdir /usr/local/include
make install
# Graphic installation (gd+jpeg+png+freetype)
cd ../freetype
make
make
make install
cd ../jpeg
./configure
make
make install
mkdir lib
cp libjpeg.a lib
cd ../libpng
cp scripts/makefile.linux makefile
# cp scripts/makefile.gcmmx makefile
make
make test
make install
cd ../gd
pico -w Makefile
###### changes ##########
COMPILER=gcc
AR=ar
CFLAGS=-O -DHAVE_JPEG -DHAVE_LIBTTF
LIBS=-lm -lgd -lpng -lz -ljpeg -lttf
INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include -I../jpeg -I../png -I../
zlib -I../freetype/lib
LIBDIRS=-L. -L/usr/local/include -L/usr/include -L../jpeg -L../png -L../zlib
-L../freetype/lib -L/usr/local/lib/.libs
INSTALL_LIB=/usr/local/lib
INSTALL_INCLUDE=/usr/local/include
INSTALL_BIN=/usr/local/bin
###### changes ##########
make
make install
cp ../libpng/libpng* ./
cp ../libpng/libpng.so.2 /usr/lib
/usr/lib/libpng.so.2
/usr/local/lib/libpng.a
/usr/local/lib/libpng.so.2.1.0.7
/usr/local/lib/libpng.so.2
/usr/local/lib/libpng.so
cd ../imap
make lnp
pico -w /usr/sbin/apxs
######### CHANGE ##########
chage:
my $CFG_SBINDIR = '/usr/bin'; # substituted via APACI install
to
my $CFG_SBINDIR = '/usr/sbin'; # substituted via APACI install
###################
pico /etc/ld.so.conf
######## ADD ##########
/usr/local/lib/mysql
/usr/local/lib/
############
cd ../php
'./configure' '--with-imap=../imap' '--enable-xml' '--with-mysql'
'--with-apxs=/usr/sbin/apxs' '--with-zlib-dir=../imap' '--with-gd=../gd'
'--with-png-dir=../usr/local/lib/' '--with-jpeg-dir=../jpeg'
'--enable-track-vars'
make
make install
cp php.ini-optimized /usr/local/lib/php.ini
####### Zend optimizer installation
cd ../zend
mkdir /usr/local/Zend
mkdir /usr/local/Zend/lib
cp ZendOptimizer.so /usr/local/Zend/lib
pico -w /usr/local/lib/php.ini
####### CHANGE ###########
engine = Off
register_globals = On
register_argc_argv = On
magic_quotes_gpc = On
####### ADD ###########
zend_optimizer.optimization_level=15
zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"
#######################
pico -w /etc/httpd/conf/httpd.conf
####### CHANGE ############
LoadModule php4_module /usr/lib/apache/libphp4.so
####### ADD before NameVirtualHost 123.123.123.123 (include the ### PHP
stuff)
ExtendedStatus On
<Location /status>
order allow,deny
allow from all
require user admin
Authname ServerStatus
Authtype Basic
SetHandler server-status
</Location>
#################################PHP SAFE MODE############################
<Directory /home/sites/home>
php_admin_flag engine On
php_admin_value doc_root /home/sites/home
php_admin_value safe_mode_exec_dir .:/home/sites/home
php_admin_value open_basedir .:/tmp:/home/sites/home
php_admin_value include_path .:/home/sites/home
</Directory>
###############################EO PHP SAFE MODE###########################
############################
pico -w /etc/httpd/conf/srm.conf
######### CHANGE ############
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
index.php3 index.phtml index.phps index.cgi index.pl
####### CHANGED /ADD ########
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
#################
###### Clean-up! ########
cd ..
rm -R *
============================================================
2. what steps in felix's instructions i didn't do
i couldn't do anything from
tar -zxf freetype* onwards through to the clean up.. just kept on saying directory and file not found when i tried to tar -zvf all those files...?
============================================================
3. what steps i did from there
so from there i followed other instructions
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-devel-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-utils-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/gd-1.3-5.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/gd-devel-1.3-5.i386.rpm
then went to installed php 4.03pl
============================================================
4. how i installed php 4.03pl
php 4.04 has some bugs according some who has installed it so i went with the source 4.03pl
at http://www.php.net/do_download.php?download_file=php-4.0.3pl1.tar.gz&source_site=www.php.net
## installation php4.0.3pl1 for raq3
cd /root
tar zxvf php4.0.3pl1.tar.gz
cd php-4.0.3pl1
./configure --with-mysql --with-apxs
make
make install
cd /etc/httpd/conf
pico srm.conf
## add to srm.conf:
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
^^^^^^^^^^^^
## you can also add index.php4 and index.phtml there if you want..
AddType application/x-httpd-php .php .php4 .phtml
## save file
pico httpd.conf
## change the php4 LoadModule, thats allready added to httpd.conf:
LoadModule php4_module /usr/lib/apache/libphp4.so
## save file
/etc/rc.d/init.d/httpd restart
echo "<? phpinfo(); ?>">/home/sites/home/web/test.php
## test if it works in your browser
============================================================
i installed phpMyAdmin and a php/mysql script and it worked... but not sure if there is any problems from not doing the steps felix outlined ?
