OpenCart on Fedora 15
Updated by Linode
This guide has been deprecated and is no longer being maintained.
OpenCart is an open source storefront designed to give you flexibility and fine-grained control over your online storefront. Before getting started, you should have already set up a LAMP stack on your Linode. You should have also set the hostname.
In order to use OpenCart, you will need to ensure that PHP is configured properly. Make sure the settings below match the values in your
register_globals = Off magic_quotes_gpc = Off file_uploads = 1 session_auto_start = 0
Additionally, you will need to make sure that the following PHP extensions are installed:
yum install php-mysql php-gd php-common
You will also need to create a database and a database user for OpenCart. To create a database and grant your users permissions on it, issue the following command. Note, the semi-colons (
;) at the end of the lines are crucial for ending the commands. Your command should look like this:
1 2 3
create database mystore; grant all on mystore.* to 'opencart' identified by 'p@$$w0rD'; flush privileges;
In the example above,
mystore is the name of the database for your store,
opencart is the username, and
p@$$w0rD is the password.
Issue the following commands to download and unpack OpenCart:
1 2 3
cd /opt wget http://opencart.googlecode.com/files/opencart_v126.96.36.199.zip unzip opencart_v188.8.131.52.zip
You will now need to move the files located in the “Upload” directory to your web root. For example, if you wanted your OpenCart installation to be located at
http://www.example.com, your document root might look something like
Next, you will need to make sure that OpenCart has access to write to specific folders and files. Issue the following commands:
1 2 3 4 5 6 7 8 9
chmod 755 image/ chmod 755 image/cache/ chmod 755 image/data/ chmod 755 cache/ chmod 755 download/ chmod 755 config.php chmod 755 admin/config.php chmod 755 system/cache/ chmod 755 system/logs/
You may then visit your OpenCart instance via a web browser to continue with the installation process. In our example, this would be
Read and accept the license agreement, and make sure that the pre-installation checks are passed on the second page. Configure the database connection details by providing OpenCart with the MySQL credentials that you created earlier. Additionally, you will also create your administrator user at this time. Be sure to type your password and email address correctly!
Once you have completed the installation, be sure to delete the
install directory by issuing the following command:
rm -rf /srv/www/example.com/public_html/install
Congratulations! You are now ready to manage your own online storefront!
This guide is published under a CC BY-ND 4.0 license.