Announcement

Collapse
No announcement yet.

Installation on Digitalocean droplet

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Installation on Digitalocean droplet

    No solution yet, but will post back once it works:
    • Digitalocean droplet with Ubuntu 14.04
    • SSL enabled
    • Recommended PHP settings
      PHP version 5.5.9-1ubuntu4.14 OK
      JSON On OK
      mcrypt On OK
      pdo_mysql On OK
      GD On OK
      IMAP On OK
      max_execution_time 180 OK
      max_input_time 180 OK
      memory_limit 256M OK
      post_max_size 20M OK
      upload_max_filesize 20M OK
      MySQL Configuration
      MySQL version 5.5.47-0ubuntu0.14.04.1 OK
      Host Name localhost OK
      Database Name xx OK
      Database User Name xxx OK
    • All file / dir permissions ok

    Error :

    API Error: EspoCRM API unavailable.

    Proposed fixes :

    1. Enable "mod_rewrite". To do it run those commands in a Terminal:
    a2enmod rewrite
    service apache2 restart

    2. Enable .htaccess support. Add/edit the Server configuration settings (apache2.conf, httpd.conf):
    <Directory /PATH_TO_ESPO/>
    AllowOverride All
    </Directory>
    Afterwards run this command in a Terminal:
    service apache2 restart

    3. Try to add the RewriteBase path, open a file api/v1/.htaccess and replace the following line:
    # RewriteBase /
    To
    RewriteBase /api/v1/


    Followed all suggestions in order.


    No result : looking at Apache errorlog :


    [rewrite:error] [pid 7911] [client ...] AH00670:
    Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions :
    /var/www/espocrm/api/v1/Metadata
    referer: https://....../install/




  • #2
    Found the rewrite config issue by enabling rewrite logs.

    For Apache 2.2:
    RewriteLog /var/log/apache2/rewrite.log
    RewriteLogLevel 3

    For Apache 2.4
    LogLevel alert rewrite:trace3

    Comment

    Working...
    X