Wordpress php file execution

2019-08-13 03:46发布

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条回答
走好不送
2楼-- · 2019-08-13 04:35

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

查看更多
登录 后发表回答