|
上一篇windowsxp 下安裝php是為了安裝TestLink而配的,
TestLink的安裝有兩種方式,一是自動(dòng)安裝,二是手工安裝的方式。
我用的是自動(dòng)安裝
在上篇配置好的php環(huán)境下,按如下步驟安裝TestLink
1.將TestLink文件夾拷貝到F:\phpweb目錄下。
2.在瀏覽器輸入訪問(wèn)地址http://168.68.73.97/testlink/
若沒(méi)有安裝就會(huì)自動(dòng)跳到http://168.68.73.97/testlink/install/index.php安裝頁(yè)
3.選擇new install,在進(jìn)入的頁(yè)面中,輸入登錄MySQL的用戶(hù)名和密碼,如root,如果沒(méi)有為T(mén)estLink新建一個(gè)專(zhuān)用的用戶(hù),也可以輸入初始用戶(hù)root。但是因?yàn)閞oot權(quán)限過(guò)多,所以,建議為T(mén)estLink新建專(zhuān)用的用戶(hù),并為該用戶(hù)賦予ALTER、SELECT、INSERT、UPDATE、INDEX、CREATE、DELETE和DROP權(quán)限。
3.提示安裝成功。系統(tǒng)為testlink創(chuàng)建一個(gè)默認(rèn)管理員賬號(hào),用戶(hù)名和密碼為:admin/admin。你可以使用這個(gè)賬號(hào)訪問(wèn)TestLink
在自動(dòng)安裝過(guò)程中,安裝程序主要做了以下事情:
1.檢查web server的參數(shù)、php配置、數(shù)據(jù)庫(kù)版本
2.創(chuàng)建數(shù)據(jù)庫(kù)和表,并導(dǎo)入初始數(shù)據(jù)
3.完成安裝
我是第一次在xp下配置php
在網(wǎng)上找了很多資料,按照上面的一步步配,總會(huì)在半路出現(xiàn)一些問(wèn)題,
以下是我綜合幾個(gè)網(wǎng)友的資料配置成功的步驟:
操作系統(tǒng):windows xp
apache_2.2.6-win32-x86-no_ssl.msi http://apache.mirror.phpchina.com/httpd/binaries/win32/apache_2.2.6-win32-x86-openssl-0.9.8e.msi
php-5.2.5-win32-installer.msi
http://cn2.php.net/distributions/php-5.2.5-win32-installer.msi
PHP 5.2.5 zip package
http://cn.php.net/get/php-5.2.5-Win32.zip/from/cn2.php.net/mirror(這里面有需要的dll文件)
mysql-5.0.22-win32_Setup.exe
http://www.mysql.com/
開(kāi)始安裝
一、安裝Apache2.2.6
1 運(yùn)行安裝程序 圖1
2 下一步,圖2 安裝協(xié)議
3 下一步,圖3 Apache HTTP Server的一些說(shuō)明
4 下一步,圖4 填寫(xiě)服務(wù)信息
Network Domain 域名 ,這里填寫(xiě) localhostServer Name 服務(wù)器名,這里填寫(xiě) localhost
Administrator‘s Email Address 管理員郵箱
5 安裝類(lèi)型
選擇自定義安裝 Custom,圖5
6 自定義安裝設(shè)置,圖6
修改安裝目錄,這里我把目錄修改到F:\Apache2\圖7
7 安裝確認(rèn),圖8
8 開(kāi)始安裝,圖9
安裝最后會(huì)出現(xiàn)幾個(gè)命令行窗口。
9 安裝完畢,圖10
10 右下角出現(xiàn)圖標(biāo),圖11
11 雙擊顯示服務(wù)器監(jiān)控信息,圖12
12 測(cè)試,圖13
在瀏覽器地址欄輸入 http://localhost,回車(chē)顯示 “It works!”。
如圖,表示安裝成功了!
這樣 Apache就安裝完畢了。
二、安裝PHP5.2.5
1 拷貝需要的組件
解壓php-5.2.5-Win32.zip到“G:/PHPTemp”。這里主要是拷貝一些以后需要的組件。
2 運(yùn)行安裝程序php-5.2.5-win32-installer.msi
3 接受 安裝協(xié)議
4 選擇安裝目錄,

選定目錄.我設(shè)置的是F:\php\
5 選擇服務(wù)器設(shè)置
6 選擇Apache配置文件目錄,按我之前的配置,這里我選的是F:\Apache2\
7 安裝設(shè)置
8 準(zhǔn)備安裝
9 安裝完畢
10 從G:/PHPTemp拷貝libmysql.dll及ext文件夾到F:/PHP
并在F:/PHP/php.ini中修改成
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;
; ... or under UNIX:
將F:/PHP/php.ini文件拷貝到C:\WINDOWS目錄下
將F:/PHP/libmysql.dll文件拷貝到 C:\WINDOWS\system32目錄下
將F:/PHP/ext/php_mysql.dll 文件拷貝到 C:\WINDOWS\system32目錄下
將F:/PHP/ext/php_mysqli.dll文件拷貝到 C:\WINDOWS\system32目錄下
11 對(duì)Apache進(jìn)行設(shè)置
在F:\下建立phpweb子目錄,即“F:/phpweb”目錄。
修改目錄F:\Apache2\conf下的文件“ httpd.conf”。
搜索DocumentRoot "F:/Apache2/htdocs"把冒號(hào)中的F:/Apache2/htdocs,替換成“F:/phpweb";
搜索<Directory "F:/Apache2/htdocs"> 把冒號(hào)中的F:/Apache2/htdocs,替換成“F:/phpweb";
上面這兩行可以不改,那么以后添加的論壇程序就要放在f:/Apache2/htdocs下面,就是以這個(gè)目錄作為根目錄。改的目的就是不想把所有網(wǎng)站程序都放在Apache的目錄下面。
搜索DirectoryIndex index.html 增加為DirectoryIndex index.html index.php
上面這句為了能夠運(yùn)行缺省的頁(yè)面,這里增加了 index.php作為缺省頁(yè)面。
修改完畢,保存,并重新啟動(dòng)Apache服務(wù)器,也許會(huì)啟動(dòng)不成功,這時(shí)要不按Ctrl+Alt+Del刪除Apache相關(guān)程序,要不重新啟動(dòng)計(jì)算機(jī)。
12 測(cè)試
在“f:/phpweb”目錄中,創(chuàng)建文件 test.php
<html>
<head>
<title>PHP Tes</title>
</head>
<body>
<?php echo "<p>Hello World</p>"; ?>
</body>
</html>
在瀏覽器地址欄中輸入 http://localhost/test.php,顯示如下,
顯示:
Hello World
那么你安裝Apache和PHP成功了。
最近網(wǎng)站總是打開(kāi)太慢,到后來(lái)干脆就不能打開(kāi)了,
進(jìn)到服務(wù)器重啟tomcat服務(wù)時(shí),竟然報(bào)了jvm內(nèi)存設(shè)置太大
ps一看,發(fā)現(xiàn)了很多mysqld進(jìn)程,
占內(nèi)存,也占了很多CPU,
我是用的二進(jìn)制包安裝的mysql,網(wǎng)上一查,有很多朋友說(shuō),這屬正常,
可我擔(dān)心過(guò)幾天服務(wù)器還會(huì)出現(xiàn)同樣的問(wèn)題,怎么辦
看了apache+iis+tomcat可以讓asp,jsp同時(shí)跑,
不知道再加個(gè).net,php,cgi的項(xiàng)目站點(diǎn),
又該怎么配置呢?
${sessionScope.user}
這是我在<sturts2權(quán)威指南>里看見(jiàn)的語(yǔ)法
說(shuō)是jsp2.0的語(yǔ)法, 我用jsp這么久怎么不知道有這樣的語(yǔ)法?
難道jsp1升級(jí)到j(luò)sp2后,語(yǔ)法也有改變嗎?
sturts1升級(jí)到struts2后就有很大不同,
版本升級(jí)這么快,感覺(jué)自己要是不勤加學(xué)習(xí),真的太容易被淘汰掉了.
現(xiàn)在還處于自學(xué)struts2階段,所以很多文章都是從網(wǎng)上轉(zhuǎn)了網(wǎng)友的, 呵呵,
看見(jiàn)好的文章就想自己收藏一份,以備忘.
原文出處:http://bbs.8isp.cn/simple/index.php?t1002.html
struts.action.extension
The URL extension to use to determine if the request is meant for a Struts action
用URL擴(kuò)展名來(lái)確定是否這個(gè)請(qǐng)求是被用作Struts action,其實(shí)也就是設(shè)置 action的后綴,例如login.do的'do'字。
struts.configuration
The org.apache.struts2.config.Configuration implementation class
org.apache.struts2.config.Configuration接口名
struts.configuration.files
A list of configuration files automatically loaded by Struts
struts自動(dòng)加載的一個(gè)配置文件列表
struts.configuration.xml.reload
Whether to reload the XML configuration or not
是否加載xml配置(true,false)
struts.continuations.package
The package containing actions that use Rife continuations
含有actions的完整連續(xù)的package名稱(chēng)
struts.custom.i18n.resources
Location of additional localization properties files to load
加載附加的國(guó)際化屬性文件(不包含.properties后綴)
struts.custom.properties
Location of additional configuration properties files to load
加載附加的配置文件的位置
struts.devMode
Whether Struts is in development mode or not
是否為struts開(kāi)發(fā)模式
struts.dispatcher.parametersWorkaround
Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic
(某些版本的weblogic專(zhuān)用)是否使用一個(gè)servlet請(qǐng)求參數(shù)工作區(qū)(PARAMETERSWORKAROUND)
struts.enable.DynamicMethodInvocation
Allows one to disable dynamic method invocation from the URL
允許動(dòng)態(tài)方法調(diào)用
struts.freemarker.manager.classname
The org.apache.struts2.views.freemarker.FreemarkerManager implementation class
org.apache.struts2.views.freemarker.FreemarkerManager接口名
struts.i18n.encoding
The encoding to use for localization messages
國(guó)際化信息內(nèi)碼
struts.i18n.reload
Whether the localization messages should automatically be reloaded
是否國(guó)際化信息自動(dòng)加載
struts.locale
The default locale for the Struts application
默認(rèn)的國(guó)際化地區(qū)信息
struts.mapper.class
The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class
org.apache.struts2.dispatcher.mapper.ActionMapper接口
struts.multipart.maxSize
The maximize size of a multipart request (file upload)
multipart請(qǐng)求信息的最大尺寸(文件上傳用)
struts.multipart.parser
The org.apache.struts2.dispatcher.multipart.
MultiPartRequest parser implementation for a multipart request (file upload)
專(zhuān)為multipart請(qǐng)求信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上傳用)
struts.multipart.saveDir
The directory to use for storing uploaded files
設(shè)置存儲(chǔ)上傳文件的目錄夾
struts.objectFactory
The com.opensymphony.xwork2.ObjectFactory implementation class
com.opensymphony.xwork2.ObjectFactory接口(spring)
struts.objectFactory.spring.autoWire
Whether Spring should autoWire or not
是否自動(dòng)綁定Spring
struts.objectFactory.spring.useClassCache
Whether Spring should use its class cache or not
是否spring應(yīng)該使用自身的cache
struts.objectTypeDeterminer
The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class
com.opensymphony.xwork2.util.ObjectTypeDeterminer接口
struts.serve.static.browserCache
If static content served by the Struts filter should set browser caching header properties or not
是否struts過(guò)濾器中提供的靜態(tài)內(nèi)容應(yīng)該被瀏覽器緩存在頭部屬性中
struts.serve.static
Whether the Struts filter should serve static content or not
是否struts過(guò)濾器應(yīng)該提供靜態(tài)內(nèi)容
struts.tag.altSyntax
Whether to use the alterative syntax for the tags or not
是否可以用替代的語(yǔ)法替代tags
struts.ui.templateDir
The directory containing UI templates
UI templates的目錄夾
struts.ui.theme
The default UI template theme
默認(rèn)的UI template主題
struts.url.http.port
The HTTP port used by Struts URLs
設(shè)置http端口
struts.url.https.port
The HTTPS port used by Struts URLs
設(shè)置https端口
struts.url.includeParams
The default includeParams method to generate Struts URLs
在url中產(chǎn)生 默認(rèn)的includeParams
struts.velocity.configfile
The Velocity configuration file path
velocity配置文件路徑
struts.velocity.contexts
List of Velocity context names
velocity的context列表
struts.velocity.manager.classname
org.apache.struts2.views.velocity.VelocityManager implementation class
org.apache.struts2.views.velocity.VelocityManager接口名
struts.velocity.toolboxlocation
The location of the Velocity toolbox
velocity工具盒的位置
struts.xslt.nocache
Whether or not XSLT templates should not be cached
是否XSLT模版應(yīng)該被緩存
摘要: 這篇文章是從網(wǎng)友http://www.aygfsteel.com/sterning/archive/2007/09/30/149775.html轉(zhuǎn)來(lái)的,
他真是一位大好人,雖然在別的網(wǎng)站有很多轉(zhuǎn)走的這篇文章,但我也想在自己的BLOG上再轉(zhuǎn)一次,
理由很簡(jiǎn)單,想自己收藏一份,感謝原創(chuàng)sterning
Struts作為MVC 2的Web框架,自推出以來(lái)不斷受到開(kāi)發(fā)者的追捧,得到廣泛的應(yīng)用。作為... 閱讀全文
從前一直用的jsp+javabean,這種模式寫(xiě)東西
開(kāi)發(fā)工具方面通常jsp用dreamweaver, java源程序就用eclipse3.2
服務(wù)器,像tomcat,apache也是單獨(dú)配置,數(shù)據(jù)庫(kù)mysql也是一樣,單獨(dú)配置的.
感覺(jué)很容易,就是要配置的東西比較多.但卻很少出錯(cuò),
就算出了錯(cuò),也會(huì)知道是哪個(gè)環(huán)節(jié)出錯(cuò)了,這樣就容易解決得多.
現(xiàn)在即將有一個(gè)大點(diǎn)的項(xiàng)目,要求最好用struts做,
之前也做過(guò)struts1的例子, 就單獨(dú)struts不加spring,hibernate等,布置起來(lái)也覺(jué)得容易,
于是想著要配置一個(gè)struts+spring+hinernate環(huán)境來(lái)做開(kāi)發(fā),一開(kāi)始想到的是將版本升級(jí),
沒(méi)想到后來(lái)看了struts1與struts2還不是同一個(gè)東西,并非版本上的升級(jí).
這些天翻了很多struts1與struts2,主要是struts2的資料看,看起來(lái),這是一個(gè)很不錯(cuò)的東西,
于是便下定心用struts2+spring2+hibernate3來(lái)做這個(gè)項(xiàng)目,
立馬在網(wǎng)上搜取這方面資料,還有實(shí)例,邊看邊配置,
沒(méi)想到,讓人頭痛的是,重配了N次實(shí)例,我配出來(lái)的工程,最后一發(fā)布,總是404錯(cuò)誤,
用的myeclipse6,就是不知道哪出錯(cuò)了,所有東西都集成在一起,不知道往哪查錯(cuò).
現(xiàn)在腦袋快冒煙了, 不知道有沒(méi)有朋友,有好的學(xué)習(xí)struts2的好辦法?
請(qǐng)指點(diǎn)一下吧
|