Hi, Sorry to cut in. Reading your posting I have certain questions to ask. Kindly help .
1) Some line begins with ' > ' similar to answering a posting. What do they represent for ? such as > ./configure \ > --with-apache=../apache_1.3.19 \ > --with-crt=/etc/ssl/certs/server.crt \ > --with-key=/etc/ssl/private/server.key 2) An Asterisk * marked after an application such as Apache*, PHP*, Mod*, etc., do we need them in the config file ? 3) Some line begins with #, Is this line only for explanation not involving configuration (not executing commands) ? 4) In following NOTE: Copy the httpd.conf file to the "/etc/httpd/conf/" directory. Copy the apache file to the "/etc/logrotate.d/" directory. Copy the httpd script file to the "/etc/rc.d/init.d/" directory. Where can apache file and httpd script be located ? Thanks in advance. B.R. Stephen Liu At 08:45 PM 11/21/2001 +0800, you wrote: >I hope this will might help you with ur problem although it will be time >consuming but you will later on appreciate it.This is one of the most tweak >configure APACHE+PHP+PERL config from the source but i only use later >version of this applications so i hope it will still help you. > >Apache >URL: <http://www.apache.org/>http://www.apache.org/ >File: apache_1.3.19.tar.gz > >Mod_SSL >URL: <http://www.modssl.org/>http://www.modssl.org/ >File: mod_ssl-2.6.4-1.3.12.tar.gz > >Mod_Perl >URL: <http://perl.apache.org/>http://perl.apache.org/ >File: mod_perl-1.24.tar.gz > >Mod_PHP >URL: <http://www.php.net/>http://www.php.net/ >File: php-4.0.0.tar.gz > >[root@matrix root]# cp apache* /var/tmp/ >[root@matrix root]# cp mod* /var/tmp/ >[root@matrix root]# cp php* /var/tmp/ >[root@matrix root]# cd /var/tmp >[root@matrix tmp]# tar xzpf apache* >[root@matrix tmp]# tar xzpf mod_ssl* >[root@matrix tmp]# tar xzpf mod_perl* >[root@matrix tmp]# tar xzpf php* >[root@matrix tmp]# useradd -c "Apache Server" -u 80 -s /bin/false -r -d >/home/httpd www 2>/dev/null || : >[root@matrix tmp]# cd mod_ssl* >[root@matrix mod_ssl-2.6.4-1.3.12]# CC="egcs" \ > > ./configure \ > > --with-apache=../apache_1.3.19 \ > > --with-crt=/etc/ssl/certs/server.crt \ > > --with-key=/etc/ssl/private/server.key >[root@matrix mod_ssl-2.6.4-1.3.12]# cd ../apache_1.3.19 >[root@matrix apache_1.3.19]# pico src/include/httpd.h > >httpd.h > >#define HARD_SERVER_LIMIT 256 >To read: >#define HARD_SERVER_LIMIT 1024 > >[root@matrix apache_1.3.19]# CC="egcs" \ > > CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \ > > ./configure \ > > --prefix=/home/httpd \ > > --bindir=/usr/bin \ > > --sbindir=/usr/sbin \ > > --libexecdir=/usr/lib/apache \ > > --includedir=/usr/include/apache \ > > --sysconfdir=/etc/httpd/conf \ > > --localstatedir=/var \ > > --runtimedir=/var/run \ > > --logfiledir=/var/log/httpd \ > > --datadir=/home/httpd \ > > --proxycachedir=/var/cache/httpd \ > > --mandir=/usr/man >[root@matrix apache_1.3.19]# cd ../php-4.0 >[root@matrix php-4.0]# pico ext/pgsql/php_pgsql.h > >php_pgsql.h > >#include <libpq-fe.h> >#include <libpq/libpq-fs.h> >To read: >#include </usr/include/pgsql/libpq-fe.h> >#include </usr/include/pgsql/libpq/libpq-fs.h> > >[root@matrix php-4.0]# CC="egcs" \ > > CFLAGS="-I/usr/include/openssl" \ > > ./configure \ > > --prefix=/usr \ > > --with-exec-dir=/usr/bin \ > > --with-apache=../apache_1.3.19 \ > > --with-config-file-path=/etc/httpd \ > > --disable-debug \ > > --enable-safe-mode \ > > --with-imap \ > > --with-ldap \ > > --with-pgsql \ > > --with-mm \ > > --enable-inline-optimization \ > > --with-gnu-ld \ > > --enable-memory-limit >[root@matrix php-4.0]# make >[root@matrix php-4.0]# make install >[root@matrix php-4.0]# cd ../mod_perl-1.24 >[root@matrix mod_perl-1.24]# perl Makefile.PL \ > > EVERYTHING=1 \ > > APACHE_SRC=../apache_1.3.19/src \ > > USE_APACI=1 \ > > PREP_HTTPD=1 \ > > DO_HTTPD=1 >[root@matrix mod_perl-1.24]# make >[root@matrix mod_perl-1.24]# make install >[root@matrix mod_perl-1.24]# cd ../apache_1.3.19 >[root@matrix apache_1.3.19]# SSL_BASE=SYSTEM \ > > EAPI_MM=SYSTEM \ > > CC="egcs" \ > > CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \ > > ./configure \ > > --prefix=/home/httpd \ > > --bindir=/usr/bin \ > > --sbindir=/usr/sbin \ > > --libexecdir=/usr/lib/apache \ > > --includedir=/usr/include/apache \ > > --sysconfdir=/etc/httpd/conf \ > > --localstatedir=/var \ > > --runtimedir=/var/run \ > > --logfiledir=/var/log/httpd \ > > --datadir=/home/httpd \ > > --proxycachedir=/var/cache/httpd \ > > --mandir=/usr/man \ > > --add-module=src/modules/experimental/mod_mmap_static.c \ > > --add-module=src/modules/standard/mod_auth_db.c \ > > --enable-module=ssl \ > > --enable-rule=SSL_SDBM \ > > --disable-rule=SSL_COMPAT \ > > --activate-module=src/modules/php4/libphp4.a \ > > --enable-module=php4 \ > > --activate-module=src/modules/perl/libperl.a \ > > --enable-module=perl \ > > --disable-module=status \ > > --disable-module=userdir \ > > --disable-module=negotiation \ > > --disable-module=autoindex \ > > --disable-module=asis \ > > --disable-module=imap \ > > --disable-module=env \ > >--disable-module=actions >[root@matrix apache_1.3.19]# make >[root@matrix apache_1.3.19]# make install >[root@matrix apache_1.3.19]# rm -f /usr/sbin/apachectl >[root@matrix apache_1.3.19]# rm -f /usr/man/man8/apachectl.8 >[root@matrix apache_1.3.19]# rm -rf /home/httpd/icons/ >[root@matrix apache_1.3.19]# rm -rf /home/httpd/htdocs/ >[root@matrix apache_1.3.19]# cd /var/tmp/php-4.0 >[root@matrix php-4.0.0]# install -m 644 php.ini.dist /usr/lib/php.ini >[root@matrix php-4.0.0]# rm -rf /etc/httpd/conf/ssl.crl/ >[root@matrix php-4.0.0]# rm -rf /etc/httpd/conf/ssl.crt/ >[root@matrix php-4.0.0]# rm -rf /etc/httpd/conf/ssl.csr/ >[root@matrix php-4.0.0]# rm -rf /etc/httpd/conf/ssl.key/ >[root@matrix php-4.0.0]# rm -rf /etc/httpd/conf/ssl.prm/ >[root@matrix php-4.0.0]# rm -f /etc/httpd/conf/srm.conf srm.conf.default >access.conf access.conf.default > >NOTE: Copy the httpd.conf file to the "/etc/httpd/conf/" directory. > Copy the apache file to the "/etc/logrotate.d/" directory. > Copy the httpd script file to the "/etc/rc.d/init.d/" directory. > >[root@matrix php-4.0.0]# pico /etc/httpd/conf/httpd.conf > >httpd.conf > ><IfModule mod_mime.c> >AddType application/x-httpd-php .php >AddType application/x-httpd-php .php3 >AddType application/x-httpd-php-source .phps ></IfModule>: > >[root@matrix php-4.0.0]# pico /home/httpd/html/test.php > >test.php > ><body bgcolor="#FFFFFF"> ><?php phpinfo()?> ></body> > >[root@matrix php-4.0.0]# chmod 750 /usr/bin/dbmmanage >[root@matrix php-4.0.0]# /usr/bin/dbmmanage /etc/httpd/.dbmpasswd adduser >username > ># pico /etc/httpd/conf/httpd.conf > >httpd.conf > ><Directory "/home/httpd/ona/private"> >Options None >AllowOverride AuthConfig >AuthName "restricted stuff" >AuthType Basic >AuthDBUserFile /etc/httpd/.dbmpasswd >require valid-user ></Directory> > >[root@matrix php-4.0.0]# chmod 700 /etc/rc.d/init.d/httpd >[root@matrix php-4.0.0]# chkconfig --add httpd >[root@matrix php-4.0.0]# /etc/rc.d/init.d/httpd start > > >CHROOT! > >[root@matrix /]# /etc/rc.d/init.d/httpd stop >[root@matrix /]# mkdir /chroot/httpd/dev >[root@matrix /]# mkdir /chroot/httpd/lib >[root@matrix /]# mkdir /chroot/httpd/etc >[root@matrix /]# mkdir -p /chroot/httpd/usr/sbin >[root@matrix /]# mkdir -p /chroot/httpd/var/run >[root@matrix /]# mkdir -p /chroot/httpd/var/log/httpd >[root@matrix /]# chmod 750 /chroot/httpd/var/log/httpd/ >[root@matrix /]# mkdir -p /chroot/httpd/home/httpd >[root@matrix /]# cp -r /etc/httpd /chroot/httpd/etc/ >[root@matrix /]# cp -r /home/httpd/cgi-bin /chroot/httpd/home/httpd/ >[root@matrix /]# cp -r /home/httpd/your-DocumentRoot >/chroot/httpd/home/httpd/ >[root@matrix /]# mknod /chroot/httpd/dev/null c 1 3 >[root@matrix /]# chmod 666 /chroot/httpd/dev/null >[root@matrix /]# cp /usr/sbin/httpd /chroot/httpd/usr/sbin/ >[root@matrix /]# cp -r /etc/ssl /chroot/httpd/etc/ >[root@matrix /]# chmod 600 /chroot/httpd/etc/ssl/certs/ca.crt >[root@matrix /]# chmod 600 /chroot/httpd//etc/ssl/certs/server.crt >[root@matrix /]# chmod 600 /chroot/httpd/etc/ssl/private/ca.key >[root@matrix /]# chmod 600 /chroot/httpd/etc/ssl/private/server.key >[root@matrix /]# cp /lib/libpam.so.0 /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libm.so.6 /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libdl.so.2 /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libcrypt.so.1 /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libnsl* /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libresolv* /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libdb.so.3 /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libc.so.6 /chroot/httpd/lib/ >[root@matrix /]# cp /lib/ld-linux.so.2 /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libnss_compat* /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libnss_dns* /chroot/httpd/lib/ >[root@matrix /]# cp /lib/libnss_files* /chroot/httpd/lib/ >[root@matrix /]# cp /etc/passwd /chroot/httpd/etc/ >[root@matrix /]# cp /etc/group /chroot/httpd/etc/ >[root@matrix /]# pico /chroot/httpd/etc/passwd > >passwd > >www:x:80:80::/home/www:/bin/bash > >[root@matrix /]# pico /chroot/httpd/etc/group > >group > >www:x:80: > >[root@matrix /]# cp /etc/resolv.conf /chroot/httpd/etc/ >[root@matrix /]# cp /etc/hosts /chroot/httpd/etc/ >[root@matrix /]# cp /etc/nsswitch.conf /chroot/httpd/etc/ >[root@matrix /]# chattr +i /chroot/httpd/etc/* >[root@matrix /]# cp /etc/localtime /chroot/httpd/etc/ >[root@matrix /]# rm -rf /var/log/httpd/ >[root@matrix /]# rm -rf /etc/httpd/ >[root@matrix /]# rm -rf /home/httpd/ >[root@matrix /]# rm -f /usr/sbin/httpd >[root@matrix /]# pico /etc/rc.d/init.d/syslog > >syslog > >daemon syslogd -m 0 >To read: >daemon syslogd -m 0 -a /chroot/httpd/dev/log > >[root@matrix /]# pico /etc/rc.d/init.d/httpd > >httpd > >daemon httpd >To read: >/usr/sbin/chroot /chroot/httpd/ /usr/sbin/httpd -DSSL > >rm -f /var/run/httpd.pid >To read: >rm -f /chroot/httpd/var/run/httpd.pid > >[root@matrix /]# /etc/rc.d/init.d/httpd start > >Regards and good luck! > >Respectfully >AOL >www.aolsystems.com "The Technology Specialist" >www.aolsystems.com/autonotix "Race to the Limits"
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com