Joyent

PHP application

Preflight

  1. The PHP5 client libraries are provided in the standard php include directory. The official facebook PHP5 libraries and includes the standard core components:
    • facebookapi_php5_restlib.php
    • facebook.php
    • facebook_desktop.php
    • “footprints” directory with a sample application.

An example on how to edit the php.ini file is here for adding memcache

Installation

The Facebook PHP documentation

  1. SFTP as xxxxxxxx@xxxxxxxx.fb.joyent.us into your accelerator.
  2. Place your files into the /home/xxxxxxxx/web/public directory

Memcache

From Virtualmin

  1. In a browser log into http://xxxxxxxx.fb.joyent.us:10000/ as admin
  2. Select Webmin below Joyent Accelerator
  3. From the left-hand navigation select Other
  4. Select PHP Configuration
  5. From the right side select Edit Manually
    1. look for the line
      ;extension=memcache.so

      and change it to

      extension=memcache.so
    2. select Save
  6. From the left-hand navigation select System
  7. Select Service Management Facility
  8. On the right side check network/http:apache
  9. Select Restart pushbutton at the top to the right of Apply to Checked Items
  10. Select Include Disabled Services at the top
  11. Check memcached
  12. Select Enable pushbutton at the top and to the right of Apply to Checked Items

From SSH

  1. From your local machine,
    ssh admin@xxxxxxxx.fb.joyent.us
  2.  nano /opt/local/etc/php.ini
    1. look for the line
      ;extension=memcache.so

      and change it to

      extension=memcache.so
  3. restart apache
    sudo svcadm restart apache
  4. enable memcache
    sudo svcadm enable memcached
 
facebook/kb/php.txt · Last modified: 2007/11/20 22:40 by lderezinski
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki