APACHE+PHP+MYSQL问题,请高手指教.

发布于 2022-10-01 07:14:05 字数 157 浏览 14 评论 0

装的系统是REDHAT 8.0 .安装的时候已经装上自带的PHP和MYSQL软件包,但是架站的时候就是不支持PHP,MYSQL就更不用说.HTTPD.CONF里面没有加载PHP模块的那几条语句.
重新下载MYSQL和PHP的软件包安装全部报错,安装不上.
请高手指点.谢谢.(菜鸟一名)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

我为君王 2022-10-08 07:14:05

看看精华区,文章总结全了

怎会甘心 2022-10-08 07:14:05

确认没有问题的话,PHP语句可以手动添加

狂之美人 2022-10-08 07:14:05

手工添加后,HTTPD重启出错,呵呵……

谎言月老 2022-10-08 07:14:05

自己顶一下。没人回答?虽然简单,但是也难死我这菜鸟了。

风铃鹿 2022-10-08 07:14:05

出错信息是什么?

远昼 2022-10-08 07:14:05

[quote]原帖由 "bjchenxu"]看看精华区,文章总结全了[/quote 发表:
     
精华区哪个贴???

享受孤独 2022-10-08 07:14:05

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后的信息。

夢归不見 2022-10-08 07:14:05

[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
难道是因为这个问题才不行的?

归途 2022-10-08 07:14:05

[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
有 人可以帮我吗?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文