donmqryh49993 2012-01-10 15:12
浏览 67
已采纳

Wordpress php文件执行

I have a wordpress website (buddypress plugin/themes). I'm using a plugin that requires access to a .php file in the plugins dirctory. The path is http://localhost.com/wp-content/plugins/wp-fb-autoconnect/_process_login.php but I'm getting the a 404 page not found error. A post on the plugins FAQs (http://www.justin-klein.com/projects/wp-fb-autoconnect) says:

I'm getting a 404 server error while trying to execute _process_login.php. Your FTP client is probably set to upload files with the wrong permissions - try changing _process_login.php and the parent directory to 755. You should be able to access _process_login.php directly and have it say "Please do not access this script directly." If not, that means your server isn't executing the php at all (and it's a problem with your server configuration rather than the plugin).

I have changed the directory permissions to 755 and I still can't access the file. I guess it's a server configuration issue.

I have no .htaccess file in the root but I'm not sure if I need to specify that a php file can be directly accessed in that or not. Can anyone suggest how I would get access to that file. I can see the directory content (just now) but can't open that file.

Please note the site is actually live on the web but since I'm messing around with permissions I replaced the actual domain with localhost for security reasons...

  • 写回答

1条回答 默认 最新

  • dongzhi1949 2012-01-19 02:53
    关注

    Sorry folks my hosting provider figured it out. Somehow my wp-content directory permissions were 757. Changed them to 775 and it works. I was only changing the files direct parent directory. Thanks @Ben D for your help

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部