Subdomains and PHP on 1 and 1

I recently wanted to create a subdomain on my 1&1 hosting package that also used the latest version of PHP to boot. Whilst the web portal at 1&1 is quite full featured, it can also be a little hard to navigate so that is why I have documented the steps I took below. To begin, let’s assume that you have logged into the portal and are ready to begin.

Creating the Subdomain

  1. Click on Domains on the left navigation bar.
  2. Click on the cog wheel to the right of the domain on which you want to add your subdomain.
  3. Choose manage subdomains.
  4. Click on Add subdomain, under the Create Subdomain sidebar on the right.
  5. Type in the subdomain name and click save.

Connect Folders to Host the Subdomain

  1. You will see it say under status, Use Your Domain. Click on that.
  2. Click on Connect to Webspace.
  3. Either browse to an existing folder or create one using the New Folder button in the bottom right.
  4. Click on the tick mark, then Save.

Setting the PHP Version

  1. Back to the main left navigation list, choose Web Hosting.
  2. Now click on PHP Settings. It’s slightly greyer on my screen, just under the MySQL Database.
  3. Find your subdomain, then click on it.
  4. Choose the PHP version you require - newest is usually for the better.
  5. Click Save.

Testing the PHP Version

If you now go to this subdomain (for me, that would be:, you might be disappointed. Did it work at all? Well, if you now use SSH to go to the folder which was created and add an index.php file, you can confirm that all is well and that you are indeed using the version of PHP you selected.

  1. cd logicalmoon/webapps (your folder will differ)
  2. nano index.php
  3. Add in: “<?php phpinfo();” without the quotes, and save the file (control-O, enter, control-X)
  4. Visit the subdomain in your browser and you should see that a) it is working and b) that the correct version of PHP is installed.
  5. Now remove the index.php file - you don’t want to leave all the other details that are shown there, visible.

That will get you started, but of course there is much more to do to have a fully working web application or site, which I will touch upon in another post.

Hi! Did you find this useful or interesting? I have an email list coming soon, but in the meantime, if you ready anything you fancy chatting about, I would love to hear from you. You can contact me here or at stephen ‘at’