Announcement

Collapse
No announcement yet.

local re-install on wamp

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

  • local re-install on wamp

    hello
    i use wamp on windows 11 to install a copy of my espo crm (working on live)
    1 copy file
    2 copy sql
    3 create vhost espo
    => loading espo/
    and i have documentation page about post installation
    1 mode-rewrite is ok
    2 i didn't understand how to modify htacess ... all modification kill my site

    HTML Code:
    <ifModule mod_headers.c>
        Header always set Access-Control-Allow-Methods "POST, GET, PUT, PATCH, DELETE"
    </ifModule>
    
    
    
    <IfModule mod_rewrite.c>
        # RewriteEngine On
    
        # Forbid access. Not actual as redirect to `public` is applied.
        # An extra security measure if redirect not fired.
        RewriteRule ^/?data/ - [F]
        RewriteRule ^/?application/ - [F]
        RewriteRule ^/?custom/ - [F]
        RewriteRule ^/?vendor/ - [F]
        RewriteRule /?web\.config - [F]
    
        # Forbid `public` dir.
        RewriteCond %{ENV:REDIRECT_STATUS} !=200
        RewriteRule ^/?public/? - [F,L]
    
        # Skip redirect for `client` dir.
        RewriteRule ^client/ - [L]
    
    
    
        # Store base path.
        RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
        RewriteRule ^(.*)$ - [E=BASE:%1]
    
        # Add trailing slash.
        RewriteCond %{DOCUMENT_ROOT}/%{ENV:BASE}/public/$1 -d
        RewriteRule ^(.*?[^/])$ %{REQUEST_URI}/ [L,R=301,NE]
    
        # Rewrite to `public` dir.
        RewriteRule ^((?!public/).*)$ %{ENV:BASE}/public/$1 [L,NC]
    
        RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]
    
    </IfModule>
    thanks for any explain

  • #2
    please need help for testing espo crm update
    regards

    Comment


    • #3
      in wamp
      mod_rewriting is actived
      in httpd.conf i add
      Code:
      <Directory />
      Options FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
      </Directory>
      but i already block but configuration explain page ....
      thanks for any help​

      Comment


      • #4
        i continu to try my local re-installation
        now i have this message
        Code:
        The installation is disabled. It can be enabled in config files.
        i see a post that i need to find isInstalled in my config.php but that desn't existe ....
        i don't understand why it try to install it (its a local restoration)
        thanks for any help

        Comment


        • #5
          happy new year !
          somebody have an solution ?

          Comment


          • #6
            When installing in a new hosting, you have to adapt the config files in folder data with probably new passwords etc. for database.

            Comment


            • #7
              that already done i only have a with page with this message
              The installation is disabled. It can be enabled in config files.

              Comment


              • #8
                it solved ... a permission problem on folder
                regards

                Comment


                • Intellectalis
                  Intellectalis commented
                  Editing a comment
                  Can you tell which folder was the issue? As I have this issue after installing out of the box and doing below through shell:

                  find . -type d -exec chmod 755 {} + && find . -type f -exec chmod 644 {} +; find data custom client/custom -type d -exec chmod 775 {} + && find data custom client/custom -type f -exec chmod 664 {} +; chmod 775 application/Espo/Modules client/modules; chmod 754 bin/command;

                  Still this issue...

              • #9
                What was the issue? It doesn't help anyone else if you don't share the solution.

                Comment

                Working...
                X