{"id":1506,"date":"2020-08-31T23:00:00","date_gmt":"2020-08-31T19:30:00","guid":{"rendered":"https:\/\/parsdev.com\/wpblog\/install-codeigniter\/"},"modified":"2025-07-28T08:54:26","modified_gmt":"2025-07-28T05:24:26","slug":"install-codeigniter","status":"publish","type":"post","link":"https:\/\/parsdev.com/blog\/install-codeigniter\/","title":{"rendered":"\u0686\u06af\u0648\u0646\u0647 CodeIgniter \u0631\u0627 \u062f\u0631 CentOS 7 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645"},"content":{"rendered":"<p>CodeIgniter \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9\u06cc \u0633\u0627\u062f\u0647 \u060c \u0633\u0628\u06a9 \u0648 \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u062f\u0631 \u0632\u0628\u0627\u0646 PHP \u0627\u0633\u062a&nbsp; \u06a9\u0647 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u06a9\u0645\u06a9 \u0645\u06cc&zwnj;\u0646\u0645\u0627\u06cc\u062f \u062a\u0627&nbsp; \u062f\u0631 \u06a9\u0646\u0627\u0631 \u0631\u0627\u062d\u062a\u06cc \u0648 \u0627\u0645\u0646\u06cc\u062a \u0628\u0627\u0644\u0627 \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc PHP \u0644\u0630\u062a \u0628\u06cc\u0634\u062a\u0631\u06cc \u0628\u0628\u0631\u062f.\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0628\u0647 \u0686\u06af\u0648\u0646\u06af\u06cc \u0646\u0635\u0628 \u0627\u06cc\u0646 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u0631\u0648\u06cc CentOS7 \u062e\u0648\u0627\u0647\u06cc\u0645 \u067e\u0631\u062f\u0627\u062e\u062a.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u0627\u06cc\u062c\u0627\u062f \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0628\u0631\u0627\u06cc <\/strong><strong>CodeIgniter<\/strong><\/p>\n<p>\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648 \u06a9\u0627\u0631\u0628\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 CodeIgniter \u0645\u0627 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u060c \u0627\u0628\u062a\u062f\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 MySQL \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f \u0648&nbsp; \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">\nMariaDB&gt; create database code_db;<br \/>\nMariaDB&gt; grant all privileges on codedb.* to code_db@&#39;localhost&#39; identified by &#39;password&#39;;<br \/>\nMariaDB&gt; flush privileges;<br \/>\nMariaDB&gt; exit<\/p>\n<p>\n\u0627\u06cc\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0647 \u0646\u0627\u0645 code_db \u0648 \u06a9\u0627\u0631\u0628\u0631 code_db \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u062a\u0648\u0633\u0637 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 &quot;password&quot; \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n<p><strong>\u0646\u0635\u0628 \u0628\u0633\u062a\u0647 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u06cc \u06a9\u0627\u0645\u067e\u0648\u0632\u06cc\u062a<\/strong><\/p>\n<p>\u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc CodeIgniter \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f\u060c \u0628\u0647 \u06a9\u0627\u0645\u067e\u0648\u0632\u0631&nbsp; \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f. \u0646\u0635\u0628 \u0622\u0646 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0622\u0633\u0627\u0646 \u0627\u0633\u062a:<\/p>\n<pre> <code>curl -sS https:\/\/getcomposer.org\/installer | php<br \/>\r\nmv composer.phar \/usr\/local\/bin\/composer<br \/>\r\nchmod +x \/usr\/local\/bin\/composer<\/code><\/pre>\n<p><strong>\u0686\u0627\u0631\u0686\u0648\u0628 CodeIgniter \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f<\/strong><\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0645\u0627 \u0622\u0645\u0627\u062f\u0647 \u0647\u0633\u062a\u06cc\u0645 \u062a\u0627 \u0628\u0627 \u0646\u0635\u0628 CodeIgniter \u0627\u062f\u0627\u0645\u0647 \u062f\u0647\u06cc\u0645. \u0627\u0648\u0644 \u0628\u0647 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0631\u0648\u062a \u0648\u0628 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0628\u0631\u0648\u06cc\u062f.<\/p>\n<pre> <code>cd \/var\/www\/html\/<\/code><\/pre>\n<p>\u0633\u067e\u0633 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 CodeIgniter \u0627\u0632 \u0645\u062e\u0632\u0646 git \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645<\/p>\n<pre> <code>git clone https:\/\/github.com\/bcit-ci\/CodeIgniter.git<\/code><\/pre>\n<p>\u0628\u0639\u062f \u0645\u0627 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u06a9\u0627\u0645\u067e\u0648\u0632\u0631&nbsp; \u0631\u0627 \u0646\u0635\u0628&nbsp; \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f:<\/p>\n<pre> <code>composer install<\/code><\/pre>\n<p style=\"text-align: center;\">\n<img decoding=\"async\" alt=\"\" src=\"https:\/\/files.parsdev.com\/data\/\/1553636183_.png\" style=\"width: 1126px; height: 641px;\" \/><\/p>\n<p>\u062d\u0627\u0644\u0627 \u0645\u0627 \u0645\u0627\u0644\u06a9\u06cc\u062a \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0631\u0627 \u0628\u0647 apache \u062a\u0628\u062f\u06cc\u0644 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f:<\/p>\n<pre> <code>chown -R apache:apache \/var\/www\/html<\/code><\/pre>\n<p><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc CodeIgniter \u0628\u0631 \u067e\u0627\u06cc\u0647 URL<\/strong><\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc&nbsp; \u0628\u0631 \u067e\u0627\u06cc\u0647 URL\u0631\u0627 \u0628\u0648\u0633\u06cc\u0644\u0647 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0641\u0627\u06cc\u0644 \u0632\u06cc\u0631 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u0647\u06cc\u0645:<\/p>\n<pre> <code>vi \/var\/www\/html\/application\/config\/config.php<\/code><\/pre>\n<p>\n\u062e\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<pre> <code> $config[&#39;base_url&#39;] = &#39;&#39;;<\/code><\/pre>\n<p>\n\u0648 \u062f\u0631 \u062f\u0627\u062e\u0644 \u06a9\u0648\u062a\u06cc\u0634\u0646\u060c URL \u0631\u0627 \u06a9\u0647 \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f.&nbsp; \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 :<\/p>\n<pre> <code>https:\/\/192.168.20.148.<br \/>\r\n$config[&#39;base_url&#39;] = &#39;https:\/\/192.168.20.148&#39;;<\/code><\/pre>\n<p>\n<strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0627\u0646\u06a9\u0634\u0646 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 CodeIgniter<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc CodeIgniter\u060c \u0641\u0627\u06cc\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646 \u0645\u0648\u0631\u062f \u0639\u0644\u0627\u0642\u0647 \u062e\u0648\u062f \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre> <code>vi \/var\/www\/html\/application\/config\/database.php<\/code><\/pre>\n<p>\u0628\u062e\u0634 \u0632\u06cc\u0631 \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<p dir=\"ltr\">\n$db[&#39;default&#39;] = array(<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;dsn&#39;&nbsp;&nbsp; =&gt; &#39;&#39;,<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;hostname&#39; =&gt; &#39;localhost&#39;,<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;username&#39; =&gt; &#39;&#39;,<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;password&#39; =&gt; &#39;&#39;,<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;database&#39; =&gt; &#39;&#39;,<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;dbdriver&#39; =&gt; &#39;mysqli&#39;,<\/p>\n<p>\n\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0634\u0645\u0627 \u0622\u0645\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u06cc\u06a9 \u0645\u0631\u0648\u0631\u06af\u0631 \u0648\u0628 \u0628\u0631\u0627\u06cc \u062a\u0627\u06cc\u06cc\u062f \u0627\u06cc\u0646\u06a9\u0647 CodeIgniter \u062f\u0631 \u062d\u0627\u0644 \u06a9\u0627\u0631 \u0627\u0633\u062a. \u0641\u0642\u0637 \u0622\u062f\u0631\u0633 \u067e\u0627\u06cc\u0647 \u06a9\u0647 \u0642\u0628\u0644\u0627 \u062f\u0631 \u0646\u0648\u0627\u0631 \u0622\u062f\u0631\u0633 \u0645\u0631\u0648\u0631\u06af\u0631\u062a\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">\nhttps:\/\/192.168.20.148<\/p>\n<p style=\"text-align: center;\">\n<img decoding=\"async\" alt=\"\" src=\"https:\/\/files.parsdev.com\/data\/\/1547113952_.png\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"CodeIgniter \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9\u06cc \u0633\u0627\u062f\u0647 \u060c \u0633\u0628\u06a9 \u0648 \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u062f\u0631 \u0632\u0628\u0627\u0646 PHP \u0627\u0633\u062a&nbsp; \u06a9\u0647 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u06a9\u0645\u06a9 \u0645\u06cc&zwnj;\u0646\u0645\u0627\u06cc\u062f \u062a\u0627&nbsp;&hellip;","protected":false},"author":1,"featured_media":1505,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[8],"tags":[],"class_list":{"0":"post-1506","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-server","8":"cs-entry"},"_links":{"self":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/comments?post=1506"}],"version-history":[{"count":7,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1506\/revisions"}],"predecessor-version":[{"id":6908,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1506\/revisions\/6908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/media\/1505"}],"wp:attachment":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/media?parent=1506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/categories?post=1506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/tags?post=1506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}