ทำไม vps ใช้ WP-HTML-Compression ไม่ได้

เริ่มโดย obannon, 15 เมษายน 2013, 13:47:59

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

obannon

ลองลง Plugin WP-HTML-Compression บนคอมตัวเอง xampp ก็ใช้ได้ปกติครับ
แต่ไปลงบน VPS แล้วกลับไม่เกิดอะไรขึ้นเลย ทั้งสองที่เพิ่งติดตั้ง Wordpress 3.5.1 ใหม่ๆทั้งคู่ Theme เดิมๆเหมือนกันครับ
ไม่ทราบว่าต้องไปเปิดอะไรบน VPS หรือต้องไป chmod ไฟล์ไหนก่อนหรือเปล่าครับ  :'(

xvlnw.com

ถามแบบนี้ค่อนข้างตอบยากกันเลยทีเดียว
ถ้าให้ผมเดา ก็น่าจะเป็นเรื่องเกี่ยวกับ Permission นะครับ
เอาให้ชัวๆ ลอง copy Error ที่มันโชว์ว่าไม่ได้อะครับ มาโพสลงด้วย จะช่วยตอบปัญหาให้ได้เยอะขึันครับ
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

obannon

#2
ไม่มี error อะไรให้ดูเลยครับ แค่มันไม่ทำงานไปซะเฉยๆ ยังนั่งงงกับมันอยู่เลยครับ :-X

อ่อที่ว่ามันไม่ทำงานคือลง plugin ไปแล้วมันไม่เกิดอะไรขึ้นเลยนะครับ แต่เว็บยังรันปกติ

xvlnw.com

อ้างถึงจาก: obannon ใน 15 เมษายน 2013, 13:53:28
ไม่มี error อะไรให้ดูเลยครับ แค่มันไม่ทำงานไปซะเฉยๆ ยังนั่งงงกับมันอยู่เลยครับ :-X

อ่อที่ว่ามันไม่ทำงานคือลง plugin ไปแล้วมันไม่เกิดอะไรขึ้นเลยนะครับ แต่เว็บยังรันปกติ

ลองวิวโค๊ดดูหรือยังครับ ว่ามันทำงานหรือปล่าวครับ
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

obannon

#4
นี่อะครับ บน 127.0.0.1


อันนี้บน VPS ครับ

xvlnw.com

ob_start(); ลองดูว่าใช้ Function ได้หรือปล่าวครับ
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

obannon

#6
อ้างถึงจาก: xvlnw.com ใน 15 เมษายน 2013, 14:37:22
ob_start(); ลองดูว่าใช้ Function ได้หรือปล่าวครับ

ใช้ได้ครับ test.php


<?php

function callback($buffer)
{
  
// replace all the apples with oranges
  
return (str_replace("apples""oranges"$buffer));
}

ob_start("callback");

?>

<html>
<body>
<p>It's like comparing apples to oranges.</p>
</body>
</html>
<?php

ob_end_flush
();

?>

http://php.net/manual/en/function.ob-start.php

xvlnw.com

อันนี้ช่วยเหลืออะไรไม่ได้แล้วจริงๆเลยครับ
ผมเปิดไฟล์ใน Plugin แล้วไล่ดู ไม่เจอ Function ไหนที๋โฮสน่าจะปิดไว้เลยนะครับ *-*
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

obannon

อ่อครับ ขอบคุณมากๆครับ :wanwan017:
ผมเคยลองเขียนเองแล้วโค๊ดแถวๆ javascript มันเละหมดเลย  :wanwan007:

tenzamak

ในวินโดวใช้ได้  ใน linux ไม่ได้  มั่นใจเรื่อง permission ไหมครับ

treehost

permission ไม่น่าจะใช้  ใช้ windows  มันเปิดโล่งอยู่แล้ว อุอุ   :wanwan004: :wanwan004:
|(。◕‿‿◕。)| [direct=https://www.ihotvps.com]VPS SSD Raid-5[/direct] จัดโปรใจปล้ำ!.. ลด 20% แถมแรม 4GB ฟรี เริ่มต้นเพียง 700บาท
|(。◕‿‿◕。)| Line: @airwave |  [direct=https://www.facebook.com/ihotVPS]ihotVPS[/direct]

eak2222

น่าจะเป็นเพราะใช้ wordpress เวอร์ชันใหม่ ลองไปใช้ version เก่าๆดูน่าจะได้นะ