如何在CentOS 7上安装OrangeScrum
OrangeScrum是一个免费的开源项目管理工具,广泛应用于中小企业。本文将和大家分享在CentOS 7服务器上安装OrangeScrum的过程。http://i1.fuimg.com/734901/bb80a9c2122bfa72.png1、更新CentOS 7系统作为sudo用户登录到您的机器并更新系统。$ sudo yum install epel-release -y$ sudo yum update -y$ sudo shutdown -r now系统重新启动后,以相同的sudo用户登录继续操作。2、安装和配置Apache安装Apache。$ sudo yum install httpd -y删除预先设置的Apache欢迎页面。$ sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf防止Apache暴露访问者web浏览器中的文件和目录。$ sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf启动Apache服务。$ sudo systemctl start httpd.service$ sudo systemctl enable httpd.service3、安装和配置MariaDB安装MariaDB。$ sudo yum install mariadb mariadb-server -y修改MariaDB数据库设置。$ sudo nano /etc/my.cnf要更改排序设置,可以向段添加几行代码,如下所示。datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockinit_connect='SET collation_connection=utf8_unicode_ci'init_connect='SET NAMES utf8'character-set-server=utf8collation-server=utf8_unicode_ciskip-character-set-client-handshake保存并退出编辑器。启动MariaDB服务。$ sudo systemctl start mariadb.service$ sudo systemctl enable mariadb.service确保MariaDB安装安全。$ sudo /usr/bin/mysql_secure_installation在这个互动过程中,回答如下问题。Enter current password for root (enter for none): EnterSet root password? : YNew password: <your-password>Re-enter new password: <your-password>Remove anonymous users? : YDisallow root login remotely? : YRemove test database and access to it? : YReload privilege tables now? : Y 4、安装和配置PHP安装PHP包。$ sudo yum -y install php$ sudo yum -y install php-mysql$ sudo yum -y install php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel增加上传文件的大小为200 MB的要求,由OrangeScrum。$ sudo cp /etc/php.ini /etc/php.ini.bak$ sudo sed -i "s/post_max_size = 8M/post_max_size = 200M/" /etc/php.ini$ sudo sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 200M/" /etc/php.ini重新启动Apache以加载新的配置。$ sudo systemctl restart httpd.service5、安装OrangeScrum找到最新的稳定版本的OrangeScrum。下载并解压缩该文件。$ cd$ wget https://github.com/Orangescrum/orangescrum/archive/<VERSION>.tar.gz$ tar -zxvf v1.6.1.tar.gz将所有的OrangeScrum文件移动到web根目录/var/www/html,然后设置适当的权限。$ sudo mv ~/orangescrum-1.6.1 /var/www/html && sudo chown root:root -R /var/www/html$ sudo chmod -R 0777 /var/www/html/orangescrum-1.6.1/{app/Config,app/tmp,app/webroot}为OrangeScrum设置一个虚拟主机。$ sudo nano /etc/httpd/conf.d/orangescrum.conf用以下设置填充该文件。<VirtualHost *:80>ServerName orangescrum.example.comDocumentRoot /var/www/html/orangescrum-1.6.1<Directory /var/www/html/orangescrum-1.6.1>Options Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow from all</Directory></VirtualHost>保存并退出编辑器。6、创建一个OrangeScrum数据库以root用户登录MySQL shell。$ mysql -u root -p使用前面设置的MariaDB root密码登录。在MySQL shell中,创建一个名为orangescrum的数据库和一个名为orangescruuser的数据库用户,并设置密码为yourpassword,然后将该数据库上的所有权限授予该数据库用户。注意:在您的便宜VPS上,确保将所有命令中的这些参数替换为您的值。CREATE DATABASE orangescrum;CREATE USER 'orangescrumuser'@'localhost' IDENTIFIED BY 'yourpassword';GRANT ALL PRIVILEGES ON orangescrum.* TO 'orangescrumuser'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;FLUSH PRIVILEGES;EXIT;导入OrangeScrum数据到OrangeScrum数据库。$ mysql -u root -p orangescrum < /var/www/html/orangescrum-1.6.1/database.sql更新OrangeScrum数据库凭据。$ sudo nano /var/www/html/orangescrum-1.6.1/app/Config/database.php找到以下几行:'login' => 'root','password' => '','database' => 'orangescrum',将其更换为:'login' => 'orangescrumuser','password' => 'yourpassword','database' => 'orangescrum',保存并退出编辑器。更新电子邮件的细节。$ sudo nano /var/www/html/orangescrum-1.6.1/app/Config/constants.php找出以下几行,用您的值替换电子邮件地址和密码。define("SMTP_UNAME", "youremail@gmail.com");define("SMTP_PWORD", "******");define('FROM_EMAIL_NOTIFY', 'notify@mycompany.com');define('SUPPORT_EMAIL', 'support@mycompany.com');保存并退出编辑器。重新启动Apache以加载新的配置。$ sudo systemctl restart httpd.service修改防火墙规则以允许web访问。$ sudo firewall-cmd --zone=public --permanent --add-service=http$ sudo firewall-cmd --reload导航到http://,输入您的公司名称、电子邮件ID和登录密码。以上就是在CentOS 7上安装OrangeScrum的详细步骤,希望对您有所帮助。文章来源:https://**ceres.comjoel.com/5552.html
页:
[1]