Access forbidden Error 403 แก้ยังไงค่ะ

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderator: mindphp, ผู้ดูแลกระดาน

ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Re: Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

หนูไปตั้งค่า config a web server
C:\Windows\System32\drivers\etc\hosts

โค้ด: เลือกทั้งหมด

127.0.0.1       symfony-project.dev
E:\xampp\apache\conf\extra\httpd-vhosts.conf

โค้ด: เลือกทั้งหมด

##<VirtualHost *:80>
    ##ServerAdmin symfony-project.dev
    ##DocumentRoot "E:/symfony_project/web"
    ##ServerName symfony-project.dev
    ##ErrorLog "logs/symfony-project.dev.log"
    ##CustomLog "logs/symfony-project.dev-access.log" common
##</VirtualHost>
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41336
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

thatsawan เขียน:Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
เข้า url ไหน
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Re: Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

ต้องการจะ เปลี่ยน
http://localhost/symfony_project/web/app_dev.php
E:\xampp\htdocs\symfony_project\web

เป็น
http://symfony-project.dev/app_dev.php
E:\symfony_project
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41336
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

ลอง ทีละ step
แก้เฉพาะ ไฟล์ host แล้ว ใช้ url ตามที่แก้ดูก่อนว่าเข้าได้ไหม
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Re: Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

ใช้ได้ค่ะ host เปลี่ยน จาก localhost เป็น symfony-project.dev เเล้ว
mindphp เขียน:ลอง ทีละ step
แก้เฉพาะ ไฟล์ host แล้ว ใช้ url ตามที่แก้ดูก่อนว่าเข้าได้ไหม
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41336
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

ไฟล์ httpd-vhosts.conf เป็นตัวบอกว่า เรา จะเก็บไฟล์ php ไว้ที่ไหน
ให้เอาเครื่องหมาย # ออก มันจะทำงานตามที่เรากำหนด
อย่าลืม restart apache
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Re: Access forbidden Error 403 แก้ยังไงค่ะ

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

ทำเเล้วนะคะ มันขึ้น
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
mindphp เขียน:ไฟล์ httpd-vhosts.conf เป็นตัวบอกว่า เรา จะเก็บไฟล์ php ไว้ที่ไหน
ให้เอาเครื่องหมาย # ออก มันจะทำงานตามที่เรากำหนด
อย่าลืม restart apache
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: Bing [Bot] และบุคลทั่วไป 62