By oym on Tag:

หลังจากถามมาหลายที่ ด้วยความร้อนใจเพราะทำงานไม่ได้ ปัญหาคือผมใช้ Ubuntu Desktop สำหรับงานเขียนเว็บของโรงพยาบาล และก็เป็นได้แค่ User คนนึงที่พยายามแก้ปัญหาแล้วเข้าป่า นั่นคือพอเรียกงานใน http://localhost แล้วมันไม่แสดงอะไรเลย โหลดคาหน้าขาวๆ อยู่อย่างนั้น

ซึ่งไม่แน่ใจว่าเพราะความพยายามไปแก้ไขตัว config ของ wireless ให้ใช้ของโรงพยาบาลได้หรือไม่ ทำให้ค่าที่เกี่ยวกับ network เพี้ยนไป

ไฟล์ interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5).

# The loopback network interface #auto lo #iface lo inet loopback

-------------------------------

ไฟล์ ports.conf Listen 80

Listen 443

------------------------------- อันนี้ตอน retart apache * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ]

--------------------------------

อันนี้ตอน restart network * Reconfiguring network interfaces... /etc/network/interfaces:7: misplaced option ifdown: couldn't read interfaces file "/etc/network/interfaces" /etc/network/interfaces:7: misplaced option ifup: couldn't read interfaces file "/etc/network/interfaces" [ fail ]

. . .

โดย ip 127.0.1.1 นั้นเป็นของ wireless ครับ เท่าที่สังเกต เวลาเรียก localhost มันจะไปเรียกจาก ip นั้นแทนที่จะเป็นเครื่องตัวเอง

ใครก็ได้ ช่วยพาผมออกจากป่าทีนะครับ ต้องการความช่วยเหลือจริงๆ

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

lew Sat, 08/03/2008 - 21:46

ลองเอาคอมเมนต์ตรง

auto lo
iface lo inet loopback

ออก แล้ว restart ตัว networking ใหม่อีกรอบด้วยคำสั่งนี้

sudo /etc/init.d/networking restart

ผมเข้าใจว่าไฟล์ interface ของคุณน่าจะทำอะไรผิดบางอย่างครับ ยังไงเอามาโพสต์ทั้งไฟล์เลยน่าจะช่วยได้

LewCPE

lancaster Sat, 08/03/2008 - 22:45

เครื่องตัวเองคือ 127.0.0.1 นะครับ ผมอ่านแล้วงงๆ ไม่แน่ใจว่าคุณบังเอิญไปเซ็ท wireless ให้เป็น 127.0.0.1 รึเปล่า ถ้าใช่ก็แก้กลับละกันครับ

ป.ล. ลองแปะทั้ง interfaces ดูครับหลายๆคนน่าจะช่วยได้

oym Sat, 08/03/2008 - 23:35

คุณ lew ครับ ลองเอาคอมเมนท์ออกแล้วครับ แต่ยังไม่สามารถใช้งานได้ คุณ lancaster เท่าที่ผมเข้าใจ ตอนนี้เครื่องผมยังเป็น 127.0.0.1 อยู่ครับ ส่วน 127.0.1.1 นั่นคือ wireless ครับ ซึ่งเท่าที่เข้าใจตอนนี้ก็คือ เวลาเรียกหา localhost มันไปเรียก 127.0.1.1 แทน (ถ้าเข้าใจไม่ผิดนะครับ)

ส่วนนี้คือไฟล์ interfaces ตัวเต็มก่อนหน้าที่ผมจะไปแก้ไขให้เหลือเท่าที่เห็นข้างบน

# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5).

# The loopback network interface #auto lo #iface lo inet loopback address 192.168.3.252 netmask 255.255.255.0 gateway 192.168.3.2 wireless-key 6109a83aa7 wireless-essid PISLUX RP1

ที่เห็นคือสิ่งที่เกิดขึ้นหลังจากพยายามเซ้ตให้ใช้ได้กับไวเลสที่โรงพยาบาล ตอนนี้ใช้ที่บ้านปรับให้เป็น roaming mode แล้วครับ แต่ไฟล์ interfaces ก้ยังเป็นอย่างที่เห็น

crucifier Mon, 10/03/2008 - 10:34

เคยเป็นเหมือนกัน แต่ตอนนั้นลงใหม่ไปเลย เลยไม่รู้ว่าแก้ยังไง รอความรู้ประดับหัว ^^