{"id":19140,"date":"2016-05-04T07:50:54","date_gmt":"2016-05-04T12:50:54","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=19140"},"modified":"2022-12-13T14:30:59","modified_gmt":"2022-12-13T20:30:59","slug":"how-to-install-x-cart-5-on-centos","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-x-cart-5-on-centos\/","title":{"rendered":"How to install X-Cart 5 on CentOS"},"content":{"rendered":"
This install guide assumes that Apache, MySQL and PHP are already installed and configured on your Linux VPS. At the time of writing this tutorial, the latest stable version of X-Cart is 5.2.13 and it requires:<\/p>\n <\/p>\n This tutorial was tested and written for a CentOS VPS<\/a>, but it should work on any server using some RPM based Linux distribution.<\/p>\n Download the latest version of X-Cart available on the official website at ‘http:\/\/www.x-cart.com\/download.html’ to a directory on your server, then extract the archive file using the following commands:<\/p>\n Run the following command to set proper permissions:<\/p>\n Create a new MySQL database for X-Cart 5 on your server:<\/p>\n Locate the php configuration file using the following command:<\/p>\n Edit the \u2018php.ini\u2019 file and add\/modify the following lines:<\/p>\n Create a new virtual host directive in Apache. For example, edit your Apache configuration file (\u2018\/etc\/httpd\/conf\/httpd.conf\u2019 by default) and uncomment the following line:<\/p>\n Then, add the following lines at the end:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Set the following secure file permissions:<\/p>\n Open http:\/\/your-domain.com in your favorite web browser and follow the easy instructions; set an email address and password for accessing the administrator back-end of your e-commerce website, enter the MySQL database name, username and MySQL password and click ‘Next’.<\/p>\n That is it. The X-Cart 5 installation is now complete. Log in to the X-Cart administration back-end at http:\/\/your-domain.com\/admin.php , configure X-Cart according to your needs, add new features and\/or disable existing ones, then add products and start creating your e-commerce website.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our CentOS Optimized VPS Hosting services<\/a>, in which case you can simply ask our expert Linux admins to install X-Cart 5<\/strong> for you. They are available 24×7 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" X-Cart is a search engine friendly shopping cart software written in PHP with many features like: WYSIWYG editor, easy-to-use web … <\/p>\nX-Cart is a search engine friendly shopping cart software written in PHP with many features like: WYSIWYG editor, easy-to-use web interface, order tracking, customer order history, real time shipping calculation, printable invoices and receipts, built-in marketing tools like up-selling, cross-selling, discounts and more.
\n<\/span><\/p>\n\n
Installation instructions<\/h4>\n
cd \/opt\/\r\nwget http:\/\/static.x-cart.com\/xc5kit\/x-cart-5.2.13-en.zip -O x-cart.zip\r\nmkdir -p \/var\/www\/html\/xcart\r\nunzip x-cart.zip -d \/var\/www\/<\/pre>\n
chown apache:apache -R \/var\/www\/xcart\/<\/pre>\n
mysql -u root -p\r\nmysql> CREATE DATABASE xcartdb;\r\nmysql> GRANT ALL PRIVILEGES ON xcartdb.* TO 'xcartuser'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\n
#php -i | grep php.ini\r\nConfiguration File (php.ini) Path => \/etc\r\nLoaded Configuration File => \/etc\/php.ini<\/pre>\n
file_uploads = On\r\nallow_url_fopen = On\r\n
memory_limit<\/code> = 256M
upload_max_filesize<\/code> = 10M
post_max_size<\/code> = 20M safe_mode = Off
magic_quotes_runtime<\/code> = Off session.auto_start = 0<\/pre>\n
#NameVirtualHost *:80<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@your-domain.com\r\nDocumentRoot \/var\/www\/html\/xcart\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/xcart\/>\r\n Options FollowSymLinks\r\n AllowOverride All\r\n<\/Directory>\r\n ErrorLog logs\/your-domain.com-error_log\r\n CustomLog logs\/your-domain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
service httpd restart<\/pre>\n
chmod 755 \/var\/www\/html\/xcart\/\r\nchmod 755 \/var\/www\/html\/xcart\/etc\/\r\nchmod 644 \/var\/www\/html\/xcart\/etc\/config.php\r\nchmod 644 \/var\/www\/html\/xcart\/.htaccess<\/pre>\n
<\/p>\n
\n