Transcript

If you are thinking of buying Perch for your next project, the first thing you need to do is check that Perch can run on the hosting you are using.

Perch has very simple requirements of PHP5 and MySQL and can run on servers running Unix for example Linux and Mac OSX as well as on Windows. However before purchasing you can check that your server supports it.

Visit the support page at http://grabaperch.com/support and download the Server Compatibility Test Suite.

Unzip the download and upload the perchtest folder to your server (or if you are working locally place it into your site as I am doing here.)

Then visit /perchtest in a web browser. So if your domain was www.example.com you would visit http://www.example.com/perchtest

The script will immediately check that your server can run PHP and that you have PHP version 5.

If the PHP checks go through you will see step 1 of the test which asks you for your database connection details.

Server is prefilled to localhost. All localhost means is that the database is on the same server as your site. If you are working on your own computer as I am this will be correct. For many hosts this will also be correct, but some larger hosts have separate servers they use for databases. If this is the case you will have been given an IP address or URL for the database server by your host. Replace the default localhost with this.

Database is the name of the database that you will use to install Perch and store the content for your site. Perch needs this to be created before installation.

Your hosting account may already come with a database, in which case the name of this database should be in your account details. Often you are able to create databases using your control panel – for example in CPanel there is a page to create new databases and assign users. Put the name of your database in here, you will also have a username and password to access the database which you will need to enter.

Submit this form. Behind the scenes Perch will attempt to connect to your database, create a table, insert, update and delete some data. It will also check that PHP sessions are working correctly. If all these things check out you will get a PASS from the test and you will be able to run Perch on this server. Make a note of the details you used to successfully connect to the database as you will need these when you come to install Perch.

If it doesn’t work, don’t panic. If your server does support PHP5 and MySQL it is most likely that you can run Perch, you may just have to make a support request of your host or check the details you entered.

If you received a message saying, “Sorry, your server doesn’t run PHP” then you will need to get hosting that does support PHP to run Perch as this is the language it is written in. The good news is that PHP and MySQL hosting is easy to find and inexpensive.

If you received a message saying, “Perch requires PHP 5 or greater.” Your server does have PHP installed but it is probably PHP4. This version of PHP is deprecated and insecure so you should not build new sites using it. Most often hosts are supporting it for customers who have legacy sites and will either be able to switch your account to PHP 5 or can give you a way to set your site to PHP 5 by uploading an .htaccess file.

If you got as far as the database connection page then the errors you see will generally be due to incorrect database details or that the database user does not have enough permissions.

“Could not connect to the database with the information provided.” means that either your server, database name, username or password was incorrect. Check these with your host.

Errors such as “Could not create a table.” usually mean that the user does not have enough permissions, the Perch setup will need to be able to create tables. Again this is something you can check with your host. The error message given here should explain to them what you require.

Errors we see very rarely are “Perch needs at least MySQL version 4.1 to run.” – Version 4.1 is a very old version at this point, if you see this you will need to speak to your host about upgrading to a newer version of MySQL. Also “PHP Sessions are not functioning as expected.” – on a very few hosts, you need to actively configure PHP sessions. If you see this message ask your host how to configure PHP sessions.

If you try these steps and are still having problems getting the test to run please raise a support ticket in our support area. We will be happy to help you through the compatibility test even if you have not yet bought Perch. The good news is that once you have this test running successfully you should have no trouble getting Perch installed – just make sure you remember the MySQL connection details that worked!

Perch by edgeofmyseat.com

Perch is a product developed and sold by edgeofmyseat Limited t/a edgeofmyseat.com Registered as a company in England and Wales, company registration no. 04735127