LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: sd44

Linux下APACHE+PHP+MYSQL+CGI[修改版]

[复制链接]
发表于 2002-11-4 18:04:20 | 显示全部楼层

3、Install MySQL

3、Install MySQL

  groupadd mysql
  useradd -g mysql mysql
  tar zxvf mysql-3.23.49.tar.gz
  (or, gunzip < mysql-3.23.49.tar.gz | tar xvf -)
  cd mysql-3.23.49
  ./configure --prefix=/usr/local/mysql
  make
  make install
  scripts/mysql_install_db
  chown -R root /usr/local/mysql
  chown -R mysql /usr/local/mysql/var
  chgrp -R mysql /usr/local/mysql
  cp support-files/my-medium.cnf /etc/my.cnf
  cp scripts /usr/local/mysql -R
  cp support-files /usr/local/mysql -R
  cd /usr/local/mysql
  chmod +x support-files/mysql.server
  cp support-files/mysql.server /etc/rc.d/init.d/mysqld
  同时要设置 /etc/rc.d/init.d/mysqld 开机自动运行:
  ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S99mysqld
  /etc/rc.d/init.d/mysqld start
  启动 MySQL
  /usr/local/mysql/bin/mysqladmin -u root password
  ew-password
  设置 MySQL root 口令

  4、Install OpenSSL

  cd /pub
  tar zxvf openssl-0.9.6b.tar.gz
  cd openssl-0.9.6b
  ./config
  make
  make test
  make install

  5、Install mod_ssl

  cd /pub
  tar zxvf mod_ssl-2.8.8-1.3.24.tar.gz
  tar zxvf apache_1.3.24.tar.gz
  (from www.apache.org)
  cd mod_ssl-2.8.8-1.3.24
  ./configure --with-apache=../apache_1.3.24
  cd ../apache_1.3.24
  ./configure --prefix=/www
  Install
  href="ftp://ftp.cac.washington.edu/imap/" target=_blank>IMAP support
  cd /pub
  tar zxvf imap-2001a.tar.Z
  cd imap-2001a
  make slx (for Linux)
  修改 /etc/services 注册端口,修改 /etc/inetd.conf 开启服务
  cp c-client/c-client.a /usr/local/lib/libc-client.a
  cp c-client/rfc822.h /usr/local/include
  cp c-client/mail.h /usr/local/include
  cp c-client/linkage.h /usr/local/include

  6、Install CURL support

  cd /pub
  tar zxvf curl-7.9.6.tar.gz
  cd curl-7.9.6
  ./configure --with-ssl --with-prefix=/usr/local/curl
  make
  make test
  make install
发表于 2002-11-4 18:05:22 | 显示全部楼层

7、Install zlib support

7、Install zlib support

  cd /pub
  tar zxvf zlib-1.1.3.tar.gz
  cd zlib-1.1.3
  ./configure
  make
  make test
  make install

  8、Install libpng support

  cd /pub
  tar zxvf libpng-1.0.10.tar.gz
  cd libpng-1.0.10
  cp scripts/makefile.linux makefile
  vi makefile

  修改其中

  ZLIBLIB=/usr/local/lib

  ZLIBINC=/usr/local/include

  参数
  make test
  make install

  Install jpeg-6b
  support

  cd /pub
  tar zxvf jpegsrc.v6b.tar.gz
  cd jpeg-6b
  ./configure
  make
  make test
  make install
  make install-lib

  9、Install FreeType 2.0.1 support

  cd /pub
  tar zxvf freetype-2.0.1.tar.gz
  cd freetype-2.0.1
  make setup
  make
  make install
发表于 2002-11-4 18:06:36 | 显示全部楼层

10、Install GD support

10、Install GD support

  cd /pub
  tar zxvf gd-1.8.4.tar.gz
  cd gd-1.8.4
  vi Makefile

  修改其中

  CFLAGS=-O -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE

  LIBS=-lgd -lpng -lz -ljpeg -lfreetype -lm

  INCLUDEDIRS=-I. -I/usr/local/include/freetype2 -I/usr/include/X11
  -I/usr/X11R6/include/X11 -I/usr/local/include
  make
  make install

  11、Install PHP

  cd /pub
  tar zxvf php-4.2.0.tar.gz
  cd php-4.2.0
  CFLAGS=-O2 -I/usr/local/ssl/include
  ./configure --with-apache=../apache_1.3.24
  --enable-memory-limit=yes
  --with-config-file-path=/usr/local/lib --with-imap --enable-ftp
  --with-mysql=/usr/local/mysql
  --enable-sockets --enable-debug=no --enable-track-vars
  --with-gd=/usr/local
  --with-jpeg-dir=/usr/local --with-png-dir=/usr/local
  --with-curl=/usr/local/curl
  --with-zlib --with-ttf --with-java
  make
  make install
  cp php.ini-dist /usr/local/lib/php.ini
  修改 /usr/local/lib/php.ini

  12、Install Zend Optimizer

  cd /pub
  tar zxvf ZendOptimizer-1[1].2.0-PHP_4.1.0-Linux_glibc21-i386.tar.gz
  cd ZendOptimizer-1.2.0-PHP_4.1.0-Linux_glibc21-i386
  mkdir /usr/local/Zend
  mkdir /usr/local/Zend/lib
  ./install.sh

  13、Install Zend Cache

  cd /pub
  tar zxvf ZendCache-1[1].1.0b-PHP_4.0.5-Linux_glibc2.1-i386.tar.gz
  cd ZendCache-1.1.0b-PHP_4.0.5-Linux_glibc2.1-i386
  cp data/ZendCache.so /usr/local/Zend/lib
  ( cp zend_cache.dat /usr/local/Zend ) // to register
  license
  Add the following lines to your php.ini file;
  do not add any extra spaces or tabs; must after Zend Optimizer configuration:
  zend_cache.use_cwd=1
  zend_cache.memory_consumption=16 ; 16MB
  zend_cache.validate_timestamps=1
  zend_extension="/usr/local/Zend/lib/ZendCache.so"

  14、Install Zend Accelerator

  cd /pub
  tar xvf ZendAccelerator-2.0.0-PHP_4.0.5-Linux_glibc21-i386.tar
  cd ZendAccelerator-2.0.0-PHP_4.0.5-Linux_glibc21-i386
  ./install.sh
发表于 2002-11-4 18:07:21 | 显示全部楼层

15、Install Apache

15、Install Apache

  cd ../apache_1.3.24
  SSL_BASE=/usr/local/ssl ./configure
  --prefix=/www --enable-module=ssl --enable-module=so
  --activate-module=src/modules/php4/libphp4.a
  --enable-rule=SSL_SDBM --enable-module=rewrite
  make
  make certificate
  make install
  修改 /www/conf/httpd.conf,
  Options Indexes FollowSymLinks MultiViews -> Options FollowSymLinks MultiViews
  DirectoryIndex index.html -> DirectoryIndex index.html index.php3 index.php
增加
  LoadModule webapp_module libexec/mod_webapp.so
  WebAppConnection warpConnection warp localhost:8008
  WebAppDeploy examples warpConnection /examples/
  vi /www/conf/mime.types 增加
  application/x-httpd-php php php3
  拷贝下载的 mod_webapp.so 到 /www/libexec
  启动Apache
  /www/bin/apachectl startssl
  vi /etc/rc.d/init.d/httpd (可选)
  #!/bin/sh
  . /etc/rc.d/init.d/functions
  case "$1" in
  start)
  echo -n "Starting httpd with SSL : "
  /www/bin/apachectl startssl
  ;;
  stop)
  echo -n "Shutting down httpd: "
  /www/bin/apachectl stop
  ;;
  restart)
  echo -n "Restarting httpd: "
  /www/bin/apachectl restart
  ;;
  status)
  echo -n "Show httpd status: "
  /www/bin/apachectl status
  ;;
  *)
  echo "Usage: $0 {start|stop|restart|status}"
  exit 1
  esac
  exit 0
  ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S99httpd (开机自动运行)

  16、最后测试

  在/www/htdocs/下写个test.php,内容:,
http://localhost/test.php,看 ... 题了。如果有"with Zend Optimizer v1.2.0, Copyright (c) 1998-2001, by Zend Technologies",说明Zend Optimizer装好了。如果有"with Zend Cache v1.1.0, Copyright (c) 1999-2001, by Zend Technologies",说明Zend Cache装好了。同理,看Zend Accelerator装好没有。
发表于 2002-11-4 18:20:22 | 显示全部楼层

在我make PERL模块的时候出错,请帮忙看看,是怎么回事呢?

[root@Server mod_perl-1.26]# perl Makefile.PL \
> ls
[root@Server mod_perl-1.26]# perl Makefile.PL APACHE_SRC=../apache_1.3.24/src DO_HTTPD=1 USE_APACI=1 PRE_HTTPD=1 EVERYTHING=1
Will configure via APACI
cp apaci/Makefile.libdir ../apache_1.3.24/src/modules/perl/Makefile.libdir
cp apaci/Makefile.tmpl ../apache_1.3.24/src/modules/perl/Makefile.tmpl
cp apaci/README ../apache_1.3.24/src/modules/perl/README
cp apaci/configure ../apache_1.3.24/src/modules/perl/configure
cp apaci/libperl.module ../apache_1.3.24/src/modules/perl/libperl.module
cp apaci/mod_perl.config.sh ../apache_1.3.24/src/modules/perl/mod_perl.config.sh
cp apaci/load_modules.pl ../apache_1.3.24/src/modules/perl/load_modules.pl
cp apaci/find_source ../apache_1.3.24/src/modules/perl/find_source
cp apaci/apxs_cflags ../apache_1.3.24/src/modules/perl/apxs_cflags
cp apaci/perl_config ../apache_1.3.24/src/modules/perl/perl_config
cp apaci/mod_perl.exp ../apache_1.3.24/src/modules/perl/mod_perl.exp
PerlDispatchHandler.........enabled
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..enabled
PerlTransHandler............enabled
PerlHeaderParserHandler.....enabled
PerlAccessHandler...........enabled
PerlAuthenHandler...........enabled
PerlAuthzHandler............enabled
PerlTypeHandler.............enabled
PerlFixupHandler............enabled
PerlHandler.................enabled
PerlLogHandler..............enabled
PerlInitHandler.............enabled
PerlCleanupHandler..........enabled
PerlRestartHandler..........enabled
PerlStackedHandlers.........enabled
PerlMethodHandlers..........enabled
PerlDirectiveHandlers.......enabled
PerlTableApi................enabled
PerlLogApi..................enabled
PerlUriApi..................enabled
PerlUtilApi.................enabled
PerlFileApi.................enabled
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................enabled
PerlSSI.....................enabled
Will run tests as User: 'nobody' Group: 'root'
(cd ../apache_1.3.24 && CC="gcc" CFLAGS=" -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm" ./configure --activate-module=src/modules/perl/libperl.a --disable-rule=EXPAT)
Configuring for Apache, Version 1.3.24
+ using installation path layout: Apache (config.layout)
+ activated perl module (modules/perl/libperl.a)
Creating Makefile
Creating Configuration.apaci in src
      + id: mod_perl/1.26
      + id: Perl/v5.8.0 (linux) [/usr/bin/perl]
Creating Makefile in src
+ configured for Linux platform
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
    o perl_module uses ConfigStart/End
      + mod_perl build type: OBJ
      + setting up mod_perl build environment
      + adjusting Apache build environment
      + enabling Perl support for SSI (mod_include)
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/perl
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
'PRE_HTTPD' is not a known MakeMaker parameter name.
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache:eak
Writing Makefile for Apache:og
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache:erlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl

[root@Server mod_perl-1.26]# make
(cd ../apache_1.3.24 && PERL5LIB=/usr/local/src/mod_perl-1.26/lib make)
make[1]: Entering directory `/usr/local/src/apache_1.3.24'
===> src
make[2]: Entering directory `/usr/local/src/apache_1.3.24'
make[3]: Entering directory `/usr/local/src/apache_1.3.24/src'
===> src/regex
make[4]: Nothing to be done for `all'.
<=== src/regex
===> src/os/unix
gcc -c -I../.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../../os/unix -I../../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../../apaci` os.c
gcc -c -I../.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../../os/unix -I../../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../../apaci` os-inline.c
rm -f libos.a
ar cr libos.a os.o os-inline.o
ranlib libos.a
<=== src/os/unix
===> src/ap
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_cpystrn.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_execve.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_fnmatch.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_getpass.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_md5c.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_signal.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_slack.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_snprintf.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_sha1.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_checkpass.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_base64.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_ebcdic.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_hook.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_ctx.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` ap_mm.c
rm -f libap.a
ar cr libap.a ap_cpystrn.o ap_execve.o ap_fnmatch.o ap_getpass.o ap_md5c.o ap_signal.o ap_slack.o ap_snprintf.o ap_sha1.o ap_checkpass.o ap_base64.o ap_ebcdic.o ap_hook.o ap_ctx.o ap_mm.o
ranlib libap.a
<=== src/ap
===> src/main
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` gen_test_char.c
gcc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci`   -o gen_test_char gen_test_char.o  -lm -lcrypt -rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE  -L/usr/local/lib /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
./gen_test_char >test_char.h
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` alloc.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` buff.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` http_config.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` http_core.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` http_log.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` http_main.c
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` http_protocol.c
http_protocol.c:861: conflicting types for `getline'
/usr/include/stdio.h:473: previous declaration of `getline'
make[4]: *** [http_protocol.o] Error 1
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/usr/local/src/apache_1.3.24/src'
make[2]: *** [build-std] Error 2
make[2]: Leaving directory `/usr/local/src/apache_1.3.24'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.24'
make: *** [apaci_httpd] Error 2

[root@Server mod_perl-1.26]# make test
(cd ../apache_1.3.24 && PERL5LIB=/usr/local/src/mod_perl-1.26/lib make)
make[1]: Entering directory `/usr/local/src/apache_1.3.24'
===> src
make[2]: Entering directory `/usr/local/src/apache_1.3.24'
make[3]: Entering directory `/usr/local/src/apache_1.3.24/src'
===> src/regex
make[4]: Nothing to be done for `all'.
<=== src/regex
===> src/os/unix
make[4]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[4]: Nothing to be done for `all'.
<=== src/ap
===> src/main
gcc -c -I.. -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../os/unix -I../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `../apaci` http_protocol.c
http_protocol.c:861: conflicting types for `getline'
/usr/include/stdio.h:473: previous declaration of `getline'
………………………………………………………………………………
------------------------------------------------------------
make[4]: *** [http_protocol.o] Error 1
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/usr/local/src/apache_1.3.24/src'
make[2]: *** [build-std] Error 2
make[2]: Leaving directory `/usr/local/src/apache_1.3.24'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.24'
make: *** [apaci_httpd] Error 2
------------------------------------------------------------
………………………………………………………………………………
[root@Server mod_perl-1.26]#
发表于 2002-11-4 19:36:17 | 显示全部楼层

按步骤做完,cgi论坛和PHP留言本还是不能用,唉,郁闷非常。

发表于 2002-11-4 19:37:39 | 显示全部楼层
发表于 2002-11-4 21:21:57 | 显示全部楼层

*_*

我就最喜欢这个主题了,有东西可以实践,
发表于 2002-11-6 21:32:09 | 显示全部楼层

apache 的问题

我安装了apache+mysql+perl+ssl 后,打入127.0.0.1显示的是/usr/local/apache/htdocs下的main.htm,无法改成index.html.打入本机的ip地址,下载application/x-http
启动apache时提示如下:
/usr/local/apache/bin/apachectl restart: httpd not running, trying to start
[Wed Nov  6 19:34:33 2002] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/apache/bin/apachectl restart: httpd started
请提供帮助。谢谢!
发表于 2002-11-7 11:06:42 | 显示全部楼层
修改httpd.conf中的DirectoryIndex将main.htm去除,或者将index.html放在main.htm前面
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表