分类: LINUX
2008-06-18 10:55:56
所需软件:
MySQL5.0.22
httpd-2.2.2.tar.gz
jpegsrc.v6b.tar.gz
freetype-2.2.1.tar.gz
zlib-1.2.3.tar.gz
libpng-1.2.10-no-config.tar.tar
libxml2-2.6.26.tar.gz ftp.gnome.org/pub/GNOME/sources/libxml2
gd-2.0.33.tar.gz
PHP5.1.4.tar.gz
ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz
安装前先检查下gcc版本
8错
其它兄弟在安装的时候注意一点 就是mysql 和php的版本问题
前段安装的时候 就遇到过mysql版本过高 php无法配置通过的
菜鸟遇到困难了,恳请帮忙啊
测试PHP
# vi /usr/local/apache/htdocs/index.php
phpinfo();
?>
:wq
重新启动apache服务器
# /usr/local/apache/bin/apachectl restart
浏览器里127.0.0.1测试一下,能否看到PHP字样
我测试php的时候显示:
Not Found
The requested URL /index.php was not found on this server.
Apache/2.0.52 (Fedora) Server at 127.0.0.1 Port 80
我看不到php字样阿,安装的时候一切正常,在安装php的时候,配置php时也提示了 thankyou for using php,也按照楼主的提示改了配置文件
apache配置文件httpd.conf如下,恳请哪位解惑啊,不胜感激
ServerRoot "/usr/local/apache"
Listen 80
LoadModule php5_module modules/libphp5.so
User daemon
Group daemon
ServerAdmin
DocumentRoot "/usr/local/apache/htdocs"
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
Order allow,deny
Deny from all
Satisfy All
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
CustomLog logs/access_log common
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
AllowOverride None
Options None
Order