1. 虚拟机
Download VMware Workstation Player | VMware
2. Windows安装说明
Installationn process:
1) 下载: SuiteCRM:Download - SuiteCRM
XAMPP(Version 7.3):(Download XAMPP (apachefriends.org))
2) Extract and install xampp, open XAMPP control panel and turn on 'Apache' and 'MySQL'
3) Call out the XAMPP panel and restart the service Apache and MySQL, go back to the web based install wizard, hit 'back', install the SuitCRM Again.
3. Linux安装说明
1) Ubunto下载
Ubuntu 18.04.5 LTS (Bionic Beaver)
ubunto-18.04.5-desktop-amd64.iso
2)桌面VMware中打开虚拟机,创建新虚拟机
3)步骤
Install SuiteCRM on Ubuntu 16.04 | 18.04 with Apache2, MariaDB and PHP 7.2 | Website for Students
第一步:cmd中ping www.github.com中的IP地址
第二步:1. $ sudo gedit /etc/hosts(注意空格)
在弹出的text中,加入ping出来的IP地址,后面加上 github.com
sudo apt update
sudo apt install apache2
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
打开http://localhost进行测试
sudo apt-get install mariadb-server mariadb-client
所需版本为 Ubuntu 18.10 and 18.04 LTS:
sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
sudo mysql_secure_installation
sudo mysql -u root -p检验成功后,退出输入exit;
sudo apt-get install software-properties-common
sudo apt update
sudo add-apt-repository ppa:ondrej/php
sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mysql php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-gd php7.2-bcmath php7.2-imap php7.2-xml php7.2-cli php7.2-zip
这里有一个报错,是因为残留进程引起的,解决方法:
ubuntu提示E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)_dream_follower的博客-CSDN博客
sudo gedit /etc/php/7.2/apache2/php.ini
对弹出文件进行修改:
file_uploads = On allow_url_fopen = On short_open_tag = On memory_limit = 256M upload_max_filesize = 100M max_execution_time = 360 date.timezone = America/Chic
sudo systemctl restart apache2.service
sudo nano /var/www/html/phpinfo.php
<?php phpinfo( ); ?>
用http://localhost/phpinfo.php测试
sudo mysql -u root -p
CREATE DATABASE suitecrm;
CREATE USER 'suitecrmuser'@'localhost' IDENTIFIED BY 'new_password_here';
GRANT ALL ON suitecrm.* TO 'suitecrmuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
sudo apt install curl git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
sudo composer self-update 1.4.1回退版本
cd /var/www/html
sudo git clone https://github.com/salesagility/SuiteCRM.git suitecrm
cd /var/www/html/suitecrm
sudo composer install --no-dev
sudo chown -R www-data:www-data /var/www/html/suitecrm/
sudo chmod -R 755 /var/www/html/suitecrm/
sudo nano /etc/apache2/sites-available/suitecrm.conf
粘贴下面的内容:
<VirtualHost *:80> ServerAdmin admin@example.com DocumentRoot /var/www/html/suitecrm ServerName example.com ServerAlias www.example.com <Directory /var/www/html/suitecrm/> Options FollowSymlinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/html/suitecrm/> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*) index.php [PT,L] </Directory> </VirtualHost>
$ sudo gedit /etc/hosts
在file里127.0.0.1 对应域名改为 example.com
sudo systemctl restart apache2.service
sudo a2ensite suitecrm.conf
sudo a2enmod rewrite
sudo systemctl restart apache2.service