63 | | [root@localhost ~]# cd /etc/pki/tls/certs[[BR]] |
64 | | [root@localhost ~]# make httpd.pem[[BR]] |
65 | | [Fill out the questionaire][[BR]] |
66 | | [[BR]] |
67 | | Configure MySQL:[[BR]] |
68 | | [root@localhost ~]# chkconfig mysqld on[[BR]] |
69 | | [root@localhost ~]# service mysqld start[[BR]] |
70 | | [root@localhost ~]# /usr/bin/mysql_secure_installation[[BR]] |
71 | | Fill out the questions, be sure to set a new root password and remove all test accounts/dbs.[[BR]] |
72 | | [root@localhost ~]# mysql -u root -p[[BR]] |
73 | | mysql> create database casserver;[[BR]] |
74 | | mysql> use casserver;[[BR]] |
75 | | mysql> source /etc/rubycas-server/create_rubycas_mysql_db.sql[[BR]] |
| 67 | {{{ |
| 68 | [root@localhost ~]# cd /etc/pki/tls/certs |
| 69 | [root@localhost ~]# make httpd.pem |
| 70 | Now fill out the questionaire... |
| 71 | }}} |
| 72 | [[BR]] |
| 73 | Configure MySQL (example assumes local mysql):[[BR]] |
| 74 | {{{ |
| 75 | [root@localhost ~]# chkconfig mysqld on |
| 76 | [root@localhost ~]# service mysqld start |
| 77 | [root@localhost ~]# /usr/bin/mysql_secure_installation |
| 78 | }}} |
| 79 | Fill out the questions, be sure to set a new root password and remove all test accounts/dbs. It would also be very wise to create a rubycas user with limited permissions, doing so is beyond the scope of this document.[[BR]] |
| 80 | {{{ |
| 81 | [root@localhost ~]# mysql -u root -p |
| 82 | mysql> create database casserver; |
| 83 | mysql> use casserver; |
| 84 | mysql> source /etc/rubycas-server/create_rubycas_mysql_db.sql |
| 85 | }}} |
106 | | [root@localhost ~]# setenforce 0[[BR]] |
107 | | [root@localhost ~]# service httpd start[[BR]] |
108 | | [[BR]] |
109 | | Note that I disabled SELinux. This should be used only for testing purposes, to generate policy files.[[BR]] |
110 | | Here is an example SELinux policy file that worked for me (but needs a serious cleanup):[[BR]] |
| 116 | {{{ |
| 117 | [root@localhost ~]# setenforce 0 |
| 118 | [root@localhost ~]# service httpd start |
| 119 | }}} |
| 120 | [[BR]] |
| 121 | Note that I disabled SELinux. This should be used only for testing purposes, to generate policy files. Here is an example SELinux policy file that worked for me (but needs a serious cleanup):[[BR]] |