06 2012 档案

fedora 16 下搭建git+apache+webdav环境
摘要:1、在apache httpd.conf配置文件添加<Directory"/var/www/html/gitrepo">DavOnOptions+Indexes+FollowSymLinksAllowOverrideNoneOrderAllow,DenyAllowfromallAuthTypeBasicAuthName"Git"AuthUserFile"/var/www/html/user.git"Requirevalid-user</Directory>2、将当前用户heroking加入到apache用户组, 阅读全文

posted @ 2012-06-28 19:00 Hero King 阅读(255) 评论(0) 推荐(0)

fedora 下apache webdav方式部署git环境权限问题
摘要:push发生如下错误$gitpushoriginmasterPassword:Password:Fetchingremoteheads...refs/refs/heads/refs/tags/updating'refs/heads/master'from0000000000000000000000000000000000000000toc169dbae92589f44bb734c1ded4a4ec6888f5ac2Unabletolockremotebranchrefs/heads/masterUpdatingremoteserverinfoPUTerror:curlresul 阅读全文

posted @ 2012-06-28 17:25 Hero King 阅读(503) 评论(0) 推荐(0)

fedora 下apache webdav方式部署git环境目录权限问题
摘要:在git push时发生错误提示$gitpushoriginmasterPassword:Password:Fetchingremoteheads...refs/refs/heads/refs/tags/updating'refs/heads/master'from21c3f85e8c1515c11ed79621f6530fd5a2f196b5to80f2f6062263e1db19e9112c75b8d60da0d142e9sending3objectsMKCOLcea344446bb51d90f64c9aaed1a8e2b5bed95b2bfailed,aborting(2 阅读全文

posted @ 2012-06-28 14:10 Hero King 阅读(436) 评论(0) 推荐(0)

fedora 16 下搭建gvim+xdebug调试环境
摘要:gvim、php、apache的安装这里就不介绍了,建议使用yum安装。1、安装python、python-devel、mercurial#yuminstallpythonpython-develmercurial2、安装xdebug#yumphp-perl-xdebug3、安装DBGp 在http://www.vim.org/scripts/script.php?script_id=1929下载debugger.zip,将其加压后,将plugin目录下的debugger.vim和debugger.py放入~/.vim/plugin目录下.4、在/etc/php.d/xdebug.ini中修改 阅读全文

posted @ 2012-06-20 10:44 Hero King 阅读(649) 评论(0) 推荐(0)

centos 6.2 LVS+Keepalived搭建集群环境
摘要:因为没有其他机器来搭建集群环境,我只能在我的小本上安装虚拟机来模拟集群环境了,先介绍下网络环境:虚拟机1:192.168.1.6 eth0 MASTER CentOS 6.2虚拟机2:192.168.1.8 eth2 BACKUP CentOS 6.2VIP:192.168.1.101、分别在两台虚拟机上安装keepalived、ipvsadm、apache安装细节就不说了,网上都有。2、 在MASTER虚拟机上添加可执行文件lvs_dr,BACKUP稍有区别,内容如下#!/bin/shVIP=192.168.1.10#VirtualIPRIP1=192.168.1.6#RealServerI 阅读全文

posted @ 2012-06-17 17:45 Hero King 阅读(792) 评论(1) 推荐(0)

Drupal 访问页面空白问题分析
摘要:最近发现Drupal的页面老是显示空白,查看了apache错误日志,发现问题如下:[FriJun0112:05:322012][error][client<ip>]PHPFatalerror:Allowedmemorysizeof33554432bytesexhausted(triedtoallocate48bytes)in/var/www/html/drupal-7.12/includes/menu.inconline3727,referer:http://<domain>/drupal/?q=node/add原来PHP分配的内存不足造成的,修改PHP.ini文件,默 阅读全文

posted @ 2012-06-01 12:23 Hero King 阅读(314) 评论(0) 推荐(0)

导航