设为首页 收藏本站
查看: 1052|回复: 0

[经验分享] How to Install AbanteCart on Ubuntu 16.04 LTS-Arnold

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2019-2-19 09:01:00 | 显示全部楼层 |阅读模式
  AbanteCart is a free, open-source e-commerce platform based on PHP language. It is an>  In this tutorial, we will learn how to install AbanteCart on Ubuntu 16.04.
Requirements

  •   A server running Ubuntu 16.04.
  •   A non-root user with sudo privileges.
Install Apache, PHP, and MariaDB
  AbanteCart runs on Apache web server, written in PHP and uses MariaDB to store their data. So, you will require Apache, MariaDB, and PHP to work. First, install Apache, PHP and Other PHP modules by running the following command:
  sudo apt-get install apache2 libapache2-mod-php7.0 php7.0 php7.0-gd php7.0-zip php7.0-curl php7.0-mbstring php7.0-mysql -y
  Next, you will need to add the MariaDB repository to your system. Because, the latest version of the MariaDB is not available in Ubuntu default repository.
  You can add the repository by running the following command:
  sudo apt-get install software-properties-common -y
  sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
  sudo add-apt-repository 'deb [arch=amd64] http://www.ftp.saix.net/DB/mariadb/repo/10.1/ubuntu xenial main'
  Next, update the repository by running the following command:
  sudo apt-get update -y
  Finally, install the MariaDB server with the following command:
  sudo apt-get install mariadb-server -y
  Next, start the Apache and MariaDB service and enable them to start on boot time by running the following command:
  sudo systemctl start apache2
  sudo systemctl enable apache2
  sudo systemctl start mysql
  sudo systemctl enable mysql
Configure Database for AbanteCart
  By default, MariaDB installation is not secured. So you will need to secure it first. You can do this by running the `mysql_secure_installation` script.
  sudo mysql_secure_installation
  Answer all the questions as shown below:
   Enter current password for root (enter for none): Enter  
Set root password? [Y/n]: Y
  
New password:Re-enter new password:Remove anonymous users? [Y/n]: Y
  
Disallow root login remotely? [Y/n]: Y
  
Remove test database and access to it? [Y/n]: Y
  
Reload privilege tables now? [Y/n]: Y
  Next, log into MySQL shell with the following command:
  mysql -u root -p
  Enter your root password, then create a database for AbanteCart using the following command:
  MariaDB [(none)]> CREATE DATABASE abantecart;
  Next, create a user for AbanteCart, assign a password and grant all privileges on AbanteCart database with the following command:

  MariaDB [(none)]> CREATE user abantecart>
  MariaDB [(none)]> GRANT ALL PRIVILEGES on abantecart.* to abantecart@localhost>  Next, flush the privileges with the following command:
  MariaDB [(none)]> FLUSH PRIVILEGES;
  Finally, exit from the MySQL shell with the following command:
  MariaDB [(none)]> exit;
Install AbanteCart
  You can download the latest version of the AbanteCart from Git repository with the following command:
  wget https://github.com/abantecart/abantecart-src/archive/master.zip
  Next, extract the downloaded file with the following command:
  unzip master.zip
  Next, copy the public_html directory from extracted directory to the Apache web root directory with the following command:
  sudo cp -r abantecart-src-master/public_html /var/www/html/abantecart
  Next, give proper permissions to the abantecart directory:
  sudo chown -R www-data:www-data /var/www/html/abantecart
  sudo chmod -R 777 /var/www/html/abantecart
  Next, you will need to create an Apache virtual host directive for AbanteCart. You can do this by creating abantecart.conf file.
  sudo nano /etc/apache2/sites-available/abantecart.conf
  Add the following lines:
  
ServerAdmin admin@yourdomain.com
  
DocumentRoot /var/www/html/abantecart
  
ServerName yourdomain.com
  

  
Options Indexes FollowSymLinks MultiViews
  
AllowOverride All
  
Order allow,deny
  
allow from all
  

  
ErrorLog /var/log/apache2/abantecart-error_log
  
CustomLog /var/log/apache2/abantecart-access_log common
  

  Save and close the file, then enable the virtual host file with the following command:
  sudo a2ensite abantecart
  Finally, restart Apache service to apply all the changes:
  sudo systemctl restart apache2
Access AbanteCart Web Interface
  Now, open your web browser and type the URL http://yourdomain.com, you will be redirected to the AbanteCart installation wizard as shown in the following image:
DSC0000.png

  Here, Agree to the License agreement and click on the Continue button, you should see the following page:
DSC0001.png

DSC0002.png

  Here, validate all the requirements, then click on the Continue button, you should see the following page:
DSC0003.png

DSC0004.png

  Here, provide your Database name, Database username, Database password, Admin username, and password, then click on the Continue button to start the installation. Once the installation is completed, you should see the following page:
DSC0005.png

  Now, click on the Login to your Control Panel button, you will be redirected to AbanteCart login page as shown below:
DSC0006.png

  Provide your admin credential and click on the Login button, you should see the AbanteCart Dashboard in the following image:
DSC0007.png




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-674167-1-1.html 上篇帖子: How to Install Django on Ubuntu 16.04 LTS-Arnold 下篇帖子: Ubuntu使用mutt+msmtp发邮件
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表