PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   七嘴八舌異言堂 (https://www.pcdvd.com.tw/forumdisplay.php?f=12)
-   -   [求救]Discuz系統換了環境亂噴沒解析過的php原始碼... (https://www.pcdvd.com.tw/showthread.php?t=1011567)

PAN_PAN 2013-05-09 10:08 AM

以上面的 code 讀好像 php 沒裝好的的樣子, 但是隔空 debug, 很難說

fuckoil 2013-05-09 11:13 AM

看起來像是程式的指定目錄,指錯了

php 有一個設定程式可以在那裡跑,看是不是放在正確的位置

xs910203 2013-05-09 11:14 AM

引用:
作者darkangel
1. 注意目錄本身的權限,正常應為 rwxr-xr-x。
2. 開數個 terminal 用 tail -F [log 檔],然後開 browser 開有問題的網頁監視 log 狀態,同時監視 syslog 跟 apache log。(或用 multitail)


引用:
作者PAN_PAN
以上面的 code 讀好像 php 沒裝好的的樣子, 但是隔空 debug, 很難說


引用:
作者hufun
1.先關掉所有的plugin
2.殺掉cache資料夾下面的所有資料
3.優化一下資料庫
4.關掉memory等加速器
5.重整cache
確定問題是否還在吧!

另外你的.htaccess有沒有設定?
rewrite engine

還有你在php設定的/tmp路徑
上傳路徑等

不然你看一下這邊
http://www.5ilog.com/cgi-bin/sys/li...spx/6680421.htm


權限跟設定都是常理設定沒甚麼問題 .htaccess的rewrite也on了

目前也沒開memcache之類的加速

我裝了另外一台freebsd只有套件版本不太一樣竟然就沒這問題 另外兩台都有問題

所以我又把有問題的打掉 盡量版本 套件都弄得跟沒問題的那台一模一樣

弄玩了之後...問題居然還在=____=

先謝謝各位~

我繼續找問題~有找到的話再上來報告一下!

PAN_PAN 2013-05-09 11:34 AM

引用:
作者fuckoil
看起來像是程式的指定目錄,指錯了

php 有一個設定程式可以在那裡跑,看是不是放在正確的位置



這個??

<?php

echo $_SERVER['DOCUMENT_ROOT'];

?>

xs910203 2013-05-09 12:02 PM

引用:
作者fuckoil
看起來像是程式的指定目錄,指錯了

php 有一個設定程式可以在那裡跑,看是不是放在正確的位置


路徑確定沒問題! thanks

xs910203 2013-05-09 12:05 PM

答案出爐...shinnlu大是對的!
引用:
作者shinnlu
看一下 php short open tag 的設定.
雖然不太可能啦。


問題出在php.ini

引用:
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag

short_open_tag = Off


我是copy了那份php.ini-production....
抓到快葛屁...

再次感謝各位前輩!


所有的時間均為GMT +8。 現在的時間是05:27 AM.

vBulletin Version 3.0.1
powered_by_vbulletin 2026。