====== Facebook Accelerators Knowledge Base ======
**Warning:** This knowledge base applies to **Facebook Accelerators** only (those with **%%.fb.joyent.us%%** in their hostnames).
If you are hosted on a standard Joyent Accelerator (e.g., if you have an Accelerator ID of '**z12345AA**'), many of the features described here will be missing or will look different. You should refer to the [[accelerators:kb:start|Joyent Accelerators Knowledge Base]] instead.
Similarly, this knowledge base does not apply to Joyent Shared Accelerators (one of [[shared:directory|these hosts]] you want to refer to the [[shared:kb:start|Shared Accelerator Knowledge Base]].
===== Welcome =====
- [[logins|Account logins and important URLs]]
- [[shared:kb:status|Joyent status and forum feeds]]
- [[differences]]
- [[faststart]]
- [[accelerators:kb:change-passwords]] (recommended)
- [[logfiles]]
===== Installing a facebook web applications =====
- [[php]]
- [[rails]] / [[capistrano]]
- [[django]]
- [[java]]
- [[virtualserver]]
- Common Ruby on Rails error: [[mysqlaccessdenied]]
===== Managing your Accelerator =====
You have root access so you are able to install almost anything (providing you do not violate the [[http://joyent.com/about/legal/accelerator-acceptable-use-policy|AUP]]).
The baseline deployment options on these accelerators are:
* Apache with PHP via mod_php or FastCGI
* Apache with Python via mod_python or via FastCGI
* Apache in front of Mongrel for Ruby / Rails
==== Software Installed ====
- [[swphp]]
- [[swpython]]
- [[swgems]]
- [[memcache]]
==== Installing software ====
- [[jpkgsrc|Joyent package source]]
- [[rsync]]
- [[scponly]] (used for restricted SFTP-only users)
==== Domains ====
Your xxxxxxxx.fb.joyent.us is already mapped to your IP. If you wish to have any other Domain names served from the accelerator, you will need to use a third party Name service
- [[domains]]
- [[domain-alias]]
- [[default-site]]
===== Mail =====
You can send email from your Accelerator using sendmail (/opt/local/bin/sendmail) or by connecting to the SMTP server on 127.0.0.1:25. You are restricted to sending email to 500 recipients per hour. You are not able to receive any email with the out-of-box configuration, though all of the parts are there (postfix, courier) for you to configure on your own if you so desire.
Upgraded facebook Accelerators do not have the sending restrictions.
===== Databases =====
We recommend that you create another database login to use for your application. In your welcome email the password for MySQL root is listed.
The two databases which are preinstalled on your Facebook Accelerator are MySQL and PostgreSQL. You have root access to the machine if you prefer another database, install it.
==== Managing databases ====
=== MySQL ===
MySQL is up and running on your delivered Facebook Accelerator. Your welcome email contains the root password for your database.
- [[manage-mysql|Manage MySQL databases]]
- [[mysql-users|Manage MySQL users]]
- [[mysql-tunnel|Connecting from your local machine]]
=== PostgreSQL ===
- [[init-postgresql]]
- [[manage-pgsql|Manage PostgreSQL databases]]
- [[pgsql-users|Manage PostgreSQL users]]
==== Working with databases ====
- [[shared:kb:connecting-to-databases|Connecting to MySQL and PostgreSQL]]
- [[shared:kb:backing-up-databases]]
- [[shared:kb:db-import-export]]
- [[shared:kb:backup-restore-postgresql|Backing up and Restoring a PostgreSQL database]]