試了很久還是沒辦法顯示test.php請問各位前輩是否有遇過
這樣的問題是不是我漏掉了什麼
用#emerge apache mod_php安裝
已經確定有libphp4.so
apache2.conf已將conf/modules.d/下的*.conf>includ進來
# For Apache2 we load all conf files in conf/modules.d
Include conf/modules.d/*.conf
Include conf/commonapache2.conf
然後修改/etc/conf.d/apache2
APACHE2_OPTS="-D SSL -D PHP4"
將php.ini裡的
short_open_tag = On
然後重新啟動apache但是還是無法顯示.php
還有一個疑問
#/etc/init.d/apache2 start跟#apache2 -k start有什麼不同嗎
當我用#apache2 -k start時apache可以正常啟動及停止
(用瀏覽器可正常檢視網頁)
但是用#/etc/init.d/apache2 start卻叫不起來
關於apache2+php
Moderator: Forums Team
apache2 + mod_php emerge 完後
只要改 /etc/conf.d/apache2
然後 /etc/init.d/apache2 start就可以了
只要改 /etc/conf.d/apache2
然後 /etc/init.d/apache2 start就可以了
GOT 討論區管理規則及使用指南
http://forums.gentoo.tw/viewtopic.php?t=43260
實行中!
加入 GOT 的郵件討論!
http://lists.linux.org.tw/cgi-bin/mailm ... nfo/gentoo
http://forums.gentoo.tw/viewtopic.php?t=43260
實行中!
加入 GOT 的郵件討論!
http://lists.linux.org.tw/cgi-bin/mailm ... nfo/gentoo
你應該使用Gentoo的 initscript..
先 killall apache2
然後 /etc/init.d/apache2 zap
再來 /etc/init.d/apache2 start
如果是系統服務:
rc-update add apache2 default
先 killall apache2
然後 /etc/init.d/apache2 zap
再來 /etc/init.d/apache2 start
如果是系統服務:
rc-update add apache2 default
GOT 討論區管理規則及使用指南
http://forums.gentoo.tw/viewtopic.php?t=43260
實行中!
加入 GOT 的郵件討論!
http://lists.linux.org.tw/cgi-bin/mailm ... nfo/gentoo
http://forums.gentoo.tw/viewtopic.php?t=43260
實行中!
加入 GOT 的郵件討論!
http://lists.linux.org.tw/cgi-bin/mailm ... nfo/gentoo