Installing Amfphp

To use Amfphp, download it here and then install it on your web server online or on your computer (local). Your server must run PHP 5.1 or more.

Your server should be configured so that making requests to a folder defaults to index.php, because the documentation and examples assume this. Otherwise you must direct your requests to <unzipped>/Amfphp/index.php

If you want to use the Service Browser, the Client Generator, or the Profiler you will need to configure the Back Office.

local server

To install Amfphp locally on your development computer, you need a server which is capable to run on your operating system.
For information, there are several web servers that you can download for free.

If you run windows, we advise wamp. http://www.wampserver.com/

If you run linux, you probably have a server already available, check your documentation.

If you run osx, there’s a server included that you can use if you’re ok with messing with the configuration. If you’d rather just install something and have it work, there’s mamp: http://www.mamp.info/

Once you have a PHP capable server up and running, just unzip Amfphp in it.

online server

Just check that your server supports PHP 5.1 or more. Then unzip Amfphp, and upload the Amfphp folder. The other folders and files contained in the zip are not needed for production use. You can however upload the BackOffice folder next to the Amfphp folder if you want it online.

Once you have Amfphp installed on your server, read getting started.

Comments

  1. Qwerty

    8 Août 11

    Where am I supposed to unzip amfPHP to? Into AppServphp folder or localhost or.. ? Thanks
    (will it notice me if there is reply?)

  2. Chris McAndrew

    18 Oct 11

    I just threw the downloaded folder into my htdocs (on mac) and using MAMP pointed to the amfPHP folder supplied. When you test it, it should be loading the index. I am using localhost and all is swell. Hope that helps but if you have questions don’t hesitate! – Chris

  3. Zuodong

    22 Fév 12

    When I install the amfphp 1.9 on my ubuntu 11.11 Desktop, where the web server is apache2, I found the following error

    (mx.rpc::Fault)#0
    errorID = 0
    faultCode = « Client.Error.MessageSend »
    faultDetail = « Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed »
    faultString = « Send failed »
    message = « faultCode:Client.Error.MessageSend faultString:’Send failed’ faultDetail:’Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed' »
    name = « Error »
    rootCause = (Object)#1
    code = « NetConnection.Call.Failed »
    description = « HTTP: Failed »
    details = « http://127.0.0.1/amfphp/gateway.php »
    level = « error »

    can anybody help?

  4. Sanjay

    17 Août 12

    I uploaded Amfphp (v2.1) to public_html and see the black AmfPHP Entry Point page at http://www.domain.com/Amfphp/ that says « This is the URL where you must send your requests… »

    « If you are looking for the Service Browser, it can now be found at Backoffice/ServiceBrowser.php », which is a broken link to http://www.domain.com/BackOffice/ServiceBrowser.php. This is because the above Installation notes indicate that we don’t need to copy over this folder (for production use).

    Anyway if I do copy the Backoffice folder to public_html then that link works fine, so it’s not a big issue. However some might follow the above literally and then wonder why there is a bad link on the Entry Point page. Just a thought.

  5. ariels

    18 Août 12

    thanks, we’ll see if we can find some better wording/system for the next release

  6. sakmon

    20 Déc 12

    When I install the amfphp 2.1
    This is the URL where you must send your requests to process them. In the documentation it is known as the ‘entry point’. You might also see ‘gateway’ in some other documentation.

    If you are looking for the Service Browser, it can now be found at Backoffice/ServiceBrowser.php

  7. saketkumar

    10 Juin 13

    Hi

    I am new to amfPHP, I am basically a flash developer. I just copied the Amfphp folder on my production server. Do I need to make any changes in config.php or gateway.php or any file to make it work?
    I was trying https://www.silexlabs.org/amfphp/documentation/your-first-project-using-amfphp/ but I was getting this error
    Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion

    Any help would be appreciated.

    Thanks,
    Saket Kumar
    http://saketkumar.com

  8. saketkumar

    10 Juin 13

    Got it… small typo error. For people who faced the same problem.

    Make sure you end with the slash

    netConnection.connect(« http://localhost/Amfphp/ »); right
    netConnection.connect(« http://localhost/Amfphp »); wrong

  9. riska

    27 Oct 17

    can anybody help please

    why eror ?

    (mx.rpc::Fault)#0
    errorID = 0
    faultCode = « Client.Error.MessageSend »
    faultDetail = « Channel.Security.Error error Error #2048 »
    faultString = « Send failed »
    message = « faultCode:Client.Error.MessageSend faultString:’Send failed’ faultDetail:’Channel.Security.Error error Error #2048′ »
    name = « Error »
    rootCause = (flash.events::SecurityErrorEvent)#1
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::NetConnection)#2
    client = (mx.messaging.channels::AMFChannel)#3
    channelSets = (Array)#4
    [0] (mx.messaging::ChannelSet)#5
    channelIds = (Array)#6
    [0] (null)
    clustered = false
    configured = false
    connected = false
    messageAgents = (Array)#7
    [0] (mx.rpc::AsyncRequest)#8
    channelSet = (mx.messaging::ChannelSet)#5
    clientId = (null)
    connected = false
    defaultHeaders = (null)
    destination = « amfphp »
    id = « FCBD14EE-5CC8-460A-C51A-5ACB89E6337D »
    requestTimeout = 5
    session = (null)
    subtopic = «  »
    connected = false
    connectTimeout = -1
    endpoint = « http://localhost/amfphp/gateway.php »
    failoverURIs = (Array)#9
    id = (null)
    netConnection = (flash.net::NetConnection)#2
    polling = false
    pollingEnabled = true
    pollingInterval = 3000
    protocol = « http »
    reconnecting = false
    requestTimeout = -1
    uri = « http://localhost/amfphp/gateway.php »
    connected = false
    objectEncoding = 3
    proxyType = « none »
    uri = « http://localhost/amfphp/gateway.php »
    eventPhase = 2
    target = (flash.net::NetConnection)#2
    text = « Error #2048 »
    type = « securityError »

Laissez un commentaire

Événements à venir / Upcoming Events

  1. Aperopensource #46 – Édition de Noël

    21 décembre @ 19:00 - 21:00

News letter

Evénements Silex Labs sur Paris et sa région: Inscrivez vous à la Newsletter mensuelle

Silex Labs community Tweets

Facebook page