在ubuntu16.04上安装suitecrm

1.更新ubuntu

sudo apt update

2.安装LAMP环境(Linux, Apache, MySQL & PHP)

sudo apt install apache2 apache2-utils libapache2-mod-php php php-common php-curl php-xml php-json php-mysql php-mbstring php-zip php-imap libpcre3 libpcre3-dev zlib1g zlib1g-dev mariadb-server

3.启动WEB和数据库服务器,设置可自启动

sudo systemctl start apache2 mysql

sudo systemctl enable apache2 mysql

4.设置数据库

sudo mysql_secure_installation

根据提示操作,均输入'Y'.

5.设置PHP参数

sudo nano /etc/php/7.0/apache2/php.ini

修改并保存:

upload_max_filesize = 6M

重启HTTP服务:

sudo systemctl restart apache2

6.建立suitecrm数据库

mysql -u root -p会报错.需要重置下mysql密码.

sudo mysql -u root -p 不用密码进入.

update mysql.user set authentication_string=PASSWORD('newPwd'), plugin='mysql_native_password' where user='root';
flush privileges;

退出后重新用新密码进入建数据库.

mysql -u root -p
MariaDB [(none)]> CREATE DATABASE suitecrm_db;
MariaDB [(none)]> CREATE USER 'crmadmin'@'localhost' IDENTIFIED BY 'crmsys@dmin$12';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON suitecrm_db.* TO 'crmadmin'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit;

7.安装suitecrm,给相应的文件夹授权

sudo apt -y install git    
cd /var/www/html
git clone https://github.com/salesagility/SuiteCRM.git
sudo mv SuiteCRM suitecrm
sudo chown -R www-data:www-data suitecrm   [On Debian/Ubuntu]
sudo chmod -R 755 suitecrm
ls -ld suitecrm

8.打开浏览器输入相应地址进行安装

http://SERVER_IP/suitecrm/install.php

9.问题

在ubuntu16.04上安装suitecrm_第1张图片

按提示处理

在ubuntu16.04上安装suitecrm_第2张图片

 sudo apt install php7.0-gd

你可能感兴趣的:(suitecrm)