In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "how to install and configure bugfree", the content is easy to understand, clear, hope to help you solve your doubts, let the editor lead you to study and learn "how to install and configure bugfree" this article.
1. Download the running environment of Apache, Php, Mysql, etc.-- XAMPP
Web site: http://jaist.dl.sourceforge.net/project/xampp/XAMPP%20Windows/1.8.2/xampp-win32-1.8.2-3-VC9.zip
two。 Extract it to the XAMPP directory, D:\ Program Files\ XAMPP
3. Run D:\ Program Files\ XAMPP\ setup_xampp.bat
4. Run xampp-control.exe and prompt that the bugfile folder does not have read and write permissions. Check the XAMPP directory and find that there is no such folder under this directory. Then you can manually establish this folder and check it again. You can proceed to the configuration operation in the next step if you successfully pass the check.
5. Start the Apache server and Mysql server
6. Enter http:\\ localhost in the browser, and the XAMPP home page appears. Select the item in the left directory tree to learn about XAMPP. At the same time, configure the relevant password, user name and other security information under "Security".
7. Download bugfree
The website is http://51.duote.org/bugfree.zip
Unzip it and put it in the D:\ Program Files\ xampp\ htdocs directory. [note that instead of putting the bugfree directory in this directory, you want to copy the files in the bugfree directory to this directory. When I first installed it, I put the bugfree directory in the htdocs directory, but after launching the browser and typing http:\\ localhost, the expected bugfree configuration page did not pop up. But the more common method is to copy the bugfree directory to the htdocs directory, but this configuration does not work, because it is only to do understanding, so there is no in-depth exploration, please pay attention to the installation. ]
8. Enter http:\\ localhost in the browser and an error message pops up
=
PHP Error
Mysql_escape_string (): This function is deprecated; use mysql_real_escape_string () instead.
D:\ Program Files\ xampp\ htdocs\ protected\ service\ SqlService.php
551 *
552 * @ author Yupeng Lee
553 * @ param string $fieldName FieldName
OperatorName =, array ("label" = > "ID", "type" = > "number", "isBasic" = > true), "title" = > array ("label" = > "Bug title", "type" = > "string", "isBasic" = > true), "module_name" = > array ("label" = > "Module path", "type" = > "path", "isBasic" = > true), "bug_status" = > array ("label" = > "status") "type" = > "option", "isBasic" = > true, "value" = > array ("", "Active", "Resolved", "Closed"),...), "bug", "module_name", "UNDER",...)
$queryGroup = array ()
470 foreach ($searchRowConditionArr as $rowCondtion)
471 {
472$ whereStr =''
473$ tempQueryStr = self::baseGetFieldQueryStr ($searchFieldConfig, $type
$rowCondtion [$fieldName], $rowCondtion [$operatorName], $rowCondtion [$valueName])
475 if ($tempQueryStr = ='')
476 {
477 if ($rowCondtion [$leftParenthesesName] = "(" & & $rowCondtion [$rightParenthesesName] = ")")
478 {
four hundred and seventy nine
# 2 +
-D:\ Program Files\ xampp\ htdocs\ protected\ controllers\ InfoController.php: SqlService::baseGetGroupQueryStr ("id" = > array ("label" = > "ID", "type" = > "number", "isBasic" = > true), "title" = > array ("label" = > "Bug title", "type" = > "string", "isBasic" = > true), "module_name" = > array ("label" = > "Module path", "type" = > "path", "isBasic" = > true) "bug_status" = > array ("label" = > "status", "type" = > "option", "isBasic" = > true, "value" = > array ("", "Active", "Resolved", "Closed"),...), "bug", array (array ("leftParenthesesName" = > "," field "= >" module_name "," operator "= >" UNDER "," value "= >" Sample Product ",...)
553}
554}
five hundred and fifty five
556$ searchRowArr = $this- > setSpecialModuleCondiftion ($searchRowArr, $productName)
Yii::app ()-> user- > setState ($productId. '_'. $infoType. '_ search', $searchRowArr)
$getSqlResult = SqlService::baseGetGroupQueryStr ($searchFieldConfig, $infoType, $searchRowArr)
559 if (CommonService::$ApiResult ['FAIL'] = $getSqlResult [' status'])
560 {
561$ whereStr ='11'
562}
563 else
# 3 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ actions\ CInlineAction.php (50): InfoController- > actionIndex ()
45$ controller=$this- > getController ()
46$ method=new ReflectionMethod ($controller, $methodName)
47 if ($method- > getNumberOfParameters () > 0)
48 return $this- > runWithParamsInternal ($controller, $method, $params)
49 else
50 return $controller- > $methodName ()
51}
fifty-two
53}
# 4 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ CController.php (300): CInlineAction- > runWithParams ("type" = > "bug", "product_id" = > "1"))
295 {
$296$ priorAction=$this- > _ action
297$ this- > _ action=$action
298 if ($this- > beforeAction ($action))
299 {
300 if ($action- > runWithParams ($this- > getActionParams ()) = = false)
301$ this- > invalidActionParams ($action)
302 else
$this- > afterAction ($action)
304}
$305$ this- > _ action=$priorAction
# 5 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ filters\ CFilterChain.php: CController- > runAction (CInlineAction)
$129USD filter=$this- > itemAt ($this- > filterIndex++)
130 Yii::trace ('Running filter'. ($filter instanceof CInlineFilter? Get_class ($this- > controller). '.filter'. $filter- > name.' ()': get_class ($filter). '.filter ()'), 'system.web.filters.CFilterChain')
131USD filter- > filter ($this)
132}
133 else
134$ this- > controller- > runAction ($this- > action)
135}
136}
# 6 +
-
D:\ Program Files\ xampp\ htdocs\ protected\ components\ Controller.php (45): CFilterChain- > run ()
40 if ((true! = Yii::app ()-> user- > isGuest) & &
41 empty ($productId))
42 {
43 LoginService::setUserInfo ()
44}
45$ filterChain- > run ()
46}
forty-seven
48 public function init ()
49 {
50$ language = Yii::app ()-> user- > getState ('language')
# 7 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ filters\ CInlineFilter.php (59): Controller- > filterUserInfo (CFilterChain)
54 * @ param CFilterChain $filterChain the filter chain that the filter is on.
55 * /
56 public function filter ($filterChain)
57 {
58$ method='filter'.$this- > name
59$ filterChain- > controller- > $method ($filterChain)
60}
61}
# 8 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ filters\ CFilterChain.php: CInlineFilter- > filter (CFilterChain)
126 {
127 if ($this- > offsetExists ($this- > filterIndex))
128 {
$129USD filter=$this- > itemAt ($this- > filterIndex++)
130 Yii::trace ('Running filter'. ($filter instanceof CInlineFilter? Get_class ($this- > controller). '.filter'. $filter- > name.' ()': get_class ($filter). '.filter ()'), 'system.web.filters.CFilterChain')
131USD filter- > filter ($this)
132}
133 else
134$ this- > controller- > runAction ($this- > action)
135}
136}
# 9 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ filters\ CFilter.php (41): CFilterChain- > run ()
36 * /
37 public function filter ($filterChain)
38 {
39 if ($this- > preFilter ($filterChain))
40 {
41$ filterChain- > run ()
42$ this- > postFilter ($filterChain)
43}
44}
forty-five
46 / *
# 10 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ CController.php (1144): CFilter- > filter (CFilterChain)
1139 * /
1140 public function filterAccessControl ($filterChain)
1141 {
1142$ filter=new CAccessControlFilter
1143$ filter- > setRules ($this- > acce***ules ())
1144$ filter- > filter ($filterChain)
1145}
1146
1147 / * *
1148 * Generates pagination information.
1149 * This method can be used to generate pagination information given item count
# 11 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ filters\ CInlineFilter.php (59): CController- > filterAccessControl (CFilterChain)
54 * @ param CFilterChain $filterChain the filter chain that the filter is on.
55 * /
56 public function filter ($filterChain)
57 {
58$ method='filter'.$this- > name
59$ filterChain- > controller- > $method ($filterChain)
60}
61}
# 12 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ filters\ CFilterChain.php: CInlineFilter- > filter (CFilterChain)
126 {
127 if ($this- > offsetExists ($this- > filterIndex))
128 {
$129USD filter=$this- > itemAt ($this- > filterIndex++)
130 Yii::trace ('Running filter'. ($filter instanceof CInlineFilter? Get_class ($this- > controller). '.filter'. $filter- > name.' ()': get_class ($filter). '.filter ()'), 'system.web.filters.CFilterChain')
131USD filter- > filter ($this)
132}
133 else
134$ this- > controller- > runAction ($this- > action)
135}
136}
# 13 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ CController.php: CFilterChain- > run ()
$this- > runAction ($action)
279 else
280 {
281$ priorAction=$this- > _ action
282$ this- > _ action=$action
CFilterChain::create ($this,$action,$filters)-> run ()
$this- > _ action=$priorAction
285}
286}
two hundred and eighty seven
288 / *
# 14 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ CController.php: CController- > runActionWithFilters (CInlineAction, array ("accessControl", "userInfo"))
252 {
253 if (($parent=$this- > getModule ()) = = null)
254$ parent=Yii::app ()
255 if ($parent- > beforeControllerAction ($this,$action))
256 {
$this- > runActionWithFilters ($action,$this- > filters ())
$parent- > afterControllerAction ($this,$action)
259}
260}
261 else
262$ this- > missingAction ($actionID)
# 15 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ CWebApplication.php: CController- > run ("index")
272 {
273 list ($controller,$actionID) = $ca
$oldController=$this- > _ controller
$this- > _ controller=$controller
$controller- > init ()
$controller- > run ($actionID)
$this- > _ controller=$oldController
279}
280 else
281 throw new CHttpException (404 Yii route route) ('yii','Unable to resolve the request "{Yi}".
Array ('{route}'= > $route===''?$this- > defaultController:$route)
# 16 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ web\ CWebApplication.php (136): CWebApplication- > runController ("info/index")
131foreach (array_splice ($this- > catchAllRequest,1) as $name= > $value)
$_ GET [$name] = $value
133}
134 else
$route=$this- > getUrlManager ()-> parseUrl ($this- > getRequest ())
$this- > runController ($route)
137}
one hundred and thirty eight
139 / *
140x Registers the core application components.
141 * This method overrides the parent implementation by registering additional core components.
# 17 +
-
D:\ Program Files\ xampp\ htdocs\ lib\ base\ CApplication.php: CWebApplication- > proce***equest ()
153 * /
154public function run ()
155 {
156if ($this- > hasEventHandler ('onBeginRequest'))
$this- > onBeginRequest (new CEvent ($this))
158USD this- > proce***equest ()
159if ($this- > hasEventHandler ('onEndRequest'))
This- > onEndRequest (new CEvent ($this))
161}
one hundred and sixty two
163 / * *
# 18 +
-
D:\ Program Files\ xampp\ htdocs\ index.php (15): CApplication- > run ()
10 / / remove the following lines when in production mode
11 defined ('YII_DEBUG') or define (' YII_DEBUG',true)
12 / / specify how many levels of call stack should be shown in each log message
13 defined ('YII_TRACE_LEVEL') or define (' YII_TRACE_LEVEL',3)
14 require_once ($yii)
15 Yii::createWebApplication ($config)-> run ()
2014-01-02 11:30:05 Apache/2.4.7 (Win32) OpenSSL/0.9.8y PHP/5.4.22 Yii Framework/1.1.8
=
When prompted, locate the file D:\ Program Files\ xampp\ htdocs\ protected\ service\ SqlService.php and open SqlService using notepad. Php file, and then change the function mysql_escape_string () to use mysql_real_escape_string (), refresh the browser, you can start bugfree normally, and go to the bugfree home page.
The above is all the contents of the article "how to install and configure bugfree". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.