php5+apache2+mysql环境安装authpuppy

所用环境: php5, apache2服务器


首先检测环境:check_configuration.php,执行该文件,在安装authpuppy之前保证所有必须的条件都满足。

   

可能会遇到的问题:

   

解决办法:

    1.PDO has some drivers installed : FAILED

         如果你用的数据库是mysql, 请安装;   sudo apt-get install php5-mysql

    2. XSL module is installed: FAILED

        请安装:  sudo apt-get install php5-xsl

    3. a PHP accelerator is installed: FAILED

        请安装; sudo apt-get install php5-apc

    4. php.ini has short_open_tag set to off: FAILED

        在你的安装目录中找着php.ini, 并找着short_open_tar设置为off即可。

获取源代码:

    获取最新的代码:   源代码, 将文件解压到web服务器目录中。

    tar xvf authpuppy-<version>-<stability>_<packaging>.tgz

   sudo mv authpuppy/ /var/www

配置apache服务器:

    该项目的apache2服务器的配置和其他任一个symfony项目的配置类似。想要查看更多细节请查看:symfony web server configuration.

   

设置目录权限:

    为了应用可以使用,一些目录必须有写权限,在开发服务器上,可以这么做:

          chmod -R a+w  <directory>

    在生产环境下最好将所有者设置成web服务器进程的所有者:

          chown -R www-data <directory> (procided www-data is the apache proces owner ,on some os, it is 'apache' or 'https')

   下面列出要设置权限的目录.其中标记*的对工作系统必须是可写的,其他的在插件自动安装时必须是可写的,但这写可以被手动设置。

     .config* 或者至少config/authpuppy.yml:  因为config/authpuppy.yml文件包含使能插件列表,可写保证在初始化时可以被加载。

    .cache*:   在运行时被symfony使用,缓存函数和数据。

    .log*:  日志目录。

    .data*:  清除缓存人物需要该目录的访问权限。

    .plugins:   插件安装的目录。

    .web:   Plugins may have assets(images, javascript, css)to publish to the web directory , so make sure it is writable, otherwise you'll need to do this by hand.


创建数据库:

    mysql:

    user@youserver $> mysqladmin -uroot -p create autpuppy

    Enter password: #Enter the root password

    user@youserver $> mysql -u root -p

    Enter password

    Welcome to the MySQL minitor. Commands end with ; or \g.

    Your MySQL connection id is 45

    Server version: 5.0.51a-3ubuntu5.5(Ubuntu)

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

    mysql> create user 'authpuppy'@'localhost' identified by 'autelan';

    Query OK, 0 rows affected(0.21 sec)

    mysql> grant all privileges on authpuppy.* to 'authpuppy'@'localhost' with grant option;

    Query OK, 0 rows affected (0.02 sec)


开始安装authpuppy

    在浏览器中打开http://localhost:youport(http://localhost:9090)

  

如果你的权限出现以下问题:

   

    请保证该有写权限的目录都有写权限即可。




   



















 















   

  




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值