Magento

Our helpdesk can install Magento for you, or you can do so yourself via cPanel > Software > Softaculous.

If you installed Magento with Softaculous, then the necessary .htaccess modifications will have already been applied to your site. But if you install Magento manually or transfer an existing install to our server, then you will need to make the changes as described below.

Paths are given as /home/$USER/public_html/ where USER is your cPanel username. If your Magento install is located in a folder, please amend the path as needed to include the folder name(s).

/home/$USER/public_html/.htaccess

Find

Options +FollowSymlinks

And change to:

Options +SymLinksIfOwnerMatch

/home/$USER/public_html/media/.htaccess

Find

Options All -Indexes

And change to:

Options -Indexes

Find

Options +FollowSymlinks

And change to:

Options +SymLinksIfOwnerMatch
  1. Log into your Magento admin area
  2. Go to “System > Configuration”
  3. Click on the “Web” link under “General” on the left hand menu
  4. Go to the “Secure” tab. Set both “Use Secure URLs in Frontend” and “Use Secure URLs in Admin” to “Yes”.
  5. Click “Save Config” in top right corner.

To migrate your site you will need

  • The Magento files from your previous host (download via FTP from your previous hosts server)
  • An SQL file (export your database in SQL format from your previous host via PHPMyAdmin)
  • Your access details to your site's cPanel on our server</li>

Transferring the Database

  1. Log into your site's cPanel on our server
  2. Go to “Databases > MySQL Database Wizard”. Follow the guidelines to set up a new (empty) database. Note down the database name, database username and database password.
  3. In your site's cPanel go to “Databases > PHPMyAdmin”. Go to “Import” and upload the SQL file you exported from your previous host.

Transferring the Files

  1. Open an FTP program and connect to our server with your FTP login details.
  2. Navigate to the /home/$USER/public_html/ folder where $USER is your cPanel username and upload all your files. If you wish to install Magento in a folder, please change the upload path accordingly.
  3. Modify .htaccess files as explained above
  4. Reset file permissions as shown below

Configuring your Site

Your Magento shop stores the database connection details in a file. To connect to the database on our server, this needs updating.

  • In cPanel > File Manager or via FTP, open the file /home/$USER/public_html/app/etc/local.xml and update with your new DB name, username and password
  • Clear the Magento cache by deleting all folders and files within /home/$USER/public_html/var/cache/

Notes

  • Your Magento admin login details will remain as before as these are stored in the database which you transferred.
  • If you are using any emails in your shop, please don't forget to set up any addresses you need in your site's cPanel on our server (unless you use an external mail service provider).

Resetting File Permissions for Magento

Magento Connect Manager can change file permissions to 777 which will not be executed under suPHP, resulting in a 500 Internal Server error. You can easily reset file permissions via SSH like so where $user is your cPanel username:

cd /home/$USER/public_html/
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 550 pear
chmod 550 mage #for magento 1.5+

Image Upload errors in Magento

If you experience image upload errors after an upgrade or fresh install, reset the file permissions as explained above for all Magento files.

Magento Backup error (file permission)

When you run Magento System Backup “System > Tools > Backup > System Backup”, you may see “500 Internal Server Error”.

The problem comes about because Magento Backup sets permissions on files. The problematic file is lib/Mage/Archive/Helper/File.php. In it you find a function public function open($mode = \'w+\', $chmod = 0666). This causes issues where permissions are changed globally to 666 which is disallowed on our servers. If you use Magento's site backup, then you must run reset the file permissions as explained above.