This is a problem with the PHP microblogging interface

Source: Internet
Author: User
I'm using the official demo.
First, I applied for a locally tested application in Sina's open platform, which is the basic configuration.


This is true in the config function.
Define ("Wb_akey", ' 2591 ... ');d efine ("Wb_skey", ' d781abe6d6 .... ');d efine ("Wb_callback_url", ' http://127.0.0.11/weibo/callback.php ');

The configuration in the hosts is this:
127.0.0.11 shixi.com
When I click to log in with my Weibo account, I see:
You don't have permission to access/weibo/< on this server.


Reply to discussion (solution)

It doesn't matter with Weibo. You have a problem with this site setup. There is no access to that folder.

127.0.0.1 www.yz.com
127.0.0.1 yz.com
127.0.0.1 admin.yz.com

That's what I'm trying to configure, okay?

127.0.0.1 www.yz.com
127.0.0.1 yz.com
127.0.0.1 admin.yz.com

That's what I'm trying to configure, okay?


I found the information on the Internet today, I use this as if not in the local test, if placed on the domain name I applied to successfully login,
The domain name that is configured locally cannot succeed, is not my compressed package wrong?

127.0.0.1 www.yz.com
127.0.0.1 yz.com
127.0.0.1 admin.yz.com

That's what I'm trying to configure, okay?


Configuration is right, I just read it online. It was used in the original file. , it's not going to work now, just a change.

It doesn't matter with Weibo. You have a problem with this site setup. There is no access to that folder.


It seems to be my site configuration reason. I changed the configuration and changed the file a little bit.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.