fastadmin 开发remark

官网上的安装, 这两个步骤如果是下载完整包则可以不用. 如果是用git下载的则需要.

  • 下载前端插件依赖包
    bower install
  • 下载PHP依赖包
    composer install

 

1,

fastadmin# php think install -u root -p f 
  [PDOException]         
  could not find driver 

php目录:

/etc/php/7.0

mysql 扩展pdo安装

https://www.jianshu.com/p/be597e7a9ef9
 

2,

php think install(这种方式安装,需要手动去修改application下的database.php):

  [PDOException]                                                                         
  SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

 

3, 访问页面出现 “页面无法访问” :

去runtime 目录下 chmod 777 ./* , 还不行的话,去runtime/cache/ 最里面的去执行777 

可以看runtime/log下面具体是什么原因报错. 

 

4, 前台页面点击无法进入到后台:

手动在url中输入加上 admin.php

 

5, fastadmin只能访问前台页面,后台无法访问:

参考: https://blog.csdn.net/trh0123/article/details/51693527

# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart

6, 无法显示登录的验证码图片.log :

fastadmin/public/index.php?s=/captcha&r=0.9370463162924249
[ error ] [0]致命错误: Call to undefined function think\captcha\imagecreate()

解决方法:apt-get install php-gd

cd /etc/php/7.0/apache2

vi php.ini

去掉这个前面的分号 extension=php_gd2.dll

/etc/init.d/apache2 restart

 

7, phpmyadmin:

The mbstring extension is missing. Please check your PHP configuration.

$ sudo vim /etc/php/7.0/apache2/php.ini
display_errors = On(显示错误日志,出现两次,都要改,不然无效)
extension=php_mbstring.dll (开启mbstring)

8, phpmyadmin如何添加表注释,

在表中上面横排菜单中选 操作, 里面有表注释

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

卜溪大人

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值