|
发表于 2006-5-22 15:30:23
|
显示全部楼层
我还是搞不定WWW和PHP啊,一定要帮帮我啊,我要求不高也不求甚解,只想能成功打开/var/www/html/index.htm啊,都花了一个星期了。。。。。。
-------------------
//FC5版本如下:
[root@cunix cunoo]# host 192.168.0.78
78.0.168.192.in-addr.arpa domain name pointer my.cunix.coo.
[root@cunix cunoo]# host www.cunix.coo
www.cunix.coo is an alias for my.cunix.coo.
my.cunix.coo has address 192.168.0.78
www.cunix.coo is an alias for my.cunix.coo.
www.cunix.coo is an alias for my.cunix.coo.
[root@cunix cunoo]# rpm -qa httpd
httpd-2.2.0-5.1.2
[root@cunix cunoo]# rpm -qa ht*
httpd-2.2.0-5.1.2
httpd-manual-2.2.0-5.1.2
htmlview-3.0.0-14
[root@cunix cunoo]# rpm -qa ph*
php-pdo-5.1.4-1
php-mysql-5.1.4-1
php-5.1.4-1
php-pear-1.4.9-1
-----------------------------------
//问题:
1、默认页提示:
If you are the website administrator:
You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.
按/etc/httpd/conf.d/welcom.conf.注销掉该页内容后重启httpd。
打开网页提示:403拒绝,并不打开自建的/var/www/html/index.htm:
Forbidden
You don't have permission to access / on this server.
Apache/2.2.0 (Fedora) Server at www Port 80
2.打开.php文件老是提示保存文件。好象php并没动起来。
我该怎么办?那位大侠在FC5上有成功的经验分享一下啊,先鞠躬了。
---------
NeoAnderson兄让参考下述文章,惭愧全是E文,一个字一个字的抠出来,最终我还是搞不定啊
apache http://stanton-finley.net/fedora_cor...notes.html#Web
php http://stanton-finley.net/fedora_cor...notes.html#PHP |
|