1、搭环境出现的问题:
1)下载禅道的框架,下载好xampp,按照禅道官网教程走;
2)因为框架和xampp不在一个目录里面,所以改了httpd.conf文件的documeroot和directory;
3)启动xampp start,之后启动xampp control;
4)点击界面的Admin,报错如下:
A)ERROR: in framework\base\router.class.php on line 2144, last called by framework\base\router.class.php on line 2102 through function connectByPDO.in framework\base\router.class.php on line 2194 when visiting ;解决的方法是把端口跟xampp control界面的统一起来,没有再报改错误了;之后再次点击Admin,又报错,如下:
B)ERROR: SQLSTATE[HY000] [1049] Unknown database 'demo' in framework\base\router.class.php on line 2144, last called by framework\base\router.class.php on line 2102 through function connectByPDO.in framework\base\router.class.php on line 2194 when visiting ;百度一下说是没有demo这个数据库,但是已经创建了,地方也是对的,就感觉不对,开始找其他原因了;发现xampp control有报警信息,如下:
9:17:38 [mysql] Problem detected!
9:17:38 [mysql] Port 3306 in use by "D:\xampp\mysql\bin\mysqld.exe --defaults-file=D:\xampp\mysql\my.ini mysqlzt"!
9:17:38 [mysql] MySQL WILL NOT start without the configured ports free!
9:17:38 [mysql] You need to uninstall/disable/reconfigure the blocking application
9:17:38 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
说是由于已经安装了禅道了,有冲突?之后我把xampp control界面上的MYSQL的config中的port改成3308了,运行正常了;而my.php设置的端口还是3306;好了下面开始框架学习了。。。