APACHE+PHP+MYSQL问题,请高手指教.
装的系统是REDHAT 8.0 .安装的时候已经装上自带的PHP和MYSQL软件包,但是架站的时候就是不支持PHP,MYSQL就更不用说.HTTPD.CONF里面没有加载PHP模块的那几条语句.
重新下载MYSQL和PHP的软件包安装全部报错,安装不上.
请高手指点.谢谢.(菜鸟一名)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
看看精华区,文章总结全了
确认没有问题的话,PHP语句可以手动添加
手工添加后,HTTPD重启出错,呵呵……
自己顶一下。没人回答?虽然简单,但是也难死我这菜鸟了。
出错信息是什么?
[quote]原帖由 "bjchenxu"]看看精华区,文章总结全了[/quote 发表:
精华区哪个贴???
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2356: lex: command not found
configure: error: cannot find output from lex; giving up
这是装PHP CONFIGURE后的信息。
[root@localhost root]# rpm -q mysql
mysql-3.23.52-3
[root@localhost root]# rpm -q apache
package apache is not installed
[root@localhost root]# rpm -q php
php-4.2.2-8.0.5
难道是因为这个问题才不行的?
[root@localhost apache_1.3.28]# ./configure --prefix=/usr/local/apache --enable-module=so
Configuring for Apache, Version 1.3.28
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
+ using builtin Expat
+ using -ldl for vendor DSO support
+ 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/lib/expat-lite
Creating Makefile in src/modules/standard
然后:
[root@localhost php4]# ./configure --with-apache=/usr/local/apache/
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2377: lex: command not found
configure: error: cannot find output from lex; giving up
有 人可以帮我吗?