CentOS6.6下的authpuppy源码安装与配置完全纯净版
安装与配置authpuppy:
源码包:
#wget https://launchpad.net/authpuppy/trunk/1.0.0-stable/+download/authpuppy-1.0.0-stable.tgz
#cd /home
tar -xvf authpuppy-1.0.0-stable.tgz
#// apache配置一个虚拟域名(比如http://authpuppy.localhost/)指向目录 /home/authpuppy
打开http://authpuppy.localhost/
按提示完成对依赖包的安装(Requirements下的最好都安装), 如下:
依赖库: // 主要是PHP扩展包
APCu:
#wget http://pecl.php.net/get/apcu-4.0.6.tgz
#phpize
#./configure --with-php-config=/usr/local/php/bin/php-config --enable-apcu --enable-apc-bc
#make -s
#make install
#vi /usr/local/php/etc/php.ini
extension=apcu.so
Permissions下出现红色部分,则需要做下面操作:
#chmod a+w authpuppy/ -R
#//自动创建authpuppy.yml
然后:
// 必须需要启用pdo_mysql,因为symfony的用的是PDO, 灵感来自http://bbs.csdn.net/topics/390036982
#cd php-5.6.2/ext/pdo_mysql
#phpize
#./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql/
#make -s
#make install
#mysqladmin -uroot -p create authpuppy
#mysql -uroot -p
#create user 'authpuppy'@'localhost' identified by 'authpuppydev';
#grant all privileges on authpuppy.* to 'authpuppy'@'localhost' with grant option;
接着按界面来走就好了。
本文章由 http://www.wifidog.pro/2015/02/25/centos%E5%AE%89%E8%A3%85authpuppy.html 整理编辑,转载请注明出处