donmqryh49993 2012-01-10 23: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 10: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

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

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么