- 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’t work. Then download the sample data from the same page.
- Create a new database first (may be with phpmyadmin). I gave the database name ‘magento19’.
- Extract the sample data from phpmyadmin, then import the sql file (magento_sample_data_for_1.9.2.4.sql) in the extracted data.
- 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 ‘magento19’ directory
- Create a virtualhost for this site:
1sudo gedit /etc/apache2/sites-available/magento19.dev.conf
Here is the content:
1234567891011121314<VirtualHost *:80>ServerName magento19.devServerAlias www.magento19.devDocumentRoot "/home/teddy/Documents/works/magento19"DirectoryIndex index.php<Directory "/home/teddy/Documents/works/magento19">AllowOverride AllAllow from AllRequire all granted</Directory>ErrorLog ${APACHE_LOG_DIR}/magento19_error.logCustomLog ${APACHE_LOG_DIR}/magento19_access.log combined</VirtualHost>
- Enable the site:
1sudo a2ensite magento19.dev - Put it in /etc/hosts/
1sudo gedit /etc/hosts
add this line:
1127.0.0.1 magento19.dev
- Restart apache webserver:
1sudo service apache2 restart - Begin installation of magento 1.9.3.2 by opening : http://magento19.dev/developer.php. Then follow the instruction. It’d download the magento files needed.
Note: The PHP version must be between 5.2 and 6.0. I can’t use php 7.0 so I use php 5.6. - Copy and paste the directories ‘media’ and ‘skin’ in the extracted sample data into the magento19 web directory. Just override the current media and skin directories.
- Now you can run the site: http://magento19.dev/
and the admin site: http://magento19.dev/admin
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’d run well.
UPDATED
20191010
Download and Install extension GLS Shipping from https://marketplace.magento.com/gls-official-gls-dispatch.html
I 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:
|
1 2 |
CONNECT ERROR: Package file is invalid Invalid package name, allowed: [a-zA-Z0-9_-] chars |
OR (CASE FOR Indianic_Couponimpexport EXTENSION)
|
1 |
CONNECT ERROR: Package community/Indianic_Couponimpexport 1.0.0.1: requires PHP version >= 5.1.0 and <= 6.0.0 current is: 7.0.33-11+ubuntu16.04.1+deb.sury.org+1 |
BECAUSE THE PHP VERSION IN package.xml (EXTRACT FROM THE ZIP FILE) FILE LIKE THIS:
|
1 2 3 4 5 6 |
<?xml version="1.0"?> <package> <name>Indianic_Couponimpexport</name> ... <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies> </package> |
CHANGE IT TO
|
1 2 3 4 5 6 |
<?xml version="1.0"?> <package> <name>Indianic_Couponimpexport</name> ... <dependencies><required><php><min>5.1.0</min><max>7.4.0</max></php></required></dependencies> </package> |
THEN RE-ZIP (Indianic_Couponimpexport-1.0.0.1-php7.tar.gz) AND RE TRY TO UPLOAD IT AGAIN
BUT GOT ANOTHER ERROR
|
1 |
CONNECT ERROR: Unsupported resource type |
NOTE: TO RE-ZIP THE PACKAGE, IT NEED TO INCLUDE ONLY THE EXTENSION FILES. DON’T INCLUDE THE PACKAGE DIR NAME!!! SO IT’D BE BETTER TO ZIP IN THE DIR NOT OUT THE DIR
|
1 |
teddy@teddy:/media/teddy/Data1/MASTER/magento/extensions/Indianic_Couponimpexport-1.0.0.1$ tar -cvf Indianic_Couponimpexport-1.0.0.1.tgz * |
I TRIED TO BACK TO ADMIN PAGE BUT I GOT MAINTENANCE PAGE. I CAN RESOLVE IT WITH n98magerun TO DISABLE MAINTENANCE MODE:
|
1 2 |
teddy@teddy:~/Documents/works/magento19$ php n98-magerun.phar sys:maintenance --off Maintenance mode off |
I NEED TO ENABLE LOG (System -> Configuration -> Developer -> Log)
THEN CLEAR/CLEAN THE CACHE
|
1 2 3 4 5 6 7 8 9 |
teddy@teddy:~/Documents/works/magento19$ php n98-magerun.phar cache:clean Cache config cleaned Cache layout cleaned Cache block_html cleaned Cache translate cleaned Cache collections cleaned Cache eav cleaned Cache config_api cleaned Cache config_api2 cleaned |
THE LOG WILL BE IN /home/teddy/Documents/works/magento19/var/log.
DONT FORGET TO SET THE FILE PERMISSION
|
1 |
teddy@teddy:~/Documents/works/magento19$ sudo chmod -R 777 var/log/ |
I TRIED TO REUPLOAD THE PACKAGE BUT GOT THIS PERMISSION ERROR:
|
1 2 3 4 5 6 |
CONNECT ERROR: Failed to create directory: /home/teddy/Documents/works/magento19/./app/code/local/Indianic/Couponimpexport/Model/Convert/Adapter /home/teddy/Documents/works/magento19/./app/code/local/Indianic/Couponimpexport/Model/Convert/Parser /home/teddy/Documents/works/magento19/./app/code/local/Indianic/Couponimpexport/Model /home/teddy/Documents/works/magento19/./app/code/local/Indianic/Couponimpexport/etc Check permissions |
ALSO CHECK THE LOG IN /home/teddy/Documents/works/magento19/var/log/system.log
|
1 2 3 4 |
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 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 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 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 |
SOLUTION: SET THE FILE PERMISSION IN app/code/local/
|
1 |
teddy@teddy:~/Documents/works/magento19$ sudo chmod -R 777 app/code/local/ |
RE RUN THE PACKAGE INSTALL AND SUCCESS!
|
1 2 3 4 5 6 |
Package installed: community Indianic_Couponimpexport 1.0.0.1 Cleaning cache Exception during cache and session cleaning |
FOR GLS SHIPPING, AFTER SET THE PHP VERSION AND NAME, I GOT THIS ERROR MESSAGE WHEN I TRIED TO INSTALL
|
1 |
ONNECT ERROR: The 'c5994db9f1e92457396485e73b3da1c3' channel is not installed. Please use the MAGE shell script to install the 'c5994db9f1e92457396485e73b3da1c3' channel. |
THIS IS BECAUSE IN package.xml, THERE IS CHANNEL
|
1 2 3 4 5 |
<package> <name>gls_Official_GLS_Dispatch</name> ... <channel>c5994db9f1e92457396485e73b3da1c3</channel> ... |
SOLUTION: ADD THE CHANNEL (READ: https://stackoverflow.com/questions/29071430/connect-error-the-community-channel-is-not-installed-in-magento-site)
|
1 2 |
teddy@teddy:~/Documents/works/magento19$ ./mage channel-add http://connect20.magentocommerce.com/c5994db9f1e92457396485e73b3da1c3 Successfully added: http://connect20.magentocommerce.com/c5994db9f1e92457396485e73b3da1c3 |
THEN RE INSTALL BUT GOT ANOTHER ERROR:
|
1 2 3 4 5 6 |
Package installed: c5994db9f1e92457396485e73b3da1c3 gls_Official_GLS_Dispatch 1.2.4 Cleaning cache ............. Exception during cache and session cleaning |
BUT IT INSTALLED SUCCESSFULLY. I NEED TO RUN n98 TO CLEAN THE CACHE.
TRIED TO UNINSTALL
|
1 2 3 4 5 6 7 8 9 10 11 |
Starting to uninstall c5994db9f1e92457396485e73b3da1c3/gls_Official_GLS_Dispatch CONNECT ERROR: Failed to delete files: ./.././app/code/community/SynergeticAgency/Gls/Block/Adminhtml/Sales/Gls/Shipment/Grid/Renderer/Qtyparcels.php ./.././app/code/community/SynergeticAgency/Gls/Block/Adminhtml/Sales/Gls/Shipment/Grid/Renderer/Qtyupdate.php ./.././app/code/community/SynergeticAgency/Gls/Block/Adminhtml/Sales/Gls/Shipment/Grid/Renderer/Shipment.php ./.././app/code/community/SynergeticAgency/Gls/Block/Adminhtml/Sales/Gls/Shipment/Job/Grid/Renderer/Action.php ./.././app/code/community/SynergeticAgency/Gls/Block/Adminhtml/Sales/Gls/Shipment/Job/Grid/Renderer/Erroritems.php ./.././app/code/community/SynergeticAgency/Gls/Block/Adminhtml/Sales/Gls/Shipment/Job/Grid/Renderer/Jobstatus.php ./.././app/code/community/SynergeticAgency/Gls/Block/Adminhtml/Sales/Order/Address/Form/Attr/Parcelshopid.php ./.././app/design/frontend/base/default/template/gls/checkout/onepage/billing_form_additional_parcelshop.phtml Check permissions |
ALSO DELETE THE FILES MANUALLY!
BUT 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/)