Professional Documents
Culture Documents
1. #yum -y update 2. #reboot 3. #yum -y install wget vim ntp man 4. #ntpdate pool.ntp.org 5. #yum -y install httpd mysql mysql-devel mysql-server php php-mysql phpgd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc \ 6. freeradius freeradius-mysql freeradius-utils 7. 8. #setenforce 0 9. chkconfig httpd on 10. chkconfig mysqld on 11. /etc/init.d/httpd start 12. /etc/init.d/mysqld start 13. #mysql_secure_installation mysqlpwd
14. #####Disallow root login remotely? [Y/n]n#####press 'n' 15. # iptables -F 16. # vi /var/www/html/test.php 17. <?php 18. phpinfo(); 19. ?> 20. 21. PHPmyadmin 22. cd /var/www/html/ 23. wget your-phpMyadmin.tar.gz 24. tar -zxvf your-phpMyadmin.tar.gz 25. mv your-phpMyadmin phpmyadmin 26. cd phpmyadmin 27. cp config.sample.inc.php config.inc.php 28. vi config.inc.php 29. $cfg['Servers'][$i]['auth_type'] = http;
Page 1 of 6
CentOS 6 LAMP phpmyadmin Freeradius daloradius
Page 2 of 6
CentOS 6 LAMP phpmyadmin Freeradius daloradius
Page 3 of 6
CentOS 6 LAMP phpmyadmin Freeradius daloradius
Page 4 of 6
CentOS 6 LAMP phpmyadmin Freeradius daloradius
133. vi /var/www/html/daloradius/library/daloradius.conf.php 134. 135. ########### 136. 137. $configValues['DALORADIUS_VERSION'] = '0.9-8'; 138. $configValues['FREERADIUS_VERSION'] = '2'; 139. $configValues['CONFIG_DB_ENGINE'] = 'mysql'; 140. $configValues['CONFIG_DB_HOST'] = 'localhost'; 141. $configValues['CONFIG_DB_USER'] = 'radius'; 142. $configValues['CONFIG_DB_PASS'] = 'radpass'; 143. $configValues['CONFIG_DB_NAME'] = 'radius'; 144. $configValues['CONFIG_DB_TBL_RADCHECK'] = 'radcheck'; 145. $configValues['CONFIG_DB_TBL_RADREPLY'] = 'radreply';
Page 5 of 6
CentOS 6 LAMP phpmyadmin Freeradius daloradius
Page 6 of 6
CentOS 6 LAMP phpmyadmin Freeradius daloradius