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

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: Access forbidden Error 403 แก้ยังไงค่ะ

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

โดย thatsawan » 14/06/2015 8:08 pm

ทำเเล้วนะคะ มันขึ้น
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

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

โดย mindphp » 14/06/2015 4:09 pm

ไฟล์ httpd-vhosts.conf เป็นตัวบอกว่า เรา จะเก็บไฟล์ php ไว้ที่ไหน
ให้เอาเครื่องหมาย # ออก มันจะทำงานตามที่เรากำหนด
อย่าลืม restart apache

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

โดย thatsawan » 14/06/2015 11:47 am

ใช้ได้ค่ะ host เปลี่ยน จาก localhost เป็น symfony-project.dev เเล้ว
mindphp เขียน:ลอง ทีละ step
แก้เฉพาะ ไฟล์ host แล้ว ใช้ url ตามที่แก้ดูก่อนว่าเข้าได้ไหม

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

โดย mindphp » 14/06/2015 10:56 am

ลอง ทีละ step
แก้เฉพาะ ไฟล์ host แล้ว ใช้ url ตามที่แก้ดูก่อนว่าเข้าได้ไหม

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

โดย thatsawan » 13/06/2015 9:53 pm

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

เป็น
http://symfony-project.dev/app_dev.php
E:\symfony_project

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

โดย mindphp » 13/06/2015 1:31 am

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 ไหน

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

โดย thatsawan » 13/06/2015 12:18 am

หนูไปตั้งค่า 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>

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

โดย thatsawan » 13/06/2015 12:13 am

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

ข้างบน