Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OK, so I am following this tutorial and I'm trying to deploy the sample code onto my MySQL and PHP web server over at Hostgator.

OK, so I have all of the files contained in a folder called plaincart (the folder I downloaded from the site I mentioned above).

Now, in the README file, it says the following about installing this on a webserver:


1.) Unzip to the root folder under your 
    HTTP directory ( or under your preferred directory) 

2.) Create a database and database user on your web
    server for Plaincart

3.) Use the sql dump in plaincart.sql to generate the
    tables and example data

4.) Modify the database connection settings in 

5.) If you want to accept paypal modify the settings
    in include/paypal/ . More information
    about this paypal stuff can be found in

OK, so how EXACTLY do I go about doing these steps? From #2 onwards. Obviously I know how to unzip the file, and I can just dump it into my web server, correct?

2) How to I create a database on my server?

3) I'm assuming this is referring to filling the newly created database (from step #2) with sample data contained in a file from the plaincart folder? I have that file, and have verified that it contains some sample data.

4) How do I know what to modify this to?

5) We'll see about this when we get there.

Any info on any of this is greatly appreciated, as I'm trying to help someone out with this ASAP! :)


share|improve this question
up vote 1 down vote accepted
  1. Obviously I know how to unzip the file, and I can just dump it into my web server, correct?

    yes, you can unzip it on your computer and upload it.

  2. AFAIK hostgator uses cPanel so your first step would be login to your cPanel account and go to MySQL database and create it using the wizard available there.

  3. Once you do the above you can use the phpMyAdmin available within cPanel and feed your database with the plaincart.sql there is a import option.

  4. using your preferable editor on your computer edit the file library/config.php with the data it requests then upload to the server

    for example, in the file you will have to set the user, pass and database name you have created on step 2:

    // database connection config
    $dbHost = 'localhost';
    $dbUser = 'root';
    $dbPass = '';
    $dbName = 'phpwebco_shop';

    Additional information on connecting to mysql

  5. Can't help you with this one since i dont have the file but i am sure you got the idea from the above steps that you will need to open the configuration file for paypal that comes with the file and is on that given folder and change the needed options on it.

share|improve this answer
Thank you so very much! IT WORKED!!!! – Qcom Oct 19 '10 at 22:15
you welcome :) ! – Prix Oct 19 '10 at 22:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.