Installation error

Hi all,
Trying to do a fresh install. Installation page loads, however everything breaks down as soon as I press NEXT button on language selection.
Nothing happens for a while, then following is seen on screen:

(function(){var d=YAHOO.util.Dom,b=YAHOO.util.Event,f=YAHOO.lang,e=YAHOO.widget;YAHOO.widget.TreeView=function(h,g){if(h){this.init(h);}if(g){this.buildTreeFromObject(g);}else{if(f.trim(this._el.innerHTML)){this.buildTreeFromMarkup(h);}}};var c=e.TreeView;c.prototype={id:null,_el:null,_nodes:null,locked:false,_expandAnim:null,_collapseAnim:null,_animCount:0,maxAnim:2,_hasDblClickSubscriber:false,_dblClickTimer:null,currentFocus:null,singleNodeHighlight:false,_currentlyHighlighted:null,setExpandAnim:function(g){this._expandAnim=(e.TVAnim.isValid(g))?g:null;},setCollapseAnim:function(g){this._collapseAnim=(e.TVAnim.isValid(g))?g:null;},animateExpand:function(i,j){if(this._expandAnim&&this._animCount0||(d&&this.isDynamic()&&!this.dynamicLoadComplete));}},toggle:function(){if(!this.tree.locked&&(this.hasChildren(true)||this.isDynamic())){if(this.expanded){this.collapse();}else{this.expand();}}},getHtml:function(){this.childrenRendered=false;return[’
‘,this.getNodeHtml(),this.getChildrenHtml(),"
“].join(”");},getChildrenHtml:function(){var d=[];d[d.length]=’
“;return d.join(”");},renderChildren:function(){var d=this;if(this.isDynamic()&&!this.dynamicLoadComplete){this.isLoading=true;this.tree.locked=true;if(this.dataLoader){setTimeout(function(){d.dataLoader(d,function(){d.loadComplete();});},10);}else{if(this.tree.root.dataLoader){setTimeout(function(){d.tree.root.dataLoader(d,function(){d.loadComplete();});},10);}else{return"Error: data loader not found or not specified.";}}return"";}else{return this.completeRender();}},completeRender:function(){var e=[];for(var d=0;d=this.depth||e<0){return null;}var d=this.parent;while(d.depth>e){d=d.parent;}return d;},getDepthStyle:function(d){return(this.getAncestor(d).nextSibling)?“ygtvdepthcell”:“ygtvblankdepthcell”;},getNodeHtml:function(){var e=[];e[e.length]=’
‘;}if(this.hasIcon){e[e.length]=’’;}e[e.length]=’

“;return e.join(”");},getContentHtml:function(){return"";},refresh:function(){this.getChildrenEl().innerHTML=this.completeRender();if(this.hasIcon){var d=this.getToggleEl();if(d){d.className=d.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());}}},toString:function(){return this._type+" ("+this.index+")";},_focusHighlightedItems:[],_focusedItem:null,_canHaveFocus:function(){return this.getEl().getElementsByTagName(“a”).length>0;},_removeFocus:function(){if(this._focusedItem){a.removeListener(this._focusedItem,“blur”);this._focusedItem=null;}var d;while((d=this._focusHighlightedItems.shift())){b.removeClass(d,YAHOO.widget.TreeView.FOCUS_CLASS_NAME);}},focus:function(){var f=false,d=this;if(this.tree.currentFocus){this.tree.currentFocus._removeFocus();}var e=function(g){if(g.parent){e(g.parent);g.parent.expand();}};e(this);b.getElementsBy(function(g){return(/ygtv(([tl][pmn]h?)|(content))/).test(g.className);},“td”,d.getEl().firstChild,function(h){b.addClass(h,YAHOO.widget.TreeView.FOCUS_CLASS_NAME);if(!f){var g=h.getElementsByTagName(“a”);if(g.length){g=g[0];g.focus();d._focusedItem=g;a.on(g,“blur”,function(){d.tree.fireEvent(“focusChanged”,{oldNode:d.tree.currentFocus,newNode:null});d.tree.currentFocus=null;d._removeFocus();});f=true;}}d._focusHighlightedItems.push(h);});if(f){this.tree.fireEvent(“focusChanged”,{oldNode:this.tree.currentFocus,newNode:this});this.tree.currentFocus=this;}else{this.tree.fireEvent(“focusChanged”,{oldNode:d.tree.currentFocus,newNode:null});this.tree.currentFocus=null;this._removeFocus();}return f;},getNodeCount:function(){for(var d=0,e=0;djsParser() /usr/share/crm/jssource/jsmin.php:35 294.1878 16960400 6. Minifier::minify() /usr/share/crm/jssource/jsmin.php:46 294.1883 17002192 7. Minifier->breakdownScript() /usr/share/crm/jssource/Minifier.php:131

WebServer log shows:
PHP Fatal error: Maximum execution time of 300 seconds exceeded in /usr/share/crm/jssource/Minifier.php on line 177, referer: http://192.168.1.1/crm/install.php

Server – Linux (CentOS)
APACHE Web Server

Any ideas what issue can be?

Thanks,
Rudolf

Forgot to mention I already changed user:group to www-data:www-data on all files as well as set permitions to 755

Rudolf

Hi,

What version of SuiteCRM were you trying to download, and where from?

Make sure the download finished without issue, and that the downloaded .zip extracted without issue.

Ensure that, before installing, the permissions on the files/directories of the instance are fine.

We usually recommend:

sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php

You can then increase the Timeout limits by editing your php.ini file at these values:

Set post_max_size to at least 60MB
Set upload_max_filesize settings to at least 60MB
Set max_input_time to a large number
Set memory_limit to 256MB 
Set max_execution_time to a larger number

and restart your Apache service

Does the install complete after increasing Timeout limits & Setting appropriate permissions values?

Hi John,

Thank you for suggestions.
I think I found what causes the issue, although not sure how to fix it yet.

It is definitely has something to do with permissions and ownership of the files.
I install the SuiteCRM as root. As a result, all files are owned by root. If I try to change ownership to www-data:www-data I get the problem as described above.
If I leave it as root and just change permission, I get lots of errors and warnings, but installation progresses.
It is late at night here, so will try to play with it tomorrow and will let you know the outcome.

Rudolf

Instead of changing the ownership to www-data, you could try some other variants.

I believe that ‘apache’ is quite common as the Apache username and group for centOS,
Does running the command sudo chown -R apache:apache .
help resolve this at all?

I think problem is related to the CPU power of the server.
My test “server” is a small slow machine and just did not have enough grunt to process installation scripts in time.
I tried install on KUBUNTU machine and all went good.

Now I am trying on live server, but there are separate issues. I may have to start a new thread on that.

Thank you for your help.

Rudolf