douyue8685 2012-12-16 18:08
浏览 51
已采纳

新的锂框架安装返回错误403

I read the docs and installed lithium exactly like they have explained but I keep on getting a 403 forbidden error. I am new to apache and php and I have been spending two full days trying to make lithium work. I am running apache 2.0 on osx lion and here is what I did:

1- I created a new directory called my_app in localhost/~marwan/

2- I extracted the sample lithium app in to that directory.

3- I downloaded the lithium framework and extracted it into /libraries/lithium/

When I access http://localhost/~marwan/my_app/ I get the following 403 error:

You don't have permission to access /~marwan/mj/ on this server.

I have researched and added Options +FollowSymLinks to the .htaccess file and the error changed to:

You don't have permission to access /Users/marwan/Sites/my_app/app/webroot/webroot/ on this server.

I have tried to add Options +FollowSymLinks to every .htaccess file but nothing changed.

I dont know if this is relevant: websites on localhost/~marwan/ work but localhost also shows a 403 error. I tried to fiddle with different permissions posted in previous answers but with no luck.

Thank you for your help.

httpd.conf file is here http://pastebin.com/jLwHPbuq

Edit: httpd-userdir.conf is here http://pastebin.com/ZXi51pn7 httpd-vhosts.conf is here http://pastebin.com/3xqRmrzL

Update

The lithium project works when I remove the .htaccess from the main folder but it doesnt work properly because rewriting doesnt work. Here is the .htacces in the project root http://pastebin.com/vt0fVyyL

  • 写回答

2条回答 默认 最新

  • dtyrxmoj20617 2012-12-30 19:24
    关注

    I looked at the error log after restarting apache and found DocumentRoot [/usr/docs/dummy-host.example.com] does not exist so I fixed it by using this answer stackoverflow.com/questions/6671042/… and now it works.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 使用百度地图api 位置函数报错?
  • ¥15 metamask如何添加TRON自定义网络
  • ¥66 关于川崎机器人调速问题
  • ¥15 winFrom界面无法打开
  • ¥30 crossover21 ARM64版本安装软件问题
  • ¥15 mymetaobjecthandler没有进入
  • ¥15 mmo能不能做客户端怪物
  • ¥15 osm下载到arcgis出错
  • ¥15 Dell g15 每次打开eiq portal后3分钟内自动退出
  • ¥200 使用python编写程序,采用socket方式获取网页实时刷新的数据,能定时print()出来就行。