{"id":2258,"date":"2017-04-25T10:00:38","date_gmt":"2017-04-25T10:00:38","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=2258"},"modified":"2019-10-10T15:57:44","modified_gmt":"2019-10-10T15:57:44","slug":"magento-1-9-3-2","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/04\/25\/magento-1-9-3-2\/","title":{"rendered":"Magento 1.9.3.2"},"content":{"rendered":"<ol>\n<li>Download the installer from <a href=\"https:\/\/magento.com\/tech-resources\/download\">https:\/\/magento.com\/tech-resources\/download<\/a>. At the time writing, the latest magento 1.x version is 1.9.3.2. I downloaded the zip version (magento-downloader-1.9.1.0-2015-02-09-10-17-59.zip). I tried to download the .gz and tar.bz2 but it didn&#8217;t work. Then download the sample data from the same page.<\/li>\n<li>Create a new database first (may be with phpmyadmin). I gave the database name &#8216;magento19&#8217;.<\/li>\n<li>Extract the sample data from phpmyadmin, then import the sql file (magento_sample_data_for_1.9.2.4.sql) in the extracted data.<\/li>\n<li>Extract the installer file magento-downloader-1.9.1.0-2015-02-09-10-17-59.zip. It only contain single file: downloader.php. Then put this file into your magento root in your webserver. I put it in &#8216;magento19&#8217; directory<\/li>\n<li>Create a virtualhost for this site:\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/apache2\/sites-available\/magento19.dev.conf<\/pre>\n<p>Here is the content:<\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost *:80&gt;\r\n    ServerName magento19.dev\r\n    ServerAlias www.magento19.dev\r\n    DocumentRoot \"\/home\/teddy\/Documents\/works\/magento19\"\r\n    DirectoryIndex index.php\r\n    &lt;Directory \"\/home\/teddy\/Documents\/works\/magento19\"&gt;\r\n        AllowOverride All\r\n        Allow from All\r\n        Require all granted\r\n    &lt;\/Directory&gt;\r\n    \r\n    ErrorLog ${APACHE_LOG_DIR}\/magento19_error.log\r\n    CustomLog ${APACHE_LOG_DIR}\/magento19_access.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>&nbsp;<\/li>\n<li>Enable the site:\n<pre class=\"lang:default decode:true \">sudo a2ensite magento19.dev<\/pre>\n<\/li>\n<li>Put it in \/etc\/hosts\/\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/hosts<\/pre>\n<p>add this line:<\/p>\n<pre class=\"lang:default decode:true \">127.0.0.1\tmagento19.dev<\/pre>\n<p>&nbsp;<\/li>\n<li>Restart apache webserver:\n<pre class=\"lang:default decode:true \">sudo service apache2 restart<\/pre>\n<\/li>\n<li>Begin installation of magento 1.9.3.2 by opening : http:\/\/magento19.dev\/developer.php. Then follow the instruction. It&#8217;d download the magento files needed.<br \/>\n<span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span><br \/>\nNote: The PHP version must be between 5.2 and 6.0. I can&#8217;t use php 7.0 so I use php 5.6.<\/li>\n<li>Copy and paste the directories &#8216;media&#8217; and &#8216;skin&#8217; in the extracted sample data into the magento19 web directory. Just override the current media and skin directories.<\/li>\n<li>Now you can run the site: http:\/\/magento19.dev\/<br \/>\nand the admin site: http:\/\/magento19.dev\/admin<\/li>\n<\/ol>\n<p>NOTE: At first I made a mistake with installing magento 1.9 without the sample data. To install the sample data, I need to drop the database then create it again. Then follow #3 step. After that, I need to run the installer again http:\/\/magento19.dev\/developer.php but this time without downloading the magento files because the files already downloaded. Follow the instruction again then if nothing wrong, it&#8217;d run well.<\/p>\n<p>UPDATED<br \/>\n20191010<br \/>\nDownload and Install extension GLS Shipping from https:\/\/marketplace.magento.com\/gls-official-gls-dispatch.html<br \/>\nI tried to install it via connect manager then find and upload the package zip file (gls-Official_GLS_Dispatch-1.2.4.tgz). But I got this error message:<\/p>\n<pre class=\"lang:default decode:true \">CONNECT ERROR: Package file is invalid\r\nInvalid package name, allowed: [a-zA-Z0-9_-] chars<\/pre>\n<p>OR (CASE FOR Indianic_Couponimpexport EXTENSION)<\/p>\n<pre class=\"lang:default decode:true\">CONNECT ERROR: Package community\/Indianic_Couponimpexport 1.0.0.1: requires PHP version &gt;= 5.1.0 and &lt;= 6.0.0 current is: 7.0.33-11+ubuntu16.04.1+deb.sury.org+1<\/pre>\n<p>BECAUSE THE PHP VERSION IN package.xml (EXTRACT FROM THE ZIP FILE) FILE LIKE THIS:<\/p>\n<pre class=\"lang:default decode:true\">&lt;?xml version=\"1.0\"?&gt;\r\n&lt;package&gt;\r\n    &lt;name&gt;Indianic_Couponimpexport&lt;\/name&gt;\r\n    ...\r\n    &lt;dependencies&gt;&lt;required&gt;&lt;php&gt;&lt;min&gt;5.1.0&lt;\/min&gt;&lt;max&gt;6.0.0&lt;\/max&gt;&lt;\/php&gt;&lt;\/required&gt;&lt;\/dependencies&gt;\r\n&lt;\/package&gt;<\/pre>\n<p>CHANGE IT TO<\/p>\n<pre class=\"lang:default decode:true \">&lt;?xml version=\"1.0\"?&gt;\r\n&lt;package&gt;\r\n    &lt;name&gt;Indianic_Couponimpexport&lt;\/name&gt;\r\n    ...\r\n    &lt;dependencies&gt;&lt;required&gt;&lt;php&gt;&lt;min&gt;5.1.0&lt;\/min&gt;&lt;max&gt;7.4.0&lt;\/max&gt;&lt;\/php&gt;&lt;\/required&gt;&lt;\/dependencies&gt;\r\n&lt;\/package&gt;<\/pre>\n<p>THEN RE-ZIP (Indianic_Couponimpexport-1.0.0.1-php7.tar.gz) AND RE TRY TO UPLOAD IT AGAIN<br \/>\nBUT GOT ANOTHER ERROR<\/p>\n<pre class=\"lang:default decode:true\">CONNECT ERROR: Unsupported resource type<\/pre>\n<p>NOTE: TO RE-ZIP THE PACKAGE, IT NEED TO INCLUDE ONLY THE EXTENSION FILES. DON&#8217;T INCLUDE THE PACKAGE DIR NAME!!! SO IT&#8217;D BE BETTER TO ZIP IN THE DIR NOT OUT THE DIR<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:\/media\/teddy\/Data1\/MASTER\/magento\/extensions\/Indianic_Couponimpexport-1.0.0.1$ tar -cvf Indianic_Couponimpexport-1.0.0.1.tgz *<\/pre>\n<p>I TRIED TO BACK TO ADMIN PAGE BUT I GOT MAINTENANCE PAGE. I CAN RESOLVE IT WITH n98magerun TO DISABLE MAINTENANCE MODE:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento19$ php n98-magerun.phar sys:maintenance --off\r\nMaintenance mode off<\/pre>\n<p>I NEED TO ENABLE LOG (System -&gt; Configuration -&gt; Developer -&gt; Log)<br \/>\nTHEN CLEAR\/CLEAN THE CACHE<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento19$ php n98-magerun.phar cache:clean\r\nCache config cleaned\r\nCache layout cleaned\r\nCache block_html cleaned\r\nCache translate cleaned\r\nCache collections cleaned\r\nCache eav cleaned\r\nCache config_api cleaned\r\nCache config_api2 cleaned<\/pre>\n<p>THE LOG WILL BE IN \/home\/teddy\/Documents\/works\/magento19\/var\/log.<br \/>\nDONT FORGET TO SET THE FILE PERMISSION<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento19$ sudo chmod -R 777 var\/log\/<\/pre>\n<p>I TRIED TO REUPLOAD THE PACKAGE BUT GOT THIS PERMISSION ERROR:<\/p>\n<pre class=\"lang:default decode:true \">CONNECT ERROR: Failed to create directory:\r\n\/home\/teddy\/Documents\/works\/magento19\/.\/app\/code\/local\/Indianic\/Couponimpexport\/Model\/Convert\/Adapter\r\n\/home\/teddy\/Documents\/works\/magento19\/.\/app\/code\/local\/Indianic\/Couponimpexport\/Model\/Convert\/Parser\r\n\/home\/teddy\/Documents\/works\/magento19\/.\/app\/code\/local\/Indianic\/Couponimpexport\/Model\r\n\/home\/teddy\/Documents\/works\/magento19\/.\/app\/code\/local\/Indianic\/Couponimpexport\/etc\r\nCheck permissions<\/pre>\n<p>ALSO CHECK THE LOG IN \/home\/teddy\/Documents\/works\/magento19\/var\/log\/system.log<\/p>\n<pre class=\"lang:default decode:true \">2019-10-10T15:06:12+00:00 ERR (3): Warning: mkdir(): Permission denied  in \/home\/teddy\/Documents\/works\/magento19\/downloader\/lib\/Mage\/Connect\/Packager.php on line 501\r\n2019-10-10T15:06:12+00:00 ERR (3): Warning: mkdir(): Permission denied  in \/home\/teddy\/Documents\/works\/magento19\/downloader\/lib\/Mage\/Connect\/Packager.php on line 501\r\n2019-10-10T15:06:12+00:00 ERR (3): Warning: mkdir(): Permission denied  in \/home\/teddy\/Documents\/works\/magento19\/downloader\/lib\/Mage\/Connect\/Packager.php on line 501\r\n2019-10-10T15:06:12+00:00 ERR (3): Warning: mkdir(): Permission denied  in \/home\/teddy\/Documents\/works\/magento19\/downloader\/lib\/Mage\/Connect\/Packager.php on line 501<\/pre>\n<p>SOLUTION: SET THE FILE PERMISSION IN app\/code\/local\/<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento19$ sudo chmod -R 777 app\/code\/local\/<\/pre>\n<p>RE RUN THE PACKAGE INSTALL AND SUCCESS!<\/p>\n<pre class=\"lang:default decode:true \">Package installed:\r\n community Indianic_Couponimpexport 1.0.0.1\r\n\r\nCleaning cache\r\n\r\nException during cache and session cleaning<\/pre>\n<p>FOR GLS SHIPPING, AFTER SET THE PHP VERSION AND NAME, I GOT THIS ERROR MESSAGE WHEN I TRIED TO INSTALL<\/p>\n<pre class=\"lang:default decode:true\">ONNECT ERROR: The 'c5994db9f1e92457396485e73b3da1c3' channel is not installed. Please use the MAGE shell script to install the 'c5994db9f1e92457396485e73b3da1c3' channel.<\/pre>\n<p>THIS IS BECAUSE IN package.xml, THERE IS CHANNEL<\/p>\n<pre class=\"lang:default decode:true \">&lt;package&gt;\r\n    &lt;name&gt;gls_Official_GLS_Dispatch&lt;\/name&gt;\r\n    ...\r\n    &lt;channel&gt;c5994db9f1e92457396485e73b3da1c3&lt;\/channel&gt;\r\n...<\/pre>\n<p>SOLUTION: ADD THE CHANNEL (READ: https:\/\/stackoverflow.com\/questions\/29071430\/connect-error-the-community-channel-is-not-installed-in-magento-site)<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento19$ .\/mage channel-add http:\/\/connect20.magentocommerce.com\/c5994db9f1e92457396485e73b3da1c3\r\nSuccessfully added: http:\/\/connect20.magentocommerce.com\/c5994db9f1e92457396485e73b3da1c3<\/pre>\n<p>THEN RE INSTALL BUT GOT ANOTHER ERROR:<\/p>\n<pre class=\"lang:default decode:true \">Package installed:\r\n c5994db9f1e92457396485e73b3da1c3 gls_Official_GLS_Dispatch 1.2.4\r\n\r\nCleaning cache\r\n.............\r\nException during cache and session cleaning<\/pre>\n<p>BUT IT INSTALLED SUCCESSFULLY. I NEED TO RUN n98 TO CLEAN THE CACHE.<br \/>\nTRIED TO UNINSTALL<\/p>\n<pre class=\"lang:default decode:true \">Starting to uninstall c5994db9f1e92457396485e73b3da1c3\/gls_Official_GLS_Dispatch\r\n\r\nCONNECT ERROR: Failed to delete files: .\/..\/.\/app\/code\/community\/SynergeticAgency\/Gls\/Block\/Adminhtml\/Sales\/Gls\/Shipment\/Grid\/Renderer\/Qtyparcels.php\r\n.\/..\/.\/app\/code\/community\/SynergeticAgency\/Gls\/Block\/Adminhtml\/Sales\/Gls\/Shipment\/Grid\/Renderer\/Qtyupdate.php\r\n.\/..\/.\/app\/code\/community\/SynergeticAgency\/Gls\/Block\/Adminhtml\/Sales\/Gls\/Shipment\/Grid\/Renderer\/Shipment.php\r\n.\/..\/.\/app\/code\/community\/SynergeticAgency\/Gls\/Block\/Adminhtml\/Sales\/Gls\/Shipment\/Job\/Grid\/Renderer\/Action.php\r\n.\/..\/.\/app\/code\/community\/SynergeticAgency\/Gls\/Block\/Adminhtml\/Sales\/Gls\/Shipment\/Job\/Grid\/Renderer\/Erroritems.php\r\n.\/..\/.\/app\/code\/community\/SynergeticAgency\/Gls\/Block\/Adminhtml\/Sales\/Gls\/Shipment\/Job\/Grid\/Renderer\/Jobstatus.php\r\n.\/..\/.\/app\/code\/community\/SynergeticAgency\/Gls\/Block\/Adminhtml\/Sales\/Order\/Address\/Form\/Attr\/Parcelshopid.php\r\n.\/..\/.\/app\/design\/frontend\/base\/default\/template\/gls\/checkout\/onepage\/billing_form_additional_parcelshop.phtml\r\nCheck permissions<\/pre>\n<p>ALSO DELETE THE FILES MANUALLY!<br \/>\nBUT I CONCERN ABOUT GLS MENU IN THE ADMIN PAGE SHOW 404 ERROR (http:\/\/magento19.test\/index.php\/admin\/system_config\/edit\/section\/gls\/key\/107260543ac135ee4fd87400f3e821c8\/)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download the installer from https:\/\/magento.com\/tech-resources\/download. At the time writing, the latest magento 1.x version is 1.9.3.2. I downloaded the zip version (magento-downloader-1.9.1.0-2015-02-09-10-17-59.zip). I tried to download the .gz and tar.bz2 but it didn&#8217;t work. Then download the sample data from the same page. Create a new database first (may be with phpmyadmin). I gave the &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/04\/25\/magento-1-9-3-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 1.9.3.2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,98,13],"tags":[],"class_list":["post-2258","post","type-post","status-publish","format-standard","hentry","category-magento","category-magento-tutorial","category-tutorial"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=2258"}],"version-history":[{"count":14,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2258\/revisions"}],"predecessor-version":[{"id":5007,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2258\/revisions\/5007"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=2258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=2258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=2258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}