<basefont>安装前先关闭SELinux,这是缺别与RH9的地方。不关的会影响MySQL运行,如果你知道SELinux的具体配置可以不关,但要告诉我是怎么配置的。
所需软件:
MySQL5.0.22 www.mysql.com
httpd-2.2.2.tar.gz www.apache.org
jpegsrc.v6b.tar.gz
freetype-2.2.1.tar.gz www.freetype.org
zlib-1.2.3.tar.gz www.gzip.org/zlib
libpng-1.2.10-no-config.tar.tar www.libpng.org
libxml2-2.6.26.tar.gz ftp.gnome.org/pub/GNOME/sources/libxml2
gd-2.0.33.tar.gz
PHP5.1.4.tar.gz www.php.net
ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz www.zend.net
</basefont>
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
<IfModule !mpm_netware_module>
User daemon
Group daemon
</IfModule>
ServerAdmin [email protected]
DocumentRoot "/usr/local/apache/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog logs/error_log
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order