Linux下部署apache+svn+ldap驗證

來源:互聯網
上載者:User

 

一:相關版本subversion

 

二:安裝準備#cd /opt# tar zxvf httpd-2.2.17.tar.gz# tar zxvf subversion-deps-1.6.15.tar.gz# tar zxvf subversion-1.6.15.tar.gz到這一步,如果是32位的linux系統,可以直接安裝httpd了,如果地64位的linux,需要進行以下操作,進行重新編譯:1、刪除安裝目錄下的configure檔案,在我的環境中是httpd-2.2.6/configure2、刪除“httpd-2.2.17/srclib/apr-util/configure”3、通過以下命令重建編譯檔案(以下命令在http-2.2.17/目錄下運行)#./buildconf通過以上重建編譯檔案,現在可以擁有64位的apr-util了

 

三:httpd的安裝.

 

# ./configure --prefix=/usr/local/apache1 --enable-so --enable-dav --enable-dav-fs --enable-ldap --enable-authnz-ldap --with-included-apr --with-ldap --with-ldap-include=/usr/lib64/evolution-openldap/include --with-ldap-lib=/usr/lib64 --with-apr=srclib/apr/apr-1-config --with-apr-util=srclib/apr-util/apu-1-config

 

make&make install

 

四:subversion的安裝

 

# ./configure --with-apxs=/usr/local/apache1/bin/apxs --with-apr=/usr/local/apache1/bin/apr-1-config --with-apr-util=/usr/local/apache1/bin/apu-1-config --prefix=/usr/local/subversion --with-ssl --with-zlib=/usr/lib64

 

# make && make install

 

configure 遇到報錯:configure: error: Subversion requires SQLite

下載最新sqlite   sqlite-autoconf-3070701.tar.gz   拷貝到如下目錄

 

cp sqlite3.c  ~/lamp/subversion-1.6.17/sqlite-amalgamation/

 

make 遇到報錯:/usr/bin/ld: cannot find -lexpat

 

yum install expat-devel

 

五:建立

# cd /opt/subversion/bin/

 

# mkdir /svn

 

# ./svnadmin create /svn/test

 

# ls /opt/ccxesvn/test/ 

 

//如果ls /opt/ccxesvn /test/ 出現了下面的內容,就說明subversion安裝成功了.

 

conf   dav   db   format   hooks   locks   README.txt

 

 啟動服務:/usr/local/subversion/bin/svnserve -d

 

六:修改目錄許可權#

 

chmod -R 777 /svn

 

 域認證,其他使用者沒有許可權訪問

 

七:修改Apache的設定檔1):開啟apache/conf/httpd.conf檔案2):修改httpd.conf檔案,

 

LDAPSharedCacheSize 200000

LDAPCacheEntries 1024

LDAPCacheTTL 600

LDAPOpCacheEntries 1024

LDAPOpCacheTTL 600

<Location /repos>

        DAV     svn

        SVNParentPath /svn

        SVNListParentPath On

        Order allow,deny

        Allow from all

        AuthType        Basic

        AuthBasicProvider       ldap

        AuthzLDAPAuthoritative off

        AuthName        "example work"

        AuthLDAPURL "=*)"

        AuthLDAPBindDN "demo@office.net"

        AuthLDAPBindPassword "123456"

        Require ldap-group CN=ITdev,OU=group,DC=office,DC=net

</Location>

 

重啟apache

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.