Difference between revisions of "ZurmoCRM Server Installation"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "==WORK IN PROGRESS== <reference>http://zurmo.org/wiki/installation-requirements</reference> ZurmoCRM was something my wife wanted to try in order to help her employer to be be...")
 
Line 15: Line 15:
 
<br>
 
<br>
 
Here is the process I followed:
 
Here is the process I followed:
 +
#Check the log file for the problem location
 +
[michael@localhost ~]$ tail -100 /var/www/html/zurmo/app/protected/runtime/application.log
 +
*This would provide the following
 +
<pre>
 +
...
 +
2016/05/14 18:11:00 [error] [php] Use of undefined constant MEMCACHE_ON - assumed 'MEMCACHE_ON' (/var/www/html/zurmo/app/protected/modules/zurmo/components/BeginRequestBehavior.php:177)
 +
...
 +
</pre>
 +
#Then I would edit the problem entry
 +
[michael@localhost ~]$ nano +177 /var/www/html/zurmo/app/protected/modules/zurmo/components/BeginRequestBehavior.php
 +
*Then I looked for MEMCACHE_ON and added quotes around it
 +
            if (MEMCACHE_ON)
 +
was turned into
 +
            if ('MEMCACHE_ON')
 +
Below are all the entries I found that need to be modified:
 +
<pre>
 +
2016/05/14 18:11:00 [error] [php] Use of undefined constant MEMCACHE_ON - assumed 'MEMCACHE_ON' (/var/www/html/zurmo/app/protected/modules/zurmo/components/BeginRequestBehavior.php:177)
 +
2016/05/14 18:20:15 [error] [php] Use of undefined constant PHP_CACHING_ON - assumed 'PHP_CACHING_ON' (/var/www/html/zurmo/app/protected/core/utils/ZurmoCache.php:183)
 +
2016/05/14 18:21:23 [error] [php] Use of undefined constant MEMCACHE_ON - assumed 'MEMCACHE_ON' (/var/www/html/zurmo/app/protected/core/utils/ZurmoCache.php:175)
 +
2016/05/14 18:22:12 [error] [php] Use of undefined constant SHOW_PERFORMANCE - assumed 'SHOW_PERFORMANCE' (/var/www/html/zurmo/app/protected/core/views/PageView.php:67)
 +
2016/05/14 18:39:30 [error] [php] Use of undefined constant MINIFY_SCRIPTS - assumed 'MINIFY_SCRIPTS' (/var/www/html/zurmo/app/protected/core/views/PageView.php:176)
 +
2016/05/14 18:40:33 [error] [php] Use of undefined constant MINIFY_SCRIPTS - assumed 'MINIFY_SCRIPTS' (/var/www/html/zurmo/app/protected/core/views/PageView.php:245)
 +
2016/05/14 18:41:33 [error] [php] Use of undefined constant MINIFY_SCRIPTS - assumed 'MINIFY_SCRIPTS' (/var/www/html/zurmo/app/protected/core/views/PageView.php:266)
 +
2016/05/14 18:42:21 [error] [php] Use of undefined constant SHOW_PERFORMANCE - assumed 'SHOW_PERFORMANCE' (/var/www/html/zurmo/app/protected/modules/zurmo/views/FooterView.php:91)
 +
2016/05/14 18:43:14 [error] [php] Use of undefined constant SHOW_PERFORMANCE - assumed 'SHOW_PERFORMANCE' (/var/www/html/zurmo/app/protected/modules/zurmo/views/FooterView.php:98)
 +
</pre>
 +
So if you modify all these entries the server will allow you to continue with installation.

Revision as of 17:51, 14 May 2016

WORK IN PROGRESS

<reference>http://zurmo.org/wiki/installation-requirements</reference> ZurmoCRM was something my wife wanted to try in order to help her employer to be better organized. Of course being the loving husband I am, I spent my Saturday evening trying to get the bloody thing installed on my VPS.
The steps for installation are simple enough and go as most LAMP installs do. However there were some PHP issues with how the software were written and I received the following error:

Use of undefined constant MEMCACHE_ON - assumed 'MEMCACHE_ON'

<reference>http://stackoverflow.com/questions/2941169/what-does-the-php-error-message-notice-use-of-undefined-constant-mean</reference>So looking on the web I found the following

"The error message is due to the unfortunate fact that PHP will implicitly declare an unknown token as a constant string of the same name.

That is, it's trying to interpret this (note the missing quote marks):

So then I went back to my server and found the log files. Tailing them showed me that the quotes were appearently missing from one of the files. But as I made the changes I found more and more constants not being defined correctly. So one by one I went through the errors and making corrections.

NOTE: I am no PHP expert and I am only guessing as I go.

Here is the process I followed:

  1. Check the log file for the problem location
[michael@localhost ~]$ tail -100 /var/www/html/zurmo/app/protected/runtime/application.log
  • This would provide the following
...
2016/05/14 18:11:00 [error] [php] Use of undefined constant MEMCACHE_ON - assumed 'MEMCACHE_ON' (/var/www/html/zurmo/app/protected/modules/zurmo/components/BeginRequestBehavior.php:177)
...
  1. Then I would edit the problem entry
[michael@localhost ~]$ nano +177 /var/www/html/zurmo/app/protected/modules/zurmo/components/BeginRequestBehavior.php
  • Then I looked for MEMCACHE_ON and added quotes around it
            if (MEMCACHE_ON)

was turned into

            if ('MEMCACHE_ON')

Below are all the entries I found that need to be modified:

2016/05/14 18:11:00 [error] [php] Use of undefined constant MEMCACHE_ON - assumed 'MEMCACHE_ON' (/var/www/html/zurmo/app/protected/modules/zurmo/components/BeginRequestBehavior.php:177)
2016/05/14 18:20:15 [error] [php] Use of undefined constant PHP_CACHING_ON - assumed 'PHP_CACHING_ON' (/var/www/html/zurmo/app/protected/core/utils/ZurmoCache.php:183)
2016/05/14 18:21:23 [error] [php] Use of undefined constant MEMCACHE_ON - assumed 'MEMCACHE_ON' (/var/www/html/zurmo/app/protected/core/utils/ZurmoCache.php:175)
2016/05/14 18:22:12 [error] [php] Use of undefined constant SHOW_PERFORMANCE - assumed 'SHOW_PERFORMANCE' (/var/www/html/zurmo/app/protected/core/views/PageView.php:67)
2016/05/14 18:39:30 [error] [php] Use of undefined constant MINIFY_SCRIPTS - assumed 'MINIFY_SCRIPTS' (/var/www/html/zurmo/app/protected/core/views/PageView.php:176)
2016/05/14 18:40:33 [error] [php] Use of undefined constant MINIFY_SCRIPTS - assumed 'MINIFY_SCRIPTS' (/var/www/html/zurmo/app/protected/core/views/PageView.php:245)
2016/05/14 18:41:33 [error] [php] Use of undefined constant MINIFY_SCRIPTS - assumed 'MINIFY_SCRIPTS' (/var/www/html/zurmo/app/protected/core/views/PageView.php:266)
2016/05/14 18:42:21 [error] [php] Use of undefined constant SHOW_PERFORMANCE - assumed 'SHOW_PERFORMANCE' (/var/www/html/zurmo/app/protected/modules/zurmo/views/FooterView.php:91)
2016/05/14 18:43:14 [error] [php] Use of undefined constant SHOW_PERFORMANCE - assumed 'SHOW_PERFORMANCE' (/var/www/html/zurmo/app/protected/modules/zurmo/views/FooterView.php:98)

So if you modify all these entries the server will allow you to continue with installation.