You are hereInstalling Magento on 1and1 VPS Hosting

Installing Magento on 1and1 VPS Hosting

By hagrin - Posted on 04 May 2009

After having issues installing Magento on a GoDaddy Virtual Dedicated Server (VDS), I had two clients that wanted Magento installed on 1and1's Virtual Private Server (VPS) hosting package. After struggling with this process, I decided that I would document that process.

  1. Log into your 1and1 Control Panel.
  2. Click on Domains and setup your domain as necessary. This will link your domain to your hosting package.
  3. Click on Server Administration -> Server Access Data. Here, you will find all the login information needed to login to your Virtuozzo and Plesk control panels as well as your SSH login.
  4. Login into the Virtuozzo control panel. Click System Services and then drill down into the psa and mysqld services to make sure they are started and that auto-start is enabled.
  5. Login into the Plesk control panel. Click Domains -> Create Domain. Fill out the domain information as necessary and create your FTP account at the bottom of this page. Click Next when done.
  6. On the resulting page, uncheck the option for PHP safe_mode. Click Finish at the bottom of the page.
  7. Upload the Magento files to the webserver. You can most easily do this by FTPing using the login you created when setting up the domain in the Plesk Panel. You can also SSH into your server, upload the Magento tar and untar the archive into your /var/www/vhosts//httpdocs directory.
  8. Try loading your domain in a browser. If you try to load your site in a browser and you get a "Whoops" error stating that you have an invalid PHP version, this is due to the fact that when 1and1 images your server they use an older version of PHP. Therefore, you have to update your version of PHP and you should continue with these steps. If not, try to install Magento and disregard the following steps.
  9. SSH into your server and type the following command - wget -q -O - |sh
  10. Type yum update to check the available updates, but choose No to install these updates.
  11. Type yum update php and choose Yes to all the prompts.
  12. Type yum update mcrypt* and choose Yes to any prompts.
  13. Type yum update mhash* and choose Yes to any prompts.
  14. Type yum update php-mcrypt* and choose Yes to any prompts.
  15. Type yum update php-mhash* and choose Yes to any prompts.
  16. Type /etc/init.d/httpd restart to restart Apache.
  17. Re-load your domain in your browser and you should be able to install Magento now.

Hopefully, this guide helps everyone get their Magento installation up and running with little effort on 1and VPS hosting.