Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download link access denied #42

Closed
sepano opened this issue Aug 8, 2016 · 5 comments
Closed

download link access denied #42

sepano opened this issue Aug 8, 2016 · 5 comments

Comments

@sepano
Copy link

sepano commented Aug 8, 2016

Hi
I installed this script and added my plugin. so that i should see something in this two endpoints:
metadata: http://plugins.appchar.com/?action=get_metadata&slug=appchar
download: http://plugins.appchar.com/php5-fcgi?action=download&slug=appchar

Metadata works fine but download link returns "access denied".
I found this in apache error log:

[Mon Aug 08 15:49:45.592131 2016] [:error] [pid 32371:tid 140625072580352] [client 37.255.134.131:10853] FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: Access to the script '/usr/lib/cgi-bin/php5-fcgi' has been denied (see security.limit_extensions)

It is not folder/file permision issue
help please

@YahnisElsts
Copy link
Owner

It sounds like the script incorrectly guesses the server URL because FastCGI doesn't set the correct SCRIPT_NAME. Possibly relevant SO question.

The easiest workaround would probably be to set the server URL directly so that the script doesn't need to guess. You can do that by changing the third line in index.php to this:

$server = new Wpup_UpdateServer('http://plugins.appchar.com/');

@sepano
Copy link
Author

sepano commented Aug 8, 2016

Same Error
also i tried this:

$server = new Wpup_UpdateServer('http:\/\/plugins.appchar.com\/');

And nothing changed

@YahnisElsts
Copy link
Owner

Please check again. The download_url field in the metadata has changed and now the download works correctly. The new URL is:
http://plugins.appchar.com/?action=download&slug=appchar

@sepano
Copy link
Author

sepano commented Aug 10, 2016

You are correct.
The link is changed.

thanks for your help.

@YahnisElsts
Copy link
Owner

All right, I'm glad to heard it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants