- .htaccess
Here is a sample for a test installation:
# BEGIN SUGARCRM RESTRICTIONS
RedirectMatch 403 (?i).*\.log$
RedirectMatch 403 (?i)/+not_imported_.*\.txt
RedirectMatch 403 (?i)/+(soap|cache|xtemplate|data|examples|include|log4php|metadata|modules)/+.*\.(php|tpl)
RedirectMatch 403 (?i)/+emailmandelivery\.php
RedirectMatch 403 (?i)/+upload
RedirectMatch 403 (?i)/+custom/+blowfish
RedirectMatch 403 (?i)/+cache/+diagnostic
RedirectMatch 403 (?i)/+files\.md5$
# END SUGARCRM RESTRICTIONS
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /SuiteCRM_Tests/SuiteCRM-7.10.4
RewriteRule ^cache/jsLanguage/(.._..).js$ index.php?entryPoint=jslang&modulename=app_strings&lang=$1 [L,QSA]
RewriteRule ^cache/jsLanguage/(\w*)/(.._..).js$ index.php?entryPoint=jslang&modulename=$1&lang=$2 [L,QSA]
RewriteRule ^api/(.*?)$ lib/SuiteCRM/API/public/index.php/$1 [L]
RewriteRule ^api/(.*)$ - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
<FilesMatch "\.(jpg|png|gif|js|css|ico)$">
<IfModule mod_headers.c>
Header set ETag ""
Header set Cache-Control "max-age=2592000"
Header set Expires "01 Jan 2112 00:00:00 GMT"
</IfModule>
</FilesMatch>
<IfModule mod_expires.c>
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
</IfModule>
As you can see there is a line referencing the folder in which SuiteCRM is installed:
RewriteBase /SuiteCRM_Tests/SuiteCRM-7.10.4
The base is the webserver installation in this case.
If you have no reference to the SuiteCRM installation folder then there must be something wrong in your installation.
- config.php - site_url
in my test installation it is set to:
'site_url' => 'http://localhost/SuiteCRM_Tests/SuiteCRM-7.10.4',
As you can see this refers to the folder where SuiteCRM is installed.- If you moved it your system will not work. You have to update the value with the new correct ones.
- config.php - host_name
In my test installaion this is:
'host_name' => 'localhost',
In theory this should not have changed, but you have to make sure that you have the correct values.
- config.php - DB information
In my test example I have:
'dbconfig' =>
array (
'db_host_name' => 'localhost',
'db_host_instance' => 'SQLEXPRESS',
'db_user_name' => 'root',
'db_password' => '',
'db_name' => 'suitecrm7104',
'db_type' => 'mysql',
'db_port' => '',
'db_manager' => 'MysqliManager',
),
As you can see there are some values that may be different in your new installation: db_host_name, db_name, db_user_name, db_password. However these shouldn’t cause a 500 error.
-
Permissions
How precisely did you change them?
Did you verify that owner and group are correct?
A wrong value may cause a 500 error.
-
You say:
Can you be explicit? What did you do PRECISELY? Your sentence is too vague to understand what is happening.
- Error logs
Please check:
a. SuitecRM error log
(it is in the root folder of SuiteCRM) and report any Fatal error (ignore warnings and notices) ath the time in which you go a withe screen. Probably you will not find anything relevant here.
b. Browser javascript console
Please report any Fatal error (ignore warnings and notices) ath the time in which you go a withe screen. Probably you will not find anything relevant here.
c. PHP/Apache error log
(the name and the location of this file depends on yur system) and report any Fatal error (ignore warnings and notices) ath the time in which you go a withe screen. Probably you will find something relevant here.