请大家帮忙看一下!!!

由 随风飘来 在 07-11-2003 16:43 发表:

请大家帮忙看一下!!!

[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

以上文件安装显示不知错在哪??


由 dancingpig 在 07-11-2003 16:52 发表:


Perl 没装

apache不能连接dso支持

apxs找不到


由 随风飘来 在 07-15-2003 12:39 发表:

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

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:

1<html>
2<body>   
3  
4  
5  

$myvar = "Hello World";

echo $myvar;

1  
2  
3  
4</body>
5</html>

存盘为:index.html

再start httpd

结果在客户端上输入相应的地址可什么也没有?


由 dancingpig 在 07-16-2003 09:35 发表:


重新配置下apache,找对apxs的位置

使用ssl连接


由 hyoga 在 07-16-2003 09:37 发表:

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

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

 1<html>   
 2&gt;    
 3&gt;  <body>   
 4&gt;    
 5&gt;    
 6&gt;    
 7&gt;  ```
 8   
 9&amp;gt;    
10&amp;gt;  $myvar = "Hello World";   
11&amp;gt;    
12&amp;gt;  echo $myvar;   
13&amp;gt;    
14&amp;gt;  

>
>
>
>
>
>

  1存盘为:index.html   
  2&gt;    
  3&gt;  start httpd   
  4&gt;    
  5&gt;  结果在客户端上输入相应的地址可什么也没有? [/B] 
  6&gt; 
  7&gt; * * *
  8
  9  
 10  
 11PHP文件的扩展名不能是.html,一般可以保存为.php文件。 
 12
 13  
 14
 15
 16* * *
 17
 18  
 19_ 随风飘来  07-16-2003 12:33 发表:_   
 20  
 21
 22
 23**经过上面兄弟的提示也不能成功**
 24
 25  
 26  
 27
 28
 29原因可能如下:   
 30  
 31[root@squid apache_1.3.27]# SSL_BASE=/usr/local/openssl-0.9.6d ./configure \   
 32  
 33&gt; \--prefix=/usr/local/apache \   
 34  
 35&gt; \--enable-module=ssl \   
 36  
 37&gt; \--activate-module=src/modules/fastcgi/libfastcgi.a \   
 38  
 39&gt; \--activate-module=src/modules/perl/libperl.a   
 40  
 41Configuring for Apache, Version 1.3.27   
 42  
 43\+ using installation path layout: Apache (config.layout)   
 44  
 45configure:Error: No such module named 'ssl'   
 46  
 47不知上面错啊里?请各位高手回复一下,经过千幸万苦还是不能成功。郁闷…… 
 48
 49  
 50
 51
 52* * *
 53
 54  
 55_ Glue  07-16-2003 14:31 发表:_   
 56  
 57
 58
 59****
 60
 61  
 62  
 63
 64
 65我糊涂了, 你到底是要PHPSSL?还是.....   
 66  
 67先说说基本的apache是不是可以用了? 
 68
 69__________________   
 70  
 71-_- 
 72
 73  
 74
 75
 76* * *
 77
 78  
 79_ 随风飘来  07-16-2003 15:17 发表:_   
 80  
 81
 82
 83**据体情况如下:**
 84
 85  
 86  
 87
 88
 89楼上兄我想整合php+mysql+apache,所以相关的我都要。   
 90  
 91  
 92  
 93基本的apache能用,但不能用php我想可能与按装apache时出错有关。   
 94  
 95另外我所按装的相关软件包如下:   
 96  
 97mysql-3.23.57-pc-linux-i686.tar.gz   
 98  
 99php-4.3.1.tar.gz   
100  
101apache_1.3.27.tar.gz   
102  
103mod_fastcgi-2.4.0.tar.gz   
104  
105mod_perl-1.0-current.tar.gzopenssl-0.9.6d.tar.gz   
106  
107openssl-0.9.6d.tar.gz   
108  
109mod_ssl-2.8.14-1.3.27.tar.gz   
110  
111在按装apache包时出现:   
112  
113#enable-module=ssl   
114  
115#activate-module=src/modules/fastcgi/libfastcgi.a   
116  
117-bash: activate-module=src/modules/fastcgi/libfastcgi.a: No such file or directory   
118  
119根据 http://www.linuxsir.com/bbs/showthr...p;threadid=2085 网站介绍的方法,不知上面#号后面起什么作用?在系统中也查不到libfastcgi.a文件   
120  
121  
122  
123经过按装apache出现上面的错误且php测试时不能输出内容   
124  
125请帮忙分析一下按装apache时出错是不是与php不能显示有关   
126  
127  
128  
129盼有经验的朋友介绍一下该如何解决!!!!   
130  
131谢谢!! 
132
133  
134
135
136* * *
137
138  
139_ Glue  07-16-2003 21:33 发表:_   
140  
141
142
143****
144
145  
146  
147
148
149如果你的目的只是apache+php,那些ssl, fastcgi, mod_perl尽可以不用管的。   
150  
151我这里有以前做apache+phpconfigure,你不妨一试。   
152  
153  
154  
155apache   
156  
157./configure --with-layout=RedHat --enable-module=most --enable-shared=max --enable-suexec --suexec-caller=nobody   
158  
159make   
160  
161make install   
162  
163  
164  
165php   
166  
167./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   
168  
169make   
170  
171make install   
172  
173  
174  
175有些你认为用不到的--enable-xxxx,你尽可以放心去掉。   
176  
177  
178  
179这些做完后还要在 httpd.conf里加php的支持,我想你可以在php的文档里找到。   
180  
181而且正如上面兄弟说的,php文件的后缀是.php,或者是你在httpd.conf里规定,不应该是index.html 
182
183__________________   
184  
185-_- 
186
187  
188
189
190* * *
191
192  
193_ 随风飘来  07-16-2003 22:44 发表:_   
194  
195
196
197****
198
199  
200  
201
202
203我按楼上兄弟的方法按装apache时非常顺利,但在按装php时出现下列:   
204  
205checking for Apache 2.0 module support via DSO through APXS... no   
206  
207checking for Caudium support... no   
208  
209checking for CLI build... yes   
210  
211checking for embedded SAPI library support... no   
212  
213checking for Zeus ISAPI support... no   
214  
215checking for NSAPI support... no   
216  
217checking for PHTTPD support... no   
218  
219checking for Pi3Web support... no   
220  
221checking for Roxen/Pike support... no   
222  
223checking for Servlet support... no   
224  
225checking for thttpd... no   
226  
227checking for TUX... no   
228  
229checking for webjames... no   
230  
231checking for chosen SAPI module... apache   
232  
233  
234  
235Running system checks   
236  
237checking for missing declarations of reentrant functions... done   
238  
239checking for sendmail... /usr/sbin/sendmail   
240  
241checking whether system uses EBCDIC... no   
242  
243checking for socket... yes   
244  
245checking for htonl... yes   
246  
247checking for gethostname... yes   
248  
249checking for gethostbyaddr... yes   
250  
251checking for yp_get_default_domain... no   
252  
253checking for __yp_get_default_domain... no   
254  
255checking for yp_get_default_domain in -lnsl... yes   
256  
257checking for dlopen... no   
258  
259checking for __dlopen... no   
260  
261checking for dlopen in -ldl... yes   
262  
263checking for sin in -lm... yes   
264  
265checking for res_search... no   
266  
267checking for __res_search... no   
268  
269checking for res_search in -lresolv... yes   
270  
271checking for inet_aton... yes   
272  
273checking for dn_skipname... no   
274  
275checking for __dn_skipname... yes   
276  
277checking for ANSI C header files... yes   
278  
279checking for dirent.h that defines DIR... yes   
280  
281checking for opendir in -ldir... no   
282  
283checking for fclose declaration... ok   
284  
285checking for ApplicationServices/ApplicationServices.h... no   
286  
287checking for sys/types.h... yes   
288  
289checking for sys/time.h... yes   
290  
291checking for netinet/in.h... yes   
292  
293checking for alloca.h... yes   
294  
295checking for arpa/inet.h... yes   
296  
297checking for arpa/nameser.h... yes   
298  
299checking for assert.h... yes   
300  
301checking for crypt.h... yes   
302  
303checking for fcntl.h... yes   
304  
305checking for grp.h... yes   
306  
307checking for ieeefp.h... no   
308  
309checking for langinfo.h... yes   
310  
311checking for limits.h... yes   
312  
313checking for locale.h... yes   
314  
315checking for monetary.h... yes   
316  
317checking for mach-o/dyld.h... no   
318  
319checking for netdb.h... yes   
320  
321checking for pwd.h... yes   
322  
323checking for resolv.h... yes   
324  
325checking for signal.h... yes   
326  
327checking for stdarg.h... yes   
328  
329checking for stdlib.h... yes   
330  
331checking for string.h... yes   
332  
333checking for syslog.h... yes   
334  
335checking for sysexits.h... yes   
336  
337checking for sys/file.h... yes   
338  
339checking for sys/mman.h... yes   
340  
341checking for sys/mount.h... yes   
342  
343checking for sys/poll.h... yes   
344  
345checking for sys/resource.h... yes   
346  
347checking for sys/select.h... yes   
348  
349checking for sys/socket.h... yes   
350  
351checking for sys/statfs.h... yes   
352  
353checking for sys/statvfs.h... yes   
354  
355checking for sys/vfs.h... yes   
356  
357checking for sys/sysexits.h... no   
358  
359checking for sys/varargs.h... no   
360  
361checking for sys/wait.h... yes   
362  
363checking for unistd.h... yes   
364  
365checking for unix.h... no   
366  
367checking for utime.h... yes   
368  
369checking for sys/utsname.h... yes   
370  
371checking for sys/ipc.h... yes   
372  
373checking for fopencookie... yes   
374  
375checking whether struct tm is in sys/time.h or time.h... time.h   
376  
377checking for tm_zone in struct tm... yes   
378  
379checking for tm_gmtoff in struct tm... yes   
380  
381checking for struct flock... yes   
382  
383checking for socklen_t... yes   
384  
385checking size of long... 4   
386  
387checking size of int... 4   
388  
389checking for st_blksize in struct stat... yes   
390  
391checking for st_blocks in struct stat... yes   
392  
393checking for st_rdev in struct stat... yes   
394  
395checking for size_t... yes   
396  
397checking for uid_t in sys/types.h... yes   
398  
399checking for struct sockaddr_storage... yes   
400  
401checking for IPv6 support... yes   
402  
403checking for vprintf... yes   
404  
405checking for asctime_r... yes   
406  
407checking for chroot... yes   
408  
409checking for ctime_r... yes   
410  
411checking for cuserid... yes   
412  
413checking for crypt... no   
414  
415checking for flock... yes   
416  
417checking for ftok... yes   
418  
419checking for funopen... no   
420  
421checking for gai_strerror... yes   
422  
423checking for gcvt... yes   
424  
425checking for getlogin... yes   
426  
427checking for getprotobyname... yes   
428  
429checking for getprotobynumber... yes   
430  
431checking for getservbyname... yes   
432  
433checking for getservbyport... yes   
434  
435checking for getrusage... yes   
436  
437checking for gettimeofday... yes   
438  
439checking for gmtime_r... yes   
440  
441checking for isascii... yes   
442  
443checking for link... yes   
444  
445checking for localtime_r... yes   
446  
447checking for lockf... yes   
448  
449checking for lrand48... yes   
450  
451checking for memcpy... yes   
452  
453checking for memmove... yes   
454  
455checking for mkstemp... yes   
456  
457checking for mmap... yes   
458  
459checking for nl_langinfo... yes   
460  
461checking for poll... yes   
462  
463ch
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus