[SunHELP] Apache,PHP,LDAP
Robert Seaborn
sunhelp at sunhelp.org
Thu Jun 7 18:44:46 CDT 2001
Here's how I finally got LDAP to install with PHP and Apache, but I haven't
tested it yet:
# installing OpenLDAP
gzip -cd openldap-stable-20010524.tgz | tar -xvf -
cd openldap-2.0.11
./configure --prefix=/usr/local/ldap
make depend
make install
# install apache
gzip -cd apache_1.3.19.tar.gz | tar -xvf -
cd apache_1.3.19
./configure --prefix=/usr/local/apache
make
# STOP HERE TO DO THE PHP INSTALLATION
# install PHP
cd ..
gzip -cd php-4.0.4pl1.tar.gz | tar -xvf -
cd php-4.0.4pl1
./configure --with-mysql=/usr/local/mysql
--with-apache=/usr/local/download/apache_1.3.19 --with-snmp
--enable-track-vars --with-ldap=/usr/local/ldap/bin
gmake
gmake install
cp php.ini-dist /usr/local/lib/php.ini
# Continue with Apache installation
cd ..
./configure --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a
#in /usr/local/download/apache_1.3.19/src
#You need to change these these lines to show this:
EXTRA_LDFLAGS=-lldap -llber
EXTRA_LIBS=-L/usr/local/lib -R/usr/local/lib
make
make install
#Add to the startup
cp /usr/local/apache/bin/apachectl /etc/init.d
ln /etc/init.d/apachectl /etc/rc3.d/S99apache
ln /etc/init.d/apachectl /etc/rc2.d/K99apache
#The Web Server user will be "nobody"
#in /usr/local/apache/conf/httpd.conf set "UseCanonicalNames" #directive to
"Off"
# and uncomment "AddType application/x-httpd-php .php"
_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/
More information about the SunHELP
mailing list