{"id":2615,"date":"2022-08-30T15:26:20","date_gmt":"2022-08-30T15:26:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/04\/running-yii-application-on-centos-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:26:20","modified_gmt":"2022-08-30T15:26:20","slug":"running-yii-application-on-centos-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/running-yii-application-on-centos-collection-of-common-programming-errors\/","title":{"rendered":"Running yii application on centos-Collection of common programming errors"},"content":{"rendered":"<p>We recentlly shifted our complete yii web application to vps server with php 5.3 and apache 2.2.16 and os &#8211; centos.<\/p>\n<p>The problem is complete webapp is not working now, before it was working fine on sharedhosting.<\/p>\n<p><code>http:\/\/212.1.213.180\/yii\/requirements\/<\/code> You can check the yii requirements of my app<\/p>\n<p>when I tried running I got some protected\/runtime invalid error then I changed permission of runtime and assets to 777 then now am getting<\/p>\n<pre><code>Fatal error: Cannot redeclare class CAttributeCollection in \/home\/wwwmobit\/public_html\/yii\/framework\/collections\/CAttributeCollection.php on line 32\n<\/code><\/pre>\n<p>what could be the problem??<\/p>\n<p>I checked mod_rewrite is enable.<\/p>\n<p>you can check complete phpinfo of my site here<\/p>\n<pre><code>http:\/\/212.1.213.180\/info.php\n<\/code><\/pre>\n<p>Please resolve my problem as soon as possible.<\/p>\n<p>Do I need to edit framework file and make it to include_once?<\/p>\n<ol>\n<li>\n<p>thanks for the reply I found solution my self with couple of yii guys in live chat.<\/p>\n<p>The solution is to uninstall apc by pecl uninstall apc then change permission of yii folder and assets and runtime folder in project.<\/p>\n<p>Thats it.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-02-04 09:37:59. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>We recentlly shifted our complete yii web application to vps server with php 5.3 and apache 2.2.16 and os &#8211; centos. The problem is complete webapp is not working now, before it was working fine on sharedhosting. http:\/\/212.1.213.180\/yii\/requirements\/ You can check the yii requirements of my app when I tried running I got some protected\/runtime [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2615","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2615"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2615\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}