API Error: EspoCRM API unavailable. Centos 7 and Apache 2.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dom
    Junior Member
    • Jun 2016
    • 3

    API Error: EspoCRM API unavailable. Centos 7 and Apache 2.4

    rewrite_module is enabled in the conf.modules.d directory
    I have my espocrm.conf file for application configuration.
    Not sure what else to do. Any suggestions or has anyone been able to install on Centos 7? I am installing espo to a subdirectory http://myserverdomain/espocrm
  • AlexAv
    EspoCRM Team
    • May 2014
    • 124

    #2
    1. Enable mod_rewrite Module

    Find the file /etc/httpd/conf.modules.d/00-base.conf

    Add the line
    HTML Code:
    LoadModule rewrite_module modules/mod_rewrite.so

    2. Enable .htaccess File
    /etc/httpd/conf/httpd.conf

    HTML Code:
     <Directory /var/www/html>
        AllowOverride All
     </Directory>
    Then restart Apache Server

    Comment

    • Dom
      Junior Member
      • Jun 2016
      • 3

      #3

      This was already enabled so nothing to do.
      Originally posted by AlexAv
      1. Enable mod_rewrite Module

      Find the file /etc/httpd/conf.modules.d/00-base.conf

      Add the line
      HTML Code:
      LoadModule rewrite_module modules/mod_rewrite.so

      I did this - no effect. I use an espocrm.conf file located in .../httpd/conf.d/espocrm.conf

      tried #2 in both places but still the same error

      2. Enable .htaccess File
      /etc/httpd/conf/httpd.conf

      HTML Code:
      <Directory /var/www/html>
      AllowOverride All
      </Directory>
      Then restart Apache Server

      Comment

      • tarasm
        Super Moderator
        • Mar 2014
        • 573

        #4
        Perhaps, you have to modify the RewriteBase path, for more information please follow this link http://www.espocrm.com/blog/apache-s...n-for-espocrm/
        Job Offers and Requests

        Comment

        • Dom
          Junior Member
          • Jun 2016
          • 3

          #5
          Tried this as well, restarted apache and same error.

          Originally posted by tarasm
          Perhaps, you have to modify the RewriteBase path, for more information please follow this link http://www.espocrm.com/blog/apache-s...n-for-espocrm/

          Comment

          • tarasm
            Super Moderator
            • Mar 2014
            • 573

            #6
            Try to add a virtual host. The domain should look like http://espocrm.myserverdomain, instructions https://www.digitalocean.com/communi...ual-host-files
            Job Offers and Requests

            Comment

            Working...