ImageVerifierCode 换一换
格式:DOCX , 页数:23 ,大小:25.75KB ,
资源ID:3525706      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/3525706.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(apache+mysql+php+svn自动发布服务器搭建.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

apache+mysql+php+svn自动发布服务器搭建.docx

1、apache+mysql+php+svn自动发布服务器搭建服务器搭建步骤系统:linux 2.6内核软件:httpd-2.2.17.tar.gz,mysql-5.1.54-linux-i686-glibc23.tar.gz,php-5.2.16.tar.gz,subversion-1.5.9.tar.gz,subversion-deps-1.5.9.tar.gz,openssl-1.0.0c.tar.tar注:如无特别说明,安装顺序由上到下,安装前用户为root,为了复制方便,命令前不加#路径,【】部分可省略,对于外网服务器,对apache和php只加载有效使用的模块,并不安装subversi

2、on。Apr,apr-util,neon, serf, zlib安装包在subversion-deps-1.5.9.tar.gz内。所有目标安装路径为/usr/local/应用名称(仅个人习惯,可更改安装中的prefix选项)安装前准备(如无以下包需提前安装)Apr./configure -prefix=/usr/local/aprMake & make installApr-util./configure -with-apr=/usr/local/aprMake & make intallNeon./configure prefix=/usr/local/neonMake & make in

3、stallZlib./configure prefix=/usr/local/neonMake & make installSerf./configure prefix=/usr/local/neonMake & make installhttpd-2.2.17.tar.gz安装tar zxvf httpd-2.2.17.tar.gzcd httpd-2.2.17./configure -prefix=/usr/local/httpd-2.2.17 -enable-dav -enable-so -enable-maintainer-mode -enable-rewrite -enable-sp

4、eling=sharedMakeMake testMake install/usr/local/ httpd-2.2.17/bin/apachectl startmysql-5.1.54-linux-i686-glibc23.tar.gztar zxvf mysql-5.1.54-linux-i686-glibc23.tar.gzmv mysql-5.1.54-linux-i686-glibc23 /usr/local/ mysql-5.1.54-3306cd /usr/local/ mysql-5.1.54-3306groupadd mysqluseradd g mysql mysqlcp

5、./support-files/my-f f./scripts/mysql_install_db -user=mysqlchown -R root .chown -R mysql datachgrp -R mysql ./usr/local/mysql-5.1.54-3306/bin/mysqld_safe -user=mysql &./bin/mysqladmin -u root password helloehsy./bin/mysqladmin -u root -p ehsyvvgood shutdownvi /usr/local/mysql-5.1.54-3306/support-fi

6、les/mysql.server修改如下内容:basedir=/usr/local/mysql-5.1.54-3306datadir=$basedir/datacp /usr/local/mysql-5.1.54-3306/support-files/mysql.server /etc/rc.d/init.d/mysql-3306chmod +x /etc/rc.d/init.d/mysql-3306chkconfig -add mysql-3306service mysql-3306 stop/start/restart注:如安装在其它端口,在cp ./support-files/my-f

7、f后执行如下操作vi fclient#password = your_passwordport = 3309socket = /tmp/mysql-3309.sock# Here follows entries for some specific programs# The MySQL servermysqldport = 3309socket = /tmp/mysql-3309.sock# ./scripts/mysql_install_db -user=mysql向下安装步骤同3306,请自行更改相关配置mysql -S /tmp/mysql-3309.sock -uroot -phell

8、oehsyphp-5.2.16.tar.gztar zxvf php-5.2.16.tar.gzmkdir /usr/local/php-5.2.16cd php-5.2.16cp php.ini-dist /usr/local/php-5.2.16/php.ini./configure -with-apxs2=/usr/local/httpd-2.2.17/bin/apxs -with-mysql=/usr/local/mysql-5.1.54 -prefix=/usr/local/php-5.2.16 -with-config-file-path=/usr/local/php-5.2.16

9、/php.ini带mhash的插件./configure -with-apxs2=/usr/local/httpd-2.2.17/bin/apxs -with-mysql=/usr/local/mysql-5.1.54-3306 -prefix=/usr/local/php-5.2.16 -with-config-file-path=/usr/local/php-5.2.16/php.ini -with-mhash=/usr/local/mhashMakemake testMake installsubversion-1.5.9.tar.gztar zxvf subversion-1.5.9.

10、tar.gzcd subversion-1.5.9./configure -with-apr=/usr/local/apr/bin/apr-1-config -with-apr-util=/usr/local/apr/bin/apu-1-config -with-apxs=/usr/local/httpd-2.2.17/bin/apxs -prefix=/usr/local/subversion-1.5.9 -with-ssl=/usr/local/openssl -with-neon=/usr/local/neon -with-serf=/usr/local/serfMakeMake ins

11、tallsvnadmin versionvi /usr/local/httpd-2.2.17/conf/httpd.conf#在最后加上 DAV svn SVNParentPath /usr/svnroot/repository/ AuthzSVNAccessFile /usr/svnroot/repository/authz.conf AuthType Basic AuthName EHSY said that your are MIMI-BOY from Subversion AuthUserFile /usr/svnroot/repository/authfile Require val

12、id-user/usr/local/subversion-1.5.9/bin/svnadmin create /home/svnroot/repository/ehsy_old#一般会在库内创建三个文件夹branches,tags和trunkchmod 700 /usr/svnroot/repository/usr/local/httpd-2.2.17/bin/htpasswd -c /usr/svnroot/repository/authfile admin#第一次创建使用-cvi /usr/svnroot/repository/authz.conf#参考如下内容自行设定ehsy_old:/

13、 /这表示,仓库ehsy_old的根目录下的访问权限admin=rw /ehsy_old仓库admin用户具有读和写权限/ /这个表示在所有仓库的根目录下* = r /这个表示对所有的用户都具有读权限#groups /这个表示群组设置#svn1-developers = admin, bowen /这个表示某群组里的成员#svn2-developers = rick,andy#svn1:/#svn1-developers = rw /如果在前面加上符号,则表示这是个群组权限设置/usr/local/httpd-2.2.17/bin/apachectl restartchown daemon.d

14、aemon -R /usr/svnrootsvnserve d#svn import tmp/ svn:/localhost/svn/ehsy_old -m init#将下面的conf文件夹复制到/usr/svnroot/repositoty目录下#将下面的同步post-commit文件复制到/usr/svnroot/repository/ehsy_old/hooks目录下#配置其中的文件,修改读取的配置文件路径指向到conf目录下的文件中,并修改其所指向的配置文件chown deamon.daemon post-commitchmod a+x post-commit同步外网服务器#如果rsy

15、nc密码文件是/etc/rsync.pwdChmod R 0600 /etc/rsync.pwd#请复制下面的“同步post-commit”到/usr/svnroot/repository/ehsy_old/hooks目录下Cp 同步post-commit /usr/svnroot/repository/ehsy_old/hooks/post-commit自动导出到网站目录#请将网站目录设置为daemon用户Chmod R daemon.daemon /var/www/配置文件内容ServerRoot /usr/local/httpd-2.2.17# Listen: Allows you to

16、 bind Apache to specific IP addresses and/or# ports, instead of the default. See also the # directive.# Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses.#Listen 12.34.56.78:80Listen 80# Dynamic Shared Object (DSO) Support# To

17、 be able to use the functionality of a module which was built as a DSO you# have to place corresponding LoadModule lines at this location so the# directives contained in it are actually available _before_ they are used.# Statically compiled modules (those listed by httpd -l) do not need# to be loade

18、d here.# Example:# LoadModule foo_module modules/mod_foo.so#LoadModule speling_module modules/mod_speling.so#LoadModule rewrite_module modules/mod_rewrite.soLoadModule php5_module modules/libphp5.soLoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.soAd

19、dType application/x-httpd-php .php# If you wish httpd to run as a different user or group, you must run# httpd as root initially and it will switch. # User/Group: The name (or #number) of the user/group to run httpd as.# It is usually good practice to create a dedicated user and group for# running h

20、ttpd, as with most system services.#User daemonGroup daemon# Main server configuration# The directives in this section set up the values used by the main# server, which responds to any requests that arent handled by a# definition. These values also provide defaults for# any containers you may define

21、 later in the file.# All of these directives may appear inside containers,# in which case these default settings will be overridden for the# virtual host being defined.# ServerAdmin: Your address, where problems with the server should be# e-mailed. This address appears on some server-generated pages

22、, such# as error documents. e.g. adminyour-#ServerAdmin you# ServerName gives the name and port that the server uses to identify itself.# This can often be determined automatically, but we recommend you specify# it explicitly to prevent problems during startup.# If your host doesnt have a registered

23、 DNS name, enter its IP address here.#ServerName :80# DocumentRoot: The directory out of which you will serve your# documents. By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locations.#DocumentRoot /var/www# Each directory to whi

24、ch Apache has access can be configured with respect# to which services and features are allowed and/or disabled in that# directory (and its subdirectories). # First, we configure the default to be a very restrictive set of # features. # Options FollowSymLinks AllowOverride None Order deny,allow Deny

25、 from all# Note that from this point forward you must specifically allow# particular features to be enabled - so if somethings not working as# you might expect, make sure that you have specifically enabled it# below.# This should be changed to whatever you set DocumentRoot to.# # # Possible values f

26、or the Options directive are None, All, # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that MultiViews must be named *explicitly* - Options All # doesnt give it to you. # # The Options directive is both complicated and important. Please se

27、e # http:/httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be All, None, or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverri

28、de All # # Controls who can get stuff from this server. # Order allow,deny Allow from all# DirectoryIndex: sets the file that Apache will serve if a directory# is requested.# DirectoryIndex index.html# The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # Or

29、der allow,deny Deny from all Satisfy All# ErrorLog: The location of the error log file.# If you do not specify an ErrorLog directive within a # container, error messages relating to that virtual host will be# logged here. If you *do* define an error logfile for a # container, that hosts errors will be logged there and not here.#ErrorLog logs/error_log# LogLevel: Control the number of messages logged to the error_log.# Possible values include: debug, info, notice, warn, error, crit,# alert, emerg.#LogLevel warnIfMo

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1