Post by Qphoria » Sun Jan 04, 2009 8:22 am

How do I run OpenCart on a Local Server?

The easiest way is to find an all-in-one webserver package.

EasyWamp & Xampp are popular ones. (I prefer EasyWamp)

Once you download one of those, install it. It will install the major components you need like
- Apache (main http server)
- Mysql (database)
- PHP5 (php executor)

After install, you should be able to find a home page when you visit http://localhost in the address bar. If you see the site, then you are half way there.

OpenCart, like all other database-based platforms, will need to install into a mysql database.

1. Setting up a database
On the http://localhost page, you should see a link on that page for "phpmyadmin" somewhere. You will need to go here and create a database. Call it "opencartdb"
You should have a default user already setup with the all-in-one server. On EasyWamp it is "root" with password of "root". Check the documentation for the default user in xampp. Keep this information handy for Step 3.

2. Extracting Files
Now extract the contents of the opencart zip file to the folder that corresponds to your webserver's web folder:
If you use xampp it should be C:\xampp\htdocs\
if you use easywamp it should be C:\EasyWamp\www\

you can rename opencart's top level "upload" folder to something like "oc"

3. Installing OpenCart
Now you can goto your browser and type:
http://localhost/oc/index.php
It should take you to the OpenCart installer
Enter the following exactly as shown:

Code: Select all

Database Host: localhost
Database User: root
Database Pass: root
Database Name: opencartdb
Follow the rest of the install steps and you should be done.

From this point, all things that you want to access like a webpage would go into this www or htdocs folder

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 21 guests