简体   繁体   中英

Php + Urban Airship + Amazon EC2 Server

I'm trying to implemnet a push notification server.

I'm using: php + Urban Airship + Amazon EC2 Server.

When I try to run the php libary of urban airship I get an error (500).

I think I need to install the HTTP_Request package on my server.

Can anyone explain me how to do it?

Had the same issue a while back. Urban airship is using HTTP_Request. You can install it either via Pear:

pear install HTTP_Request

or your package manager:

yum install php-pear-HTTP-Request

on Debian, Ubuntu and Centos:

apt-get install php-http-request

Also it seems that the library generates some notices so you might also want to set error_reporting to E_ERROR or E_WARNING

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM