移植Sqlite2+PHP5.2+apache1.3到ARM平臺

提醒:在整個移植的過程中注意各軟件包的版本

本文中Sqlite使用的是Sqlite2.8.17.tar.gz,Apache使用的是1.3.39,PHP使用的5.2.13

一:Sqlite數據庫移植

1)下載sqlite2.8.17.tar.gz,(版本號至少應該保存前兩位對應)

2)把這個壓縮包放到/home/chen的目錄下,並且解壓。再建立一個sqlite目錄,作爲安裝目錄。

3)進入到sqlite2.8.17目錄下,執行如下命令

CC=arm-linux-gcc ./configure --prefix=/home/chen/sqlite --host=arm-linux

4)make        5)make install 。安裝成功後,在sqlite這個目錄下有三個文件夾:bin、lib、include

6)進入lib目錄中,arm-linux-strip libsqlite.so.0.8.6

7)將bin目錄下的sqlite拷貝到目標板的/usr/bin目錄下。

8)將lib目錄下的libsqlite.so.0.8.6拷貝到/usr/lib目錄下。

9)登錄到開發板中,進入/usr/lib目錄,創建一個符號鏈接ln -s libsqlite.so.8.6 libsqlite.so.0

到此sqlite數據庫就算是移植完畢了。在開發板上面運行sqlite看到如下畫面,則sqlite安裝成功


 

二:Apache服務器移植

1)下載apache1.3.39的軟件包。apache1.3.39.tar.gz,注意版本的移植性。

2)在/home/chen/目錄下建立兩個文件夾:arm和source

3)把軟件包分別拷貝到arm與source這兩個文件夾中,並使用tar -xzvf apache1.3.39.tar.gz進行解壓。

4)進入/home/chen/source/apache1.3.39/src這個文件目錄中。執行./Configure。生成一個Makefile文件。

5)返回到/home/chen/source/apache1.3.39這個目錄中,執行./configure。再執行make。這時可能有兩種情況

                                (①)成功運行出make,無需額外的操作。

                                (②)make出錯,錯誤如下:

                                

[html] view plain copy
  1. <span style="font-size:18px;">If you don't do this, the installation will fail because of the following error:  
  2.         htpasswd.c:101: error: conflicting types for 'getline'  
  3.         /usr/include/stdio.h:651: note: previous declaration of 'getline' was           here  
  4.         make[2]: *** [htpasswd.o] Error 1  
  5.         make[2]: Leaving directory `/home/ISPConfig-                        2.2.stable/install_ispconfig/compile_aps/apache_1.3.41/src/support'  
  6.         make[1]: *** [build-support] Error 1  
  7.         make[1]: Leaving directory `/home/ISPConfig-            2.2.stable/install_ispconfig/compile_aps/apache_1.3.41'  
  8.         make: *** [build] Error 2  
  9.         ERROR: Could not make Apache  
  10. </span>  


這時打開錯誤提示的文件/usr/include/stdio.h,找到對應的行,把getline改成parseline(記住在編譯完成所有工作時,把他修改回去。)

6)觀察/home/chen/source/apache1.3.39/src/main這個目錄下是否有gen_test_char和gen_uri_delims這個兩個可執行文件。如果上述步驟沒有遺漏,應該會出現這兩個可執行文件

7)進入/home/chen/arm/apache1.3.39/src中,執行

                               1)exprort CC="arm-linux-gcc"

                              2)./Configure生成Makefile文件。會出現Syntax error:word unexpected(expecting")")這種錯誤。

8)修改arm/apache1.3.39/src/main目錄下的Makefile文件。把

./gen_uri_delims >uri_delims.h

改爲:

uri_delims.h: gen_uri_delims

       /home/chen/source/apache_1.3.39/src/main/gen_uri_delims >uri_delims.h

 

test_char.h: gen_test_char 

./gen_test_char >test_char.h

改爲:

test_char.h: gen_test_char

       /home/chen/source/apache_1.3.39/src/main/gen_test_char >test_char.h

9)進入到/home/chen/arm/apache1.3.39目錄下。執行

                           (1)export CC="arm-linux-gcc"

                              (2)  ./configure ---->make------->make install

看到如下信息

+--------------------------------------------------------+

| You now have successfully built and installed the      |

| Apache 1.3 HTTP server. To verify that Apache actually |

| works correctly you now should first check the         |

| (initially created or preserved) configuration files   |

|                                                        |

|   /usr/local/apache/conf/httpd.conf

|                                                        |

| and then you should be able to immediately fire up     |

| Apache the first time by running:                      |

|                                                        |

|   /usr/local/apache/bin/apachectl start

|                                                        |

| Thanks for using Apache.       The Apache Group        |

|                                http://www.apache.org/  |

+--------------------------------------------------------+

10)進入/usr/local目錄中,可以看到多了一個apache的目錄,現在把這個目錄打包,使用如下命令

tar -czvf apache.tar.gz apache/,在使用ftp等方式把apache解壓出來,放入到開發板的/usr/local中。

11)下面須在開發板中/etc的目錄中修改兩個配置文件,passwd和group文件,如果沒有這兩個文件就自己建立;

                       文件一:passwd  (如果這個文件中已經有內容了,只需要添加缺少的項就行)

                                    root::0:0:root:/:/bin/ash

                                    nobody::65534:65533:nobody:/:/bin/ash

                             文件二:group(如果這個文件中已經有內容了,只需要添加缺少的項就行

                                nobody::65533:

                               nogroup::65534:nobody

                               root::0:

                              users::100

三:PHP5.2.13的移植

在安裝PHP之前需要進行libxml與zlib的安裝。所以我們分爲3部進行安裝PHP,

       一:libxml的安裝

            1)把libxml2-2.8.0解壓到/usr/src目錄中。在進入libxml2-2.8.0這個目錄中去。

             2)運行   CC=arm-linux-gcc ./configure --host=arm-linux --target=arm --prefix=/opt/libxml

            3)make     再   make install

             4)把libxml2.so.2.8.0傳到板子的/usr/lib中,並且建立兩個符號鏈接名字分別爲libxml2.so和libxml2.so.2

       二:zlib的安裝

             1)把zlib-1.2.7解壓到/usr/src目錄中,在進入到zlib-1.2.7這個目錄中去。

            2)運行CC=arm-linux-gcc ./configure --prefix=/opt/zlib

            3)make    再   make  install

            4)把libz.so.1.2.7傳到板子的/usr/lib中,並且建立兩個符號鏈接名字分別爲libz.so和libz.so.1

       三:php的安裝 

          1)把php-5.2.13.tar.gz拷貝到/usr/src目錄下。並且在此目錄中建立一個temp文件夾。(在把php-5.2.13.tar.gz拷貝到temp文件中,這個裏面主要是放PC體系結構的PHP的一個可執行文件,後面交叉編譯php的時候回用到)

           2)首先進入到temp目錄中,解壓php,再進入/usr/src/temp/php-5.2.13目錄中,直接./configure即可。

              再 make     接着make install

           3)進入到/usr/src目錄,解壓php,進入到/usr/src/php-5.2.13目錄中。

           4)export CC=arm-linux-gcc    再  ./configure --host=arm-linux--prefix=/opt/php5 --enable-pdo --enable-sockets --with-sqlite --with-pdo-sqlite --with-zlib-dir=/opt/zlib --with-libxml-dir=/opt/libxml --without-iconv

            5)首先修改php的Makefile.在開始出添加LDFLAGS += -ldl ,這裏是爲了鏈接dlopen庫然後修改main/php.h 在開始處添加#define HAVE_LIBDL 1 ,這個宏是爲了交叉編譯時強制使用dlopen。緊接着修改ext/standard/dl.c ,這段代碼中添加#include <dlfcn.h> ,這個是dlopen的頭文件。如下

               

  1. #if defined(HAVE_LIBDL) || HAVE_MACH_O_DYLD_H   
  2.   
  3. #include <stdlib.h>   
  4.   
  5. #include <stdio.h>   
  6.   
  7. #include <dlfcn.h>
             6)修改Makefile另外一處。

[html] view plain copy
  1. <span style="font-size:14px;">install-pear-installer: $(SAPI_CLI_PATH)  
  2.     @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX}  
  3.   
  4. </span>  


改爲如下

[html] view plain copy
  1. <span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size:14px;">install-pear-installer: $(SAPI_CLI_PATH)  
  2.     /usr/src/temp/php-5.2.13/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX}</span></span></span></span></span></span></span>  
              7)make     再   make install

               8)把當前目錄下的php.ini-dist拷貝到/opt/php5/lib中去。

                9)進入/opt中,把其中的php5這個文件夾傳遞到/usr/local中去。

在移植結束apache與php後,需要修改板子中/usr/local/apach/conf中的http.conf文件這裏爲了把apache以及php聯合在一起。改成如下內容:

也可以重新建立一個http.conf文件,內容爲下面。

[html] view plain copy
  1. ##  
  2. ## httpd.conf -- Apache HTTP server configuration file  
  3. ##  
  4.   
  5. #  
  6. # Based upon the NCSA server configuration files originally by Rob McCool.  
  7. #  
  8. # This is the main Apache server configuration file.  It contains the  
  9. # configuration directives that give the server its instructions.  
  10. # See <URL:http://httpd.apache.org/docs/> for detailed information about  
  11. # the directives.  
  12. #  
  13. # Do NOT simply read the instructions in here without understanding  
  14. # what they do.  They're here only as hints or reminders.  If you are unsure  
  15. # consult the online docs. You have been warned.    
  16. #  
  17. # After this file is processed, the server will look for and process  
  18. # /usr/local/apache/conf/srm.conf and then /usr/local/apache/conf/access.conf  
  19. # unless you have overridden these with ResourceConfig and/or  
  20. # AccessConfig directives here.  
  21. #  
  22. # The configuration directives are grouped into three basic sections:  
  23. #  1. Directives that control the operation of the Apache server process as a  
  24. #     whole (the 'global environment').  
  25. #  2. Directives that define the parameters of the 'main' or 'default' server,  
  26. #     which responds to requests that aren't handled by a virtual host.  
  27. #     These directives also provide default values for the settings  
  28. #     of all virtual hosts.  
  29. #  3. Settings for virtual hosts, which allow Web requests to be sent to  
  30. #     different IP addresses or hostnames and have them handled by the  
  31. #     same Apache server process.  
  32. #  
  33. # Configuration and logfile names: If the filenames you specify for many  
  34. # of the server's control files begin with "/" (or "drive:/" for Win32), the  
  35. # server will use that explicit path.  If the filenames do *not* begin  
  36. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"  
  37. # with ServerRoot set to "/usr/local/apache" will be interpreted by the  
  38. # server as "/usr/local/apache/logs/foo.log".  
  39. #  
  40.   
  41. ### Section 1: Global Environment  
  42. #  
  43. # The directives in this section affect the overall operation of Apache,  
  44. # such as the number of concurrent requests it can handle or where it  
  45. # can find its configuration files.  
  46. #  
  47.   
  48. #  
  49. # ServerType is either inetd, or standalone.  Inetd mode is only supported on  
  50. # Unix platforms.  
  51. #  
  52. ServerType standalone  
  53.   
  54. #  
  55. # ServerRoot: The top of the directory tree under which the server's  
  56. # configuration, error, and log files are kept.  
  57. #  
  58. # NOTE!  If you intend to place this on an NFS (or otherwise network)  
  59. # mounted filesystem then please read the LockFile documentation  
  60. # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);  
  61. # you will save yourself a lot of trouble.  
  62. #  
  63. ServerRoot "/usr/local/apache"  
  64.   
  65. #  
  66. # The LockFile directive sets the path to the lockfile used when Apache  
  67. # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or  
  68. # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at  
  69. # its default value. The main reason for changing it is if the logs  
  70. # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL  
  71. # DISK. The PID of the main server process is automatically appended to  
  72. # the filename.   
  73. #  
  74. #LockFile /usr/local/apache/logs/httpd.lock  
  75.   
  76. #  
  77. # PidFile: The file in which the server should record its process  
  78. # identification number when it starts.  
  79. #  
  80. PidFile /usr/local/apache/logs/httpd.pid  
  81.   
  82. #  
  83. # ScoreBoardFile: File used to store internal server process information.  
  84. # Not all architectures require this.  But if yours does (you'll know because  
  85. # this file will be  created when you run Apache) then you *must* ensure that  
  86. # no two invocations of Apache share the same scoreboard file.  
  87. #  
  88. ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard  
  89.   
  90. #  
  91. # In the standard configuration, the server will process httpd.conf (this   
  92. # file, specified by the -f command line option), srm.conf, and access.conf   
  93. # in that order.  The latter two files are now distributed empty, as it is   
  94. # recommended that all directives be kept in a single file for simplicity.    
  95. # The commented-out values below are the built-in defaults.  You can have the   
  96. # server ignore these files altogether by using "/dev/null" (for Unix) or  
  97. # "nul" (for Win32) for the arguments to the directives.  
  98. #  
  99. #ResourceConfig /usr/local/apache/conf/srm.conf  
  100. #AccessConfig /usr/local/apache/conf/access.conf  
  101.   
  102. #  
  103. # Timeout: The number of seconds before receives and sends time out.  
  104. #  
  105. Timeout 300  
  106.   
  107. #  
  108. # KeepAlive: Whether or not to allow persistent connections (more than  
  109. # one request per connection). Set to "Off" to deactivate.  
  110. #  
  111. KeepAlive On  
  112.   
  113. #  
  114. # MaxKeepAliveRequests: The maximum number of requests to allow  
  115. # during a persistent connection. Set to 0 to allow an unlimited amount.  
  116. # We recommend you leave this number high, for maximum performance.  
  117. #  
  118. MaxKeepAliveRequests 100  
  119.   
  120. #  
  121. # KeepAliveTimeout: Number of seconds to wait for the next request from the  
  122. # same client on the same connection.  
  123. #  
  124. KeepAliveTimeout 15  
  125.   
  126. #  
  127. # Server-pool size regulation.  Rather than making you guess how many  
  128. # server processes you need, Apache dynamically adapts to the load it  
  129. # sees --- that is, it tries to maintain enough server processes to  
  130. # handle the current load, plus a few spare servers to handle transient  
  131. # load spikes (e.g., multiple simultaneous requests from a single  
  132. # Netscape browser).  
  133. #  
  134. # It does this by periodically checking how many servers are waiting  
  135. # for a request.  If there are fewer than MinSpareServers, it creates  
  136. # a new spare.  If there are more than MaxSpareServers, some of the  
  137. # spares die off.  The default values are probably OK for most sites.  
  138. #  
  139. MinSpareServers 5  
  140. MaxSpareServers 10  
  141.   
  142. #  
  143. # Number of servers to start initially --- should be a reasonable ballpark  
  144. # figure.  
  145. #  
  146. StartServers 5  
  147.   
  148. #  
  149. # Limit on total number of servers running, i.e., limit on the number  
  150. # of clients who can simultaneously connect --- if this limit is ever  
  151. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.  
  152. # It is intended mainly as a brake to keep a runaway server from taking  
  153. # the system with it as it spirals down...  
  154. #  
  155. MaxClients 150  
  156.   
  157. #  
  158. # MaxRequestsPerChild: the number of requests each child process is  
  159. # allowed to process before the child dies.  The child will exit so  
  160. # as to avoid problems after prolonged use when Apache (and maybe the  
  161. # libraries it uses) leak memory or other resources.  On most systems, this  
  162. # isn't really needed, but a few (such as Solaris) do have notable leaks  
  163. # in the libraries. For these platforms, set to something like 10000  
  164. # or so; a setting of 0 means unlimited.  
  165. #  
  166. # NOTE: This value does not include keepalive requests after the initial  
  167. #       request per connection. For example, if a child process handles  
  168. #       an initial request and 10 subsequent "keptalive" requests, it  
  169. #       would only count as 1 request towards this limit.  
  170. #  
  171. MaxRequestsPerChild 0  
  172.   
  173. #  
  174. # Listen: Allows you to bind Apache to specific IP addresses and/or  
  175. # ports, instead of the default. See also the <VirtualHost>  
  176. # directive.  
  177. #  
  178. #Listen 3000  
  179. #Listen 12.34.56.78:80  
  180.   
  181. #  
  182. # BindAddress: You can support virtual hosts with this option. This directive  
  183. # is used to tell the server which IP address to listen to. It can either  
  184. # contain "*", an IP address, or a fully qualified Internet domain name.  
  185. # See also the <VirtualHost> and Listen directives.  
  186. #  
  187. #BindAddress *  
  188.   
  189. #  
  190. # Dynamic Shared Object (DSO) Support  
  191. #  
  192. # To be able to use the functionality of a module which was built as a DSO you  
  193. # have to place corresponding `LoadModule' lines at this location so the  
  194. # directives contained in it are actually available _before_ they are used.  
  195. # Please read the file http://httpd.apache.org/docs/dso.html for more  
  196. # details about the DSO mechanism and run `httpd -l' for the list of already  
  197. # built-in (statically linked and thus always available) modules in your httpd  
  198. # binary.  
  199. #  
  200. # Note: The order in which modules are loaded is important.  Don't change  
  201. # the order below without expert advice.  
  202. #  
  203. # Example:  
  204. # LoadModule foo_module libexec/mod_foo.so  
  205.   
  206. #  
  207. # ExtendedStatus controls whether Apache will generate "full" status  
  208. # information (ExtendedStatus On) or just basic information (ExtendedStatus  
  209. # Off) when the "server-status" handler is called. The default is Off.  
  210. #  
  211. #ExtendedStatus On  
  212.   
  213. ### Section 2: 'Main' server configuration  
  214. #  
  215. # The directives in this section set up the values used by the 'main'  
  216. # server, which responds to any requests that aren't handled by a  
  217. <VirtualHost> definition.  These values also provide defaults for  
  218. # any <VirtualHost> containers you may define later in the file.  
  219. #  
  220. # All of these directives may appear inside <VirtualHost> containers,  
  221. # in which case these default settings will be overridden for the  
  222. # virtual host being defined.  
  223. #  
  224.   
  225. #  
  226. # If your ServerType directive (set earlier in the 'Global Environment'  
  227. # section) is set to "inetd", the next few directives don't have any  
  228. # effect since their settings are defined by the inetd configuration.  
  229. # Skip ahead to the ServerAdmin directive.  
  230. #  
  231.   
  232. #  
  233. # Port: The port to which the standalone server listens. For  
  234. # ports < 1023, you will need httpd to be run as root initially.  
  235. #  
  236. Port 8080  
  237.   
  238. #  
  239. # If you wish httpd to run as a different user or group, you must run  
  240. # httpd as root initially and it will switch.    
  241. #  
  242. # User/Group: The name (or #number) of the user/group to run httpd as.  
  243. #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".  
  244. #  . On HPUX you may not be able to use shared memory as nobody, and the  
  245. #    suggested workaround is to create a user www and use that user.  
  246. #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)  
  247. #  when the value of (unsigned)Group is above 60000;   
  248. #  don't use Group "#-1" on these systems!  
  249. #  
  250. User nobody  
  251. Group nogroup  
  252.   
  253. #  
  254. # ServerAdmin: Your address, where problems with the server should be  
  255. # e-mailed.  This address appears on some server-generated pages, such  
  256. # as error documents.  
  257. #  
  258. ServerAdmin chen@chen-virtual-machine.  
  259.   
  260. #  
  261. # ServerName allows you to set a host name which is sent back to clients for  
  262. # your server if it's different than the one the program would get (i.e., use  
  263. # "www" instead of the host's real name).  
  264. #  
  265. # Note: You cannot just invent host names and hope they work. The name you   
  266. # define here must be a valid DNS name for your host. If you don't understand  
  267. # this, ask your network administrator.  
  268. # If your host doesn't have a registered DNS name, enter its IP address here.  
  269. # You will have to access it by its address (e.g., http://123.45.67.89/)  
  270. # anyway, and this will make redirections work in a sensible way.  
  271. #  
  272. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your   
  273. # machine always knows itself by this address. If you use Apache strictly for   
  274. # local testing and development, you may use 127.0.0.1 as the server name.  
  275. #  
  276. #ServerName www.example.com  
  277.   
  278. #  
  279. # DocumentRoot: The directory out of which you will serve your  
  280. # documents. By default, all requests are taken from this directory, but  
  281. # symbolic links and aliases may be used to point to other locations.  
  282. #  
  283. DocumentRoot "/usr/local/apache/htdocs"  
  284.   
  285. #  
  286. # Each directory to which Apache has access, can be configured with respect  
  287. # to which services and features are allowed and/or disabled in that  
  288. # directory (and its subdirectories).   
  289. #  
  290. # First, we configure the "default" to be a very restrictive set of   
  291. # permissions.    
  292. #  
  293. <Directory />  
  294.     Options FollowSymLinks  
  295.     AllowOverride None  
  296. </Directory>  
  297.   
  298. #  
  299. # Note that from this point forward you must specifically allow  
  300. # particular features to be enabled - so if something's not working as  
  301. # you might expect, make sure that you have specifically enabled it  
  302. # below.  
  303. #  
  304.   
  305. #  
  306. # This should be changed to whatever you set DocumentRoot to.  
  307. #  
  308. <Directory "/usr/local/apache/htdocs">  
  309.   
  310. #  
  311. # This may also be "None", "All", or any combination of "Indexes",  
  312. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".  
  313. #  
  314. # Note that "MultiViews" must be named *explicitly* --- "Options All"  
  315. # doesn't give it to you.  
  316. #  
  317.     Options Indexes FollowSymLinks MultiViews  
  318.   
  319. #  
  320. # This controls which options the .htaccess files in directories can  
  321. # override. Can also be "All", or any combination of "Options", "FileInfo",   
  322. # "AuthConfig", and "Limit"  
  323. #  
  324.     AllowOverride None  
  325.   
  326. #  
  327. # Controls who can get stuff from this server.  
  328. #  
  329.     Order allow,deny  
  330.     Allow from all  
  331. </Directory>  
  332.   
  333. #  
  334. # UserDir: The name of the directory which is appended onto a user's home  
  335. # directory if a ~user request is received.  
  336. #  
  337. <IfModule mod_userdir.c>  
  338.     UserDir public_html  
  339. </IfModule>  
  340.   
  341. #  
  342. # Control access to UserDir directories.  The following is an example  
  343. # for a site where these directories are restricted to read-only.  
  344. #  
  345. #<Directory /home/*/public_html>  
  346. #    AllowOverride FileInfo AuthConfig Limit  
  347. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec  
  348. #    <Limit GET POST OPTIONS PROPFIND>  
  349. #        Order allow,deny  
  350. #        Allow from all  
  351. #    </Limit>  
  352. #    <LimitExcept GET POST OPTIONS PROPFIND>  
  353. #        Order deny,allow  
  354. #        Deny from all  
  355. #    </LimitExcept>  
  356. #</Directory>  
  357.   
  358. #  
  359. # DirectoryIndex: Name of the file or files to use as a pre-written HTML  
  360. # directory index.  Separate multiple entries with spaces.  
  361. #  
  362. <IfModule mod_dir.c>  
  363.     DirectoryIndex index.html  
  364.     DirectoryIndex index.php  
  365.     DirectoryIndex index.php3  
  366.     DirectoryIndex index.phtml  
  367. </IfModule>  
  368.   
  369. #  
  370. # AccessFileName: The name of the file to look for in each directory  
  371. # for access control information.  
  372. #  
  373. AccessFileName .htaccess  
  374.   
  375. #  
  376. # The following lines prevent .htaccess files from being viewed by  
  377. # Web clients.  Since .htaccess files often contain authorization  
  378. # information, access is disallowed for security reasons.  Comment  
  379. # these lines out if you want Web visitors to see the contents of  
  380. # .htaccess files.  If you change the AccessFileName directive above,  
  381. # be sure to make the corresponding changes here.  
  382. #  
  383. # Also, folks tend to use names such as .htpasswd for password  
  384. # files, so this will protect those as well.  
  385. #  
  386. <Files ~ "^\.ht">  
  387.     Order allow,deny  
  388.     Deny from all  
  389.     Satisfy All  
  390. </Files>  
  391.   
  392. #  
  393. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each  
  394. # document that was negotiated on the basis of content. This asks proxy  
  395. # servers not to cache the document. Uncommenting the following line disables  
  396. # this behavior, and proxies will be allowed to cache the documents.  
  397. #  
  398. #CacheNegotiatedDocs  
  399.   
  400. #  
  401. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever  
  402. # Apache needs to construct a self-referencing URL (a URL that refers back  
  403. # to the server the response is coming from) it will use ServerName and  
  404. # Port to form a "canonical" name.  With this setting off, Apache will  
  405. # use the hostname:port that the client supplied, when possible.  This  
  406. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.  
  407. #  
  408. UseCanonicalName On  
  409.   
  410. #  
  411. # TypesConfig describes where the mime.types file (or equivalent) is  
  412. # to be found.  
  413. #  
  414. <IfModule mod_mime.c>  
  415.     TypesConfig /usr/local/apache/conf/mime.types  
  416. </IfModule>  
  417.   
  418. #  
  419. # DefaultType is the default MIME type the server will use for a document  
  420. # if it cannot otherwise determine one, such as from filename extensions.  
  421. # If your server contains mostly text or HTML documents, "text/plain" is  
  422. # a good value.  If most of your content is binary, such as applications  
  423. # or images, you may want to use "application/octet-stream" instead to  
  424. # keep browsers from trying to display binary files as though they are  
  425. # text.  
  426. #  
  427. DefaultType text/plain  
  428.   
  429. #  
  430. # The mod_mime_magic module allows the server to use various hints from the  
  431. # contents of the file itself to determine its type.  The MIMEMagicFile  
  432. # directive tells the module where the hint definitions are located.  
  433. # mod_mime_magic is not part of the default server (you have to add  
  434. # it yourself with a LoadModule [see the DSO paragraph in the 'Global  
  435. # Environment' section], or recompile the server and include mod_mime_magic  
  436. # as part of the configuration), so it's enclosed in an <IfModule> container.  
  437. # This means that the MIMEMagicFile directive will only be processed if the  
  438. # module is part of the server.  
  439. #  
  440. <IfModule mod_mime_magic.c>  
  441.     MIMEMagicFile /usr/local/apache/conf/magic  
  442. </IfModule>  
  443.   
  444. #  
  445. # HostnameLookups: Log the names of clients or just their IP addresses  
  446. # e.g., www.apache.org (on) or 204.62.129.132 (off).  
  447. # The default is off because it'd be overall better for the net if people  
  448. # had to knowingly turn this feature on, since enabling it means that  
  449. # each client request will result in AT LEAST one lookup request to the  
  450. # nameserver.  
  451. #  
  452. HostnameLookups Off  
  453.   
  454. #  
  455. # ErrorLog: The location of the error log file.  
  456. # If you do not specify an ErrorLog directive within a <VirtualHost>  
  457. # container, error messages relating to that virtual host will be  
  458. # logged here.  If you *do* define an error logfile for a <VirtualHost>  
  459. # container, that host's errors will be logged there and not here.  
  460. #  
  461. ErrorLog /usr/local/apache/logs/error_log  
  462.   
  463. #  
  464. # LogLevel: Control the number of messages logged to the error_log.  
  465. # Possible values include: debug, info, notice, warn, error, crit,  
  466. # alert, emerg.  
  467. #  
  468. LogLevel warn  
  469.   
  470. #  
  471. # The following directives define some format nicknames for use with  
  472. # a CustomLog directive (see below).  
  473. #  
  474. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined  
  475. LogFormat "%h %l %u %t \"%r\" %>s %b" common  
  476. LogFormat "%{Referer}i -> %U" referer  
  477. LogFormat "%{User-agent}i" agent  
  478.   
  479. #  
  480. # The location and format of the access logfile (Common Logfile Format).  
  481. # If you do not define any access logfiles within a <VirtualHost>  
  482. # container, they will be logged here.  Contrariwise, if you *do*  
  483. # define per-<VirtualHost> access logfiles, transactions will be  
  484. # logged therein and *not* in this file.  
  485. #  
  486. CustomLog /usr/local/apache/logs/access_log common  
  487.   
  488. #  
  489. # If you would like to have agent and referer logfiles, uncomment the  
  490. # following directives.  
  491. #  
  492. #CustomLog /usr/local/apache/logs/referer_log referer  
  493. #CustomLog /usr/local/apache/logs/agent_log agent  
  494.   
  495. #  
  496. # If you prefer a single logfile with access, agent, and referer information  
  497. # (Combined Logfile Format) you can use the following directive.  
  498. #  
  499. #CustomLog /usr/local/apache/logs/access_log combined  
  500.   
  501. #  
  502. # Optionally add a line containing the server version and virtual host  
  503. # name to server-generated pages (error documents, FTP directory listings,  
  504. # mod_status and mod_info output etc., but not CGI generated documents).  
  505. # Set to "EMail" to also include a mailto: link to the ServerAdmin.  
  506. # Set to one of:  On | Off | EMail  
  507. #  
  508. ServerSignature On  
  509.   
  510. # EBCDIC configuration:  
  511. # (only for mainframes using the EBCDIC codeset, currently one of:  
  512. # Fujitsu-Siemens' BS2000/OSD, IBM's OS/390 and IBM's TPF)!!  
  513. # The following default configuration assumes that "text files"  
  514. # are stored in EBCDIC (so that you can operate on them using the  
  515. # normal POSIX tools like grep and sort) while "binary files" are  
  516. # stored with identical octets as on an ASCII machine.  
  517. #  
  518. # The directives are evaluated in configuration file order, with  
  519. # the EBCDICConvert directives applied before EBCDICConvertByType.  
  520. #  
  521. # If you want to have ASCII HTML documents and EBCDIC HTML documents  
  522. # at the same time, you can use the file extension to force  
  523. # conversion off for the ASCII documents:  
  524. > AddType       text/html .ahtml  
  525. > EBCDICConvert Off=InOut .ahtml  
  526. #  
  527. # EBCDICConvertByType  On=InOut text/* message/* multipart/*  
  528. # EBCDICConvertByType  On=In    application/x-www-form-urlencoded  
  529. # EBCDICConvertByType  On=InOut application/postscript model/vrml  
  530. # EBCDICConvertByType Off=InOut */*  
  531.   
  532.   
  533. #  
  534. # Aliases: Add here as many aliases as you need (with no limit). The format is   
  535. # Alias fakename realname  
  536. #  
  537. <IfModule mod_alias.c>  
  538.   
  539.     #  
  540.     # Note that if you include a trailing / on fakename then the server will  
  541.     # require it to be present in the URL.  So "/icons" isn't aliased in this  
  542.     # example, only "/icons/".  If the fakename is slash-terminated, then the   
  543.     # realname must also be slash terminated, and if the fakename omits the   
  544.     # trailing slash, the realname must also omit it.  
  545.     #  
  546.     Alias /icons/ "/usr/local/apache/icons/"  
  547.   
  548.     <Directory "/usr/local/apache/icons">  
  549.         Options Indexes MultiViews  
  550.         AllowOverride None  
  551.         Order allow,deny  
  552.         Allow from all  
  553.     </Directory>  
  554.   
  555.     # This Alias will project the on-line documentation tree under /manual/  
  556.     # even if you change the DocumentRoot. Comment it if you don't want to   
  557.     # provide access to the on-line documentation.  
  558.     #  
  559.     Alias /manual/ "/usr/local/apache/htdocs/manual/"  
  560.   
  561.     <Directory "/usr/local/apache/htdocs/manual">  
  562.         Options Indexes FollowSymlinks MultiViews  
  563.         AllowOverride None  
  564.         Order allow,deny  
  565.         Allow from all  
  566.     </Directory>  
  567.   
  568.     #  
  569.     # ScriptAlias: This controls which directories contain server scripts.  
  570.     # ScriptAliases are essentially the same as Aliases, except that  
  571.     # documents in the realname directory are treated as applications and  
  572.     # run by the server when requested rather than as documents sent to the client.  
  573.     # The same rules about trailing "/" apply to ScriptAlias directives as to  
  574.     # Alias.  
  575.     #  
  576.     ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"  
  577.     ScriptAlias /php5/ "/usr/local/php5/bin/"  
  578.   
  579.     #  
  580.     # "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased  
  581.     # CGI directory exists, if you have that configured.  
  582.     #  
  583.     <Directory "/usr/local/apache/cgi-bin">  
  584.         AllowOverride None  
  585.         Options None  
  586.         Order allow,deny  
  587.         Allow from all  
  588.     </Directory>  
  589.   
  590. </IfModule>  
  591. # End of aliases.  
  592.   
  593. #  
  594. # Redirect allows you to tell clients about documents which used to exist in  
  595. # your server's namespace, but do not anymore. This allows you to tell the  
  596. # clients where to look for the relocated document.  
  597. # Format: Redirect old-URI new-URL  
  598. #  
  599.   
  600. #  
  601. # Directives controlling the display of server-generated directory listings.  
  602. #  
  603. <IfModule mod_autoindex.c>  
  604.   
  605.     #  
  606.     # FancyIndexing is whether you want fancy directory indexing or standard  
  607.     #  
  608.     IndexOptions FancyIndexing  
  609.   
  610.     #  
  611.     # AddIcon* directives tell the server which icon to show for different  
  612.     # files or filename extensions.  These are only displayed for  
  613.     # FancyIndexed directories.  
  614.     #  
  615.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip  
  616.   
  617.     AddIconByType (TXT,/icons/text.gif) text/*  
  618.     AddIconByType (IMG,/icons/image2.gif) image/*  
  619.     AddIconByType (SND,/icons/sound2.gif) audio/*  
  620.     AddIconByType (VID,/icons/movie.gif) video/*  
  621.   
  622.     AddIcon /icons/binary.gif .bin .exe  
  623.     AddIcon /icons/binhex.gif .hqx  
  624.     AddIcon /icons/tar.gif .tar  
  625.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv  
  626.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip  
  627.     AddIcon /icons/a.gif .ps .ai .eps  
  628.     AddIcon /icons/layout.gif .html .shtml .htm .pdf  
  629.     AddIcon /icons/text.gif .txt  
  630.     AddIcon /icons/c.gif .c  
  631.     AddIcon /icons/p.gif .pl .py  
  632.     AddIcon /icons/f.gif .for  
  633.     AddIcon /icons/dvi.gif .dvi  
  634.     AddIcon /icons/uuencoded.gif .uu  
  635.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl  
  636.     AddIcon /icons/tex.gif .tex  
  637.     AddIcon /icons/bomb.gif core  
  638.   
  639.     AddIcon /icons/back.gif ..  
  640.     AddIcon /icons/hand.right.gif README  
  641.     AddIcon /icons/folder.gif ^^DIRECTORY^^  
  642.     AddIcon /icons/blank.gif ^^BLANKICON^^  
  643.   
  644.     #  
  645.     # DefaultIcon is which icon to show for files which do not have an icon  
  646.     # explicitly set.  
  647.     #  
  648.     DefaultIcon /icons/unknown.gif  
  649.   
  650.     #  
  651.     # AddDescription allows you to place a short description after a file in  
  652.     # server-generated indexes.  These are only displayed for FancyIndexed  
  653.     # directories.  
  654.     # Format: AddDescription "description" filename  
  655.     #  
  656.     #AddDescription "GZIP compressed document" .gz  
  657.     #AddDescription "tar archive" .tar  
  658.     #AddDescription "GZIP compressed tar archive" .tgz  
  659.   
  660.     #  
  661.     # ReadmeName is the name of the README file the server will look for by  
  662.     # default, and append to directory listings.  
  663.     #  
  664.     # HeaderName is the name of a file which should be prepended to  
  665.     # directory indexes.   
  666.     #  
  667.     ReadmeName README.html  
  668.     HeaderName HEADER.html  
  669.   
  670.     #  
  671.     # IndexIgnore is a set of filenames which directory indexing should ignore  
  672.     # and not include in the listing.  Shell-style wildcarding is permitted.  
  673.     #  
  674.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t  
  675.   
  676. </IfModule>  
  677. # End of indexing directives.  
  678.   
  679. #  
  680. # Document types.  
  681. #  
  682. <IfModule mod_mime.c>  
  683.   
  684.     #  
  685.     # AddLanguage allows you to specify the language of a document. You can  
  686.     # then use content negotiation to give a browser a file in a language  
  687.     # it can understand.    
  688.     #  
  689.     # Note 1: The suffix does not have to be the same as the language   
  690.     # keyword --- those with documents in Polish (whose net-standard   
  691.     # language code is pl) may wish to use "AddLanguage pl .po" to   
  692.     # avoid the ambiguity with the common suffix for perl scripts.  
  693.     #  
  694.     # Note 2: The example entries below illustrate that in quite  
  695.     # some cases the two character 'Language' abbreviation is not  
  696.     # identical to the two character 'Country' code for its country,  
  697.     # E.g. 'Danmark/dk' versus 'Danish/da'.  
  698.     #  
  699.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char   
  700.     # specifier. But there is 'work in progress' to fix this and get   
  701.     # the reference data for rfc1766 cleaned up.  
  702.     #  
  703.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)  
  704.     # French (fr) - German (de) - Greek-Modern (el)  
  705.     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)  
  706.     # Portugese (pt) - Luxembourgeois* (ltz)  
  707.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)  
  708.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)  
  709.     # Russian (ru)  
  710.     #  
  711.     AddLanguage da .dk  
  712.     AddLanguage nl .nl  
  713.     AddLanguage en .en  
  714.     AddLanguage et .ee  
  715.     AddLanguage fr .fr  
  716.     AddLanguage de .de  
  717.     AddLanguage el .el  
  718.     AddLanguage he .he  
  719.     AddCharset ISO-8859-8 .iso8859-8  
  720.     AddLanguage it .it  
  721.     AddLanguage ja .ja  
  722.     AddCharset ISO-2022-JP .jis  
  723.     AddLanguage kr .kr  
  724.     AddCharset ISO-2022-KR .iso-kr  
  725.     AddLanguage nn .nn  
  726.     AddLanguage no .no  
  727.     AddLanguage pl .po  
  728.     AddCharset ISO-8859-2 .iso-pl  
  729.     AddLanguage pt .pt  
  730.     AddLanguage pt-br .pt-br  
  731.     AddLanguage ltz .lu  
  732.     AddLanguage ca .ca  
  733.     AddLanguage es .es  
  734.     AddLanguage sv .sv  
  735.     AddLanguage cs .cz .cs  
  736.     AddLanguage ru .ru  
  737.     AddLanguage zh-TW .zh-tw  
  738.     AddCharset Big5         .Big5    .big5  
  739.     AddCharset WINDOWS-1251 .cp-1251  
  740.     AddCharset CP866        .cp866  
  741.     AddCharset ISO-8859-5   .iso-ru  
  742.     AddCharset KOI8-R       .koi8-r  
  743.     AddCharset UCS-2        .ucs2  
  744.     AddCharset UCS-4        .ucs4  
  745.     AddCharset UTF-8        .utf8  
  746.   
  747.     # LanguagePriority allows you to give precedence to some languages  
  748.     # in case of a tie during content negotiation.  
  749.     #  
  750.     # Just list the languages in decreasing order of preference. We have  
  751.     # more or less alphabetized them here. You probably want to change this.  
  752.     #  
  753.     <IfModule mod_negotiation.c>  
  754.         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw  
  755.     </IfModule>  
  756.   
  757.     #  
  758.     # AddType allows you to tweak mime.types without actually editing it, or to  
  759.     # make certain files to be certain types.  
  760.     #  
  761.     AddType application/x-tar .tgz  
  762.     AddType application/x-httpd-php .php3  
  763.     AddType application/x-httpd-php .php  
  764.     AddType application/x-httpd-php .phtml  
  765.   
  766.     #  
  767.     # AddEncoding allows you to have certain browsers uncompress  
  768.     # information on the fly. Note: Not all browsers support this.  
  769.     # Despite the name similarity, the following Add* directives have nothing  
  770.     # to do with the FancyIndexing customization directives above.  
  771.     #  
  772.     AddEncoding x-compress .Z  
  773.     AddEncoding x-gzip .gz .tgz  
  774.     #  
  775.     # If the AddEncoding directives above are commented-out, then you  
  776.     # probably should define those extensions to indicate media types:  
  777.     #  
  778.     #AddType application/x-compress .Z  
  779.     #AddType application/x-gzip .gz .tgz  
  780.   
  781.     #  
  782.     # AddHandler allows you to map certain file extensions to "handlers",  
  783.     # actions unrelated to filetype. These can be either built into the server  
  784.     # or added with the Action command (see below)  
  785.     #  
  786.     # If you want to use server side includes, or CGI outside  
  787.     # ScriptAliased directories, uncomment the following lines.  
  788.     #  
  789.     # To use CGI scripts:  
  790.     #  
  791.     #AddHandler cgi-script .cgi  
  792.   
  793.     #  
  794.     # To use server-parsed HTML files  
  795.     #  
  796.     #AddType text/html .shtml  
  797.     #AddHandler server-parsed .shtml  
  798.   
  799.     #  
  800.     # Uncomment the following line to enable Apache's send-asis HTTP file  
  801.     # feature  
  802.     #  
  803.     #AddHandler send-as-is asis  
  804.   
  805.     #  
  806.     # If you wish to use server-parsed imagemap files, use  
  807.     #  
  808.     #AddHandler imap-file map  
  809.   
  810.     #  
  811.     # To enable type maps, you might want to use  
  812.     #  
  813.     #AddHandler type-map var  
  814.   
  815. </IfModule>  
  816.     Action application/x-httpd-php "/php5/php"  
  817. # End of document types.  
  818.   
  819. #  
  820. # Action lets you define media types that will execute a script whenever  
  821. # a matching file is called. This eliminates the need for repeated URL  
  822. # pathnames for oft-used CGI file processors.  
  823. # Format: Action media/type /cgi-script/location  
  824. # Format: Action handler-name /cgi-script/location  
  825. #  
  826.   
  827. #  
  828. # MetaDir: specifies the name of the directory in which Apache can find  
  829. # meta information files. These files contain additional HTTP headers  
  830. # to include when sending the document  
  831. #  
  832. #MetaDir .web  
  833.   
  834. #  
  835. # MetaSuffix: specifies the file name suffix for the file containing the  
  836. # meta information.  
  837. #  
  838. #MetaSuffix .meta  
  839.   
  840. #  
  841. # Customizable error response (Apache style)  
  842. #  these come in three flavors  
  843. #  
  844. #    1) plain text  
  845. #ErrorDocument 500 "The server made a boo boo.  
  846. #  n.b.  the single leading (") marks it as text, it does not get output  
  847. #  
  848. #    2) local redirects  
  849. #ErrorDocument 404 /missing.html  
  850. #  to redirect to local URL /missing.html  
  851. #ErrorDocument 404 /cgi-bin/missing_handler.pl  
  852. #  N.B.: You can redirect to a script or a document using server-side-includes.  
  853. #  
  854. #    3) external redirects  
  855. #ErrorDocument 402 http://www.example.com/subscription_info.html  
  856. #  N.B.: Many of the environment variables associated with the original  
  857. #  request will *not* be available to such a script.  
  858.   
  859. #  
  860. # Customize behaviour based on the browser  
  861. #  
  862. <IfModule mod_setenvif.c>  
  863.   
  864.     #  
  865.     # The following directives modify normal HTTP response behavior.  
  866.     # The first directive disables keepalive for Netscape 2.x and browsers that  
  867.     # spoof it. There are known problems with these browser implementations.  
  868.     # The second directive is for Microsoft Internet Explorer 4.0b2  
  869.     # which has a broken HTTP/1.1 implementation and does not properly  
  870.     # support keepalive when it is used on 301 or 302 (redirect) responses.  
  871.     #  
  872.     BrowserMatch "Mozilla/2" nokeepalive  
  873.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0  
  874.   
  875.     #  
  876.     # The following directive disables HTTP/1.1 responses to browsers which  
  877.     # are in violation of the HTTP/1.0 spec by not being able to grok a  
  878.     # basic 1.1 response.  
  879.     #  
  880.     BrowserMatch "RealPlayer 4\.0" force-response-1.0  
  881.     BrowserMatch "Java/1\.0" force-response-1.0  
  882.     BrowserMatch "JDK/1\.0" force-response-1.0  
  883.   
  884. </IfModule>  
  885. # End of browser customization directives  
  886.   
  887. #  
  888. # Allow server status reports, with the URL of http://servername/server-status  
  889. # Change the ".example.com" to match your domain to enable.  
  890. #  
  891. #<Location /server-status>  
  892. #    SetHandler server-status  
  893. #    Order deny,allow  
  894. #    Deny from all  
  895. #    Allow from .example.com  
  896. #</Location>  
  897.   
  898. #  
  899. # Allow remote server configuration reports, with the URL of  
  900. # http://servername/server-info (requires that mod_info.c be loaded).  
  901. # Change the ".example.com" to match your domain to enable.  
  902. #  
  903. #<Location /server-info>  
  904. #    SetHandler server-info  
  905. #    Order deny,allow  
  906. #    Deny from all  
  907. #    Allow from .example.com  
  908. #</Location>  
  909.   
  910. #  
  911. # There have been reports of people trying to abuse an old bug from pre-1.1  
  912. # days.  This bug involved a CGI script distributed as a part of Apache.  
  913. # By uncommenting these lines you can redirect these attacks to a logging   
  914. # script on phf.apache.org.  Or, you can record them yourself, using the script  
  915. # support/phf_abuse_log.cgi.  
  916. #  
  917. #<Location /cgi-bin/phf*>  
  918. #    Deny from all  
  919. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi  
  920. #</Location>  
  921.   
  922. ### Section 3: Virtual Hosts  
  923. #  
  924. # VirtualHost: If you want to maintain multiple domains/hostnames on your  
  925. # machine you can setup VirtualHost containers for them. Most configurations  
  926. # use only name-based virtual hosts so the server doesn't need to worry about  
  927. # IP addresses. This is indicated by the asterisks in the directives below.  
  928. #  
  929. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>  
  930. # for further details before you try to setup virtual hosts.  
  931. #  
  932. # You may use the command line option '-S' to verify your virtual host  
  933. # configuration.  
  934.   
  935. #  
  936. # Use name-based virtual hosting.  
  937. #  
  938. #NameVirtualHost *:80  
  939.   
  940. #  
  941. # VirtualHost example:  
  942. # Almost any Apache directive may go into a VirtualHost container.  
  943. # The first VirtualHost section is used for requests without a known  
  944. # server name.  
  945. #  
  946. #<VirtualHost *:80>  
  947. #    ServerAdmin [email protected]  
  948. #    DocumentRoot /www/docs/dummy-host.example.com  
  949. #    ServerName dummy-host.example.com  
  950. #    ErrorLog logs/dummy-host.example.com-error_log  
  951. #    CustomLog logs/dummy-host.example.com-access_log common  
  952. #</VirtualHost>  


在進行上訴步驟後即可移植成功。以上作爲參考,我會把編譯成功的打包上傳到資源中。如下鏈接

apache:http://download.csdn.net/detail/cangencong/4553164

php:http://download.csdn.net/detail/cangencong/4553169

sqlite2:http://download.csdn.net/detail/cangencong/4553173

zlib:http://download.csdn.net/detail/cangencong/4553175

libxml:http://download.csdn.net/detail/cangencong/4553177



HTTP.CONF配置文件下載http://download.csdn.net/detail/cangencong/5596839


轉載:http://blog.csdn.net/cangencong/article/details/7924315

發佈了5 篇原創文章 · 獲贊 37 · 訪問量 33萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章