ติด error ยาวๆ ประมาณนี้
`11:19:52 AM [Apache] Error: Apache shutdown unexpectedly.`
`11:19:52 AM [Apache] This may be due to a blocked port, missing dependencies,`
`11:19:52 AM [Apache] improper privileges, a crash, or a shutdown by another method.`
`11:19:52 AM [Apache] Press the Logs button to view error logs and check`
`11:19:52 AM [Apache] the Windows Event Viewer for more clues`
`11:19:52 AM [Apache] If you need more help, copy and post this`
`11:19:52 AM [Apache] entire log window on the forums`
นั่นหมายความว่า portที่ใช้ connect กับ Apache นั้น (โดยปกติเป็น port80) ถูกappอื่นใช้ไปแล้วเพราะฉะนั้น วิธีแก้ คือเราต้องเปลี่ยนportที่ใช้ connect กัย Apache ซะ
แก้ไขโดยเข้า XAMPP control panel ตรง apache เลือก "Config" option แล้วก็เลือกอันแรกเลย (httpd.conf):
พอไฟล์ httpd.conf ถูกเปิดขึ้นมา ให้เราหาบรรทัดที่เขียนไว้ว่า "Listen 80"
แก้ Listen 80 เป็น Listen 1337 (เปลี่ยนจากport 80 เป็น port 1337)
กด save file เท่านี้เราก็สามารถ start Apace ได้แล้ว
แต่นั้นหมายความว่า เวลาเราเข้า localhost เราก็ต้องเปลี่ยนเป็น localhost:1337 แทนนะจ๊ะ