继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

httpd+mysql+php+subversion

泛舟湖上清波郎朗
关注TA
已关注
手记 281
粉丝 32
获赞 226

httpd-2.4.7

./configure --prefix=/usr/local/apache2 --enable-so --enable-dav --enable-dav-fs --enable-modules=all --with-apr=/usr/local --with-apr-util=/usr/local --with-z=/usr/local --libdir=/usr/local --libexecdir=/usr/local --with-included-apr --enable-module=so --enable-ssl --with-ssl=/usr/local/ssl


mysql-5.6.15

groupadd mysql

useradd -r -g mysql mysql

./mysql_install_db --basedir=/usr/local/mysql --user=mysql

cp support-files/mysql.server /etc/init.d/mysqld

mysql -uroot

grant all privileges on *.* to root@'%' identified by "root";

update set mysql.user password="root" where User="root";

flush privileges;


php-5.5.8

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/etc --with-png-dir=/usr --with-openssl=/usr/local/ssl --with-openssl-dir=/usr/local/ssl --with-imap-ssl=/usr/local/ssl --with-zlib=/usr --with-zlib-dir=/usr

vi /usr/local/apache2/conf/httpd.conf 修改

AddType application/x-httpd-php .php

DirectoryIndex index.php

LoadModule php5_module        modules/libphp5.so

cp php.ini /usr/local/php/lib/php


subversion-1.8.5

./configure --prefix=/usr/local --with-apr=/usr/local --with-apr-util=/usr/local --with-apxs=/usr/local/apache2/bin/apxs --enable-sqlite-compatibility-version=3.8.3 --with-zlib=/usr/local --with-neon=/usr/share/locale --with-ssl=/usr


vi /usr/local/apache2/conf/httpd.conf

LoadModule authn_core_module modules/mod_authn_core.so

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_user_module modules/mod_authz_user.so

LoadModule dav_fs_module modules/mod_dav_fs.so

<Location /svn>

       DAV svn

       SVNpath /svn/

#       SVNParentPath /svn/

#       SVNListParePath on

       AuthType Basic

       AuthName "Write down the name and passwd"

       AuthuserFile /svn/passwd

       AuthzSVNAccessFile /svn/conf/authz

       Require valid-user

</Location>





打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP