LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1141|回复: 10

请大家帮忙看一下!!!

[复制链接]
发表于 2003-7-11 16:43:17 | 显示全部楼层 |阅读模式
[root@squid php-4.3.1]# ./configure --with-apxs=/usr/local/apache_1.3.27/src/support/apxs
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for working sed... (cached) sed
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for ranlib... (cached) ranlib
checking whether ln -s works... (cached) yes
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking bison version... 1.35 (ok)
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache_1.3.27/src/support/apxs follows
./configure: /usr/local/apache_1.3.27/src/support/apxs: /usr/local/bin/perl: bad interpreter: No such file or directory
configure: error: Aborting
以上文件安装显示不知错在哪??
发表于 2003-7-11 16:52:27 | 显示全部楼层
Perl 没装
apache不能连接dso支持
apxs找不到
 楼主| 发表于 2003-7-15 12:39:34 | 显示全部楼层

根据你的提示我按装了如下:

mod_fastcgi-2.2.12.tar.gz
mod_perl-1.26.tar.gz
mod_ssl-2.8.8-1.3.24.tar.gz
openssl-0.9.6d.tar.gz
但是重启httpd 服务时显示:
[root@squid root]# /etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/httpd: line 2: chkconfig:: command not found
/etc/rc.d/init.d/httpd: line 3: description:: command not found
[Tue Jul 15 12:38:35 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/etc/rc.d/init.d/httpd start: httpd started

当我输入下面测试php:
<html>
<body>

<?php
$myvar = "Hello World";
echo $myvar;
?>

</body>
</html> 存盘为:index.html
再start httpd
结果在客户端上输入相应的地址可什么也没有?
发表于 2003-7-16 09:35:42 | 显示全部楼层
重新配置下apache,找对apxs的位置
使用ssl连接
发表于 2003-7-16 09:37:26 | 显示全部楼层

回复: 根据你的提示我按装了如下:

最初由 随风飘来 发表
当我输入下面测试php:
<html>
<body>

<?php
$myvar = "Hello World";
echo $myvar;
?>

</body>
</html> 存盘为:index.html
再start httpd
结果在客户端上输入相应的地址可什么也没有?

PHP文件的扩展名不能是.html,一般可以保存为.php文件。
 楼主| 发表于 2003-7-16 12:33:18 | 显示全部楼层

经过上面兄弟的提示也不能成功

原因可能如下:
[root@squid apache_1.3.27]# SSL_BASE=/usr/local/openssl-0.9.6d ./configure \
> --prefix=/usr/local/apache \
> --enable-module=ssl \
> --activate-module=src/modules/fastcgi/libfastcgi.a \
> --activate-module=src/modules/perl/libperl.a
Configuring for Apache, Version 1.3.27
+ using installation path layout: Apache (config.layout)
configure:Error: No such module named 'ssl'
不知上面错啊里?请各位高手回复一下,经过千幸万苦还是不能成功。郁闷……
发表于 2003-7-16 14:31:05 | 显示全部楼层
我糊涂了, 你到底是要PHP?SSL?还是.....
先说说基本的apache是不是可以用了?
 楼主| 发表于 2003-7-16 15:17:16 | 显示全部楼层

据体情况如下:

楼上兄我想整合php+mysql+apache,所以相关的我都要。

基本的apache能用,但不能用php我想可能与按装apache时出错有关。
另外我所按装的相关软件包如下:
mysql-3.23.57-pc-linux-i686.tar.gz
php-4.3.1.tar.gz
apache_1.3.27.tar.gz
mod_fastcgi-2.4.0.tar.gz
mod_perl-1.0-current.tar.gzopenssl-0.9.6d.tar.gz
openssl-0.9.6d.tar.gz
mod_ssl-2.8.14-1.3.27.tar.gz
在按装apache包时出现:
#enable-module=ssl
#activate-module=src/modules/fastcgi/libfastcgi.a
-bash: activate-module=src/modules/fastcgi/libfastcgi.a: No such file or directory
根据http://www.linuxsir.cn/forum.php?mod=viewthread&tid=2085网站介绍的方法,不知上面#号后面起什么作用?在系统中也查不到libfastcgi.a文件

经过按装apache出现上面的错误且php测试时不能输出内容
请帮忙分析一下按装apache时出错是不是与php不能显示有关

盼有经验的朋友介绍一下该如何解决!!!!
谢谢!!
发表于 2003-7-16 21:33:59 | 显示全部楼层
如果你的目的只是apache+php,那些ssl, fastcgi, mod_perl尽可以不用管的。 
我这里有以前做apache+php的configure,你不妨一试。

apache
./configure --with-layout=RedHat --enable-module=most --enable-shared=max --enable-suexec --suexec-caller=nobody
make
make install

php
./configure --prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic --enable-shared --enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/bin --with-regex=system --with-gettext --with-gd --with-jpeg-dir=/usr --with-png --with-zlib --with-db2 --with-db3 --with-gdbm --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-yp --enable-ftp --enable-wddx --with-mysql --without-oracle --without-oci8 --with-xml
make
make install

有些你认为用不到的--enable-xxxx,你尽可以放心去掉。 

这些做完后还要在 httpd.conf里加php的支持,我想你可以在php的文档里找到。
而且正如上面兄弟说的,php文件的后缀是.php,或者是你在httpd.conf里规定,不应该是index.html
 楼主| 发表于 2003-7-16 22:44:59 | 显示全部楼层
我按楼上兄弟的方法按装apache时非常顺利,但在按装php时出现下列:
checking for Apache 2.0 module support via DSO through APXS... no
checking for Caudium support... no
checking for CLI build... yes
checking for embedded SAPI library support... no
checking for Zeus ISAPI support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web support... no
checking for Roxen/Pike support... no
checking for Servlet support... no
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for chosen SAPI module... apache

Running system checks
checking for missing declarations of reentrant functions... done
checking for sendmail... /usr/sbin/sendmail
checking whether system uses EBCDIC... no
checking for socket... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... no
checking for __yp_get_default_domain... no
checking for yp_get_default_domain in -lnsl... yes
checking for dlopen... no
checking for __dlopen... no
checking for dlopen in -ldl... yes
checking for sin in -lm... yes
checking for res_search... no
checking for __res_search... no
checking for res_search in -lresolv... yes
checking for inet_aton... yes
checking for dn_skipname... no
checking for __dn_skipname... yes
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for fclose declaration... ok
checking for ApplicationServices/ApplicationServices.h... no
checking for sys/types.h... yes
checking for sys/time.h... yes
checking for netinet/in.h... yes
checking for alloca.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for assert.h... yes
checking for crypt.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for ieeefp.h... no
checking for langinfo.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for monetary.h... yes
checking for mach-o/dyld.h... no
checking for netdb.h... yes
checking for pwd.h... yes
checking for resolv.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for sysexits.h... yes
checking for sys/file.h... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking for sys/poll.h... yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for sys/vfs.h... yes
checking for sys/sysexits.h... no
checking for sys/varargs.h... no
checking for sys/wait.h... yes
checking for unistd.h... yes
checking for unix.h... no
checking for utime.h... yes
checking for sys/utsname.h... yes
checking for sys/ipc.h... yes
checking for fopencookie... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for tm_gmtoff in struct tm... yes
checking for struct flock... yes
checking for socklen_t... yes
checking size of long... 4
checking size of int... 4
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for struct sockaddr_storage... yes
checking for IPv6 support... yes
checking for vprintf... yes
checking for asctime_r... yes
checking for chroot... yes
checking for ctime_r... yes
checking for cuserid... yes
checking for crypt... no
checking for flock... yes
checking for ftok... yes
checking for funopen... no
checking for gai_strerror... yes
checking for gcvt... yes
checking for getlogin... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyname... yes
checking for getservbyport... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for isascii... yes
checking for link... yes
checking for localtime_r... yes
checking for lockf... yes
checking for lrand48... yes
checking for memcpy... yes
checking for memmove... yes
checking for mkstemp... yes
checking for mmap... yes
checking for nl_langinfo... yes
checking for poll... yes
checking for putenv... yes
checking for realpath... yes
checking for random... yes
checking for rand_r... yes
checking for regcomp... yes
checking for res_search... (cached) yes
checking for setitimer... yes
checking for setlocale... yes
checking for localeconv... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... yes
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for getaddrinfo... yes
checking for strlcat... no
checking for strlcpy... no
checking for getopt... yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking whether sprintf is broken... no
checking whether snprintf is broken... no
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... yes
checking for type of readdir_r... POSIX
checking whether to include debugging symbols...
checking layout of installed files...
checking path to configuration file...
checking directory to be scanned for configuration files...
checking whether to install PEAR, and where...
checking whether to enable safe mode by default...
checking for safe mode exec dir... /usr/bin
checking whether to enable PHP's own SIGCHLD handler...
checking whether to enable magic quotes by default...
checking whether to enable runpaths...
checking whether to explicitly link against libgcc...
checking whether to enable short tags by default...
checking whether to enable dmalloc...
checking whether to enable IPv6 support...
checking for OpenSSL support... no
checking for crypt in -lcrypt... yes

Configuring extensions
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... yes
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking for cyrus imap support... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for gdbm_open in -lgdbm... yes
checking for GDBM support... yes
checking for NDBM support... no
checking for db_appinit in -ldb... no
checking for db_appinit in -ldb2... no
checking for db_appinit in -lc... no
configure: error: cannot find necessary library
再进行make时出现:
[root@squid php-4.3.0]# make
make: *** No targets specified and no makefile found.  Stop.
我非常想将mysql+php+apache整合,每见到兄弟们回的贴子我都非常激动
但是一直没能成功按装。再次谢谢兄弟们的回复!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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