> > > I have freetrade set up on one webserver, and had to use an .htaccess file
> > > to get the proper setting for the magic quotes var.
> > >
>
> Shannon, do you have a perfect HOW-TO do this? I mean apache+php+mysql.
> I have been working on freetrade, but on a paid webserver hosting wich
> already offer the service. Now I need to do this at home. I read the
> linuxdoc.org HOW-TO, but it really doesn't work.
> Oh, the main problem is that I am trying to do this on a Sparc(SUN) with
> RedHat Linux 6.2, but I've already tried it on Solaris7.
>
> Sorry the off-topic, I really need this.
> Thanks a lot!
Are you asking me how to install all of this stuff? Well, you can
follow Michael's advice and use Kent's script, or you can use my build
script (which I'll include for you). Here are some notes on the build
script: 1) You must hack the variables at the top to match the packages
you have. 2) I find it "safer" to simply use your mouse to cut and
paste commands into a shell rather than simply executing this script
(babying the sccript reduces the chance of anything weird going wrong,
and there's a lot that could go wrong). 3) The syntax in the script is
appropriate for sh, bash, or zsh, but not csh, tcsh, etc. 4) You can
skip the PyApache stuff ;). 5) If any of this doesn't work, read the
appropriate INSTALL documents--that's how I came up with most of this
stuff--if you do find something wrong with the script, tell me.
Thanks,
-jj
~~~~ Enclosed script ~~~~
#!/bin/sh
# Author: Shannon -jj Behrens
# Date: Wed Jun 14 06:25:42 PDT 2000
# Description: This is a script to install Apache with the following
compiled
# in:
# o PHP4 (DSO with MySQL support)
# o PyApache (DSO)
# o mod_ssl (DSO based on open_ssl. Will install open_ssl.)
# Set these constants to the name of the packages mentioned above. Do
not add
# the .tar.gz to the end. These should all be in the current working
directory.
APACHE=apache_1.3.12
PHP=php-4.0.0
PYAPACHE=PyApache
OPENSSL=openssl-0.9.5a
MOD_SSL=mod_ssl-2.6.4-1.3.12
# Note, one of the most common mistakes that I've made is not having the
# MySQL libraries accessible. Normally, you can take care of this by
adding
# /usr/local/lib and /usr/local/lib/mysql to /etc/ld.so.conf and then
running
# ldconfig.
###############################################################################
#
# You shouldn't have to edit anything beyond this point.
#
# Unpack everything.
tar xvfz ${APACHE}.tar.gz
tar xvfz ${PHP}.tar.gz
tar xvfz ${PYAPACHE}-4.19.tar.gz
tar xvfz ${MOD_SSL}.tar.gz
tar xvfz ${OPENSSL}.tar.gz
# Let's get Apache "warmed up".
echo 'Warming up Apache.'
cd ${APACHE}
./configure
cd ..
# Configure and build the OpenSSL library.
echo 'Building the OpenSSL Library.'
cd ${OPENSSL}
sh config
make
make test
make install
PATH=${PATH}:/usr/local/ssl/bin
cd ..
# We'll configure mod_ssl here. Notice, it will take care of the Apache
configuration
# for us. Although this doesn't allow us to add the PHP and PyApache
stuff, we can do
# that later using apxs.
echo 'Configuring mod_ssl. This will also configure Apache.'
cd ${MOD_SSL}
./configure \
--with-apache=../${APACHE} \
--with-ssl=../${OPENSSL} \
--enable-shared=ssl
cd ..
# Now it's time to make and make install Apache. We'll also create a
certificate here.
echo 'Compiling and installing Apache.'
cd ${APACHE}
make
echo "I'm going to walk you through making a certificate now. You can
install a real "
echo "one later, if you so desire."
make certifcate
make install
cd ..
# Now we may compile PHP4 as a DSO.
echo 'Building PHP4'
cd ${PHP}
export PATH=$PATH:/usr/local/apache/bin
./configure --with-mysql --with-apxs
make
make install
cd ..
# Now we'll compile PyApache as a DSO.
echo 'Building PyApache'
cd ${PYAPACHE}
apxs -c -L/usr/lib/python1.5/config -lpython1.5 -lieee -lm -ldl
-lpthread mod_pyapache.c
apxs -i -a mod_pyapache.so
cd ..
# Give the user a happy message.
echo 'You may now try starting apache:'
echo
echo ' o First try /usr/local/apache/bin/apachectl start'
echo ' o Then try /usr/local/apache/bin/apachectl stop'
echo ' /usr/local/apache/bin/apachectl startssl'
echo
echo 'It this all works, you will want to replace the test certificate
with '
echo 'a real certificate. This can be done in /usr/local/apache/conf. '
echo 'If you get errors about not being able to generate a temporary '
echo 'certificate when starting apache, try using the default httpd.conf
'
echo 'file, /usr/local/apache/conf/httpd.conf.default'
echo
echo "By the way, you'll probably hate me for saying this, but I do
believe Apache"
echo "will refuse to start if you load both the PHP4 module *and* the
PyApache "
echo "module. This has to do with some library, pcre, being defined in
both of "
echo "of these modules. In any case, since we're using DSO's, at least
you can "
echo "decide which one to run at start time without having to recompile
: / "
~~~~ End script ~~~~
-jj
--
if (shannon - jj) * behrens == webEngineer["CLEAR INK�"]:
print "<i>imagination is the only real medium(sm)</i><br>"
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]