OpenCart is an open source storefront designed to provide you with flexible and granular online storefront management. Before you begin, you should have set up a lamp stack on your linode. You should also set the host name.
PHP Set
In order to use OpenCart, you need to make sure that PHP is properly configured. Make sure that the following settings /etc/php.ini
match the values in your file:
/etc/php.ini
Register_globals = off MAGIC_QUOTES_GPC = off file_uploads = 1 Session_auto_start = 0
In addition, you need to make sure that the following PHP extensions are installed:
1 |
Yum install php-mysql php-gd php-curl php-pecl-zip |
MySQL The voucher
You also need to create a database and a database user for OpenCart. To create a database and grant user permissions, issue the following command. Note that the half-colon at the end of the line (;) is critical for the end command. Your command should look like this:
1 2 3 |
Create Database Mystore; Grant all on mystore.* to ' OpenCart ' identified by ' [email protected]$ $w 0rD '; Flush privileges; |
In the example above, Mystore is the database name of the repository, OpenCart is the username, and [email protected]$ $w 0rD is the password.
Now you need to move the files that are located in the uploads directory to your Web root directory. For example, if you want your OpenCart installation to be located in https://www.bwgcode.com/, your document root may look like/srv/www/example.com/public_html.
Next, you need to make sure that OpenCart has access to specific folders and files. Issue the following command:
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 can then access your OpenCart instance through a Web browser to continue the installation process. In our case, this is https://www.bwgcode.com/.
Read and accept the license agreement and make sure to pass the preinstallation check on the second page. Configure the database connection details by providing the MySQL credentials that you created earlier. In addition, you will also create an administrator user at this time. Be sure to enter your password and email address correctly!
After the installation is complete, be sure to remove the install directory by issuing the following command:
1 |
rm-rf/srv/https://www.bwgcode.com//public_html/install |
Congratulations to you! Now you can manage your own online storefront!
Reprint Please specify: http://blog.sina.com.cn/s/blog_832ef3860102xcf6.html
tutorial on installing the Open source CMS program OpenCart in a Linux CentOS6 system