No solution yet, but will post back once it works:
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/
- 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/
Comment