PHPHub5 安装失败?

问答 clz ⋅ 于 4个月前 ⋅ 最后回复由 yczx001 1周前 ⋅ 356 阅读

首先感谢phphub的开源精神,有这么好用的论坛系统给大家,但是我这次安装最新的phphub5,却一直安装失败,找不出原因在哪里,所以在这贴出我的步骤和困惑,希望看见的兄弟姐妹,有懂的,给指点一下迷津,感激不尽!
安装步骤

step1     git clone https://github.com/summerblue/phphub5.git
step2     composer install
step3     cp .env.example .env

修改.env文件,设置环境为开发环境

APP_ENV=local
APP_DEBUG=true

继续安装

step4     php artisan est:install

执行到这一步就一直卡死在这里了,界面如下

vagrant@homestead:~/code/phphub5$ php artisan est:install
---
php artisan key:generate
Application key [base64:nQDHwsryHTn8OLyIur/xGuxh/55whxtx3/36vLAkW/M=] set successfully.

---
---
php artisan migrate --seed

就停留在这个界面一直不动,我只能手动断掉,然后执行下面的命令,重新来一遍

php artisan est:reinstall

依然是报错的,如下

vagrant@homestead:~/code/phphub5$ php artisan est:reinstall

 Your are in「Production」environment, Reset database and reset RABC! Are you sure you want to do this? [y|N] (yes/no) [no]:
 > yes

---
composer dump
Generating autoload files

---
---
php artisan est:dbreset --force
No table
Migration table created successfully.
Migrated: 2013_04_09_062329_create_revisions_table
Migrated: 2014_04_24_110151_create_oauth_scopes_table
Migrated: 2014_04_24_110304_create_oauth_grants_table
Migrated: 2014_04_24_110403_create_oauth_grant_scopes_table
Migrated: 2014_04_24_110459_create_oauth_clients_table
Migrated: 2014_04_24_110557_create_oauth_client_endpoints_table
Migrated: 2014_04_24_110705_create_oauth_client_scopes_table
Migrated: 2014_04_24_110817_create_oauth_client_grants_table
Migrated: 2014_04_24_111002_create_oauth_sessions_table
Migrated: 2014_04_24_111109_create_oauth_session_scopes_table
Migrated: 2014_04_24_111254_create_oauth_auth_codes_table
Migrated: 2014_04_24_111403_create_oauth_auth_code_scopes_table
Migrated: 2014_04_24_111518_create_oauth_access_tokens_table
Migrated: 2014_04_24_111657_create_oauth_access_token_scopes_table
Migrated: 2014_04_24_111810_create_oauth_refresh_tokens_table
Migrated: 2014_10_28_175635_create_threads_table
Migrated: 2014_10_28_175710_create_messages_table
Migrated: 2014_10_28_180224_create_participants_table
Migrated: 2014_11_03_154831_add_soft_deletes_to_participants_table
Migrated: 2014_12_04_124531_add_softdeletes_to_threads_table
Migrated: 2016_05_09_154236_create_tags_table
Migrated: 2016_07_03_015719_create_topics_table
Migrated: 2016_07_03_020659_create_sitestatuses_table
Migrated: 2016_07_03_020714_create_replies_table
Migrated: 2016_07_03_020734_create_links_table
Migrated: 2016_07_03_020815_create_appends_table
Migrated: 2016_07_03_020818_create_attentions_table
Migrated: 2016_07_03_021130_create_votes_table
Migrated: 2016_07_03_021841_create_users_table
Migrated: 2016_07_03_023927_create_categories_table
Migrated: 2016_07_03_222952_entrust_setup_tables
Migrated: 2016_07_06_014514_create_notifications_table
Migrated: 2016_07_08_154127_create_banners_table
Migrated: 2016_07_17_094053_create_followers_table
Migrated: 2016_07_17_145102_create_active_users_table
Migrated: 2016_07_17_215720_create_hot_topics
Migrated: 2016_07_23_162047_create_sites_table
Migrated: 2016_07_28_102537_create_notificationmaillogs_table
Migrated: 2016_07_28_104715_create_failed_jobs_table
Migrated: 2016_10_16_225901_create_maintainer_logs
Migrated: 2016_12_15_071034_add_signature_to_users_table
Migrated: 2017_01_08_153204_create_blogs_table
Migrated: 2017_01_15_154051_add_articles_count_to_users_table
Migrated: 2017_01_17_102202_add_password_filed_to_users_table
Migrated: 2017_02_10_064041_setup_draft
Migrated: 2017_02_23_154513_create_blog_subscribers
Migrated: 2017_02_24_083334_add_gender_to_users_table
Migrated: 2017_02_25_110118_add_message_count_to_users_table
Migrated: 2017_03_15_131411_create_activities_table
Migrated: 2017_03_16_060233_create_images_table
Migrated: 2017_03_16_145858_add_slug_to_topics_table
Migrated: 2017_03_20_062421_create_blog_manager_table
Migrated: 2017_03_20_105801_create_blog_topics
Migrated: 2017_03_20_154151_create_blog_authors_table
Migrated: 2017_08_11_084926_create_share_links_table
别傻了? 这是线上环境呀。
---
---
php artisan est:init-rbac
Users table is empty

---
---
php artisan cache:clear
Cache cleared successfully.

---
-------
-------
Command execution completed, time consuming: 14.903s, memory usage: 14.00Mb 
-------
-------
vagrant@homestead:~/code/phphub5$

关键是我的环境已经置为非生产环境了,但是一直告诉我说是生产环境,不知道是哪里出错了,希望有知道的给指点一二,谢谢!

本文章首发在 Laravel China 社区
回复数量: 3
  • 骆海
    4个月前

    我跟你一样哎,今天下了项目想在本地安装学习下,我也修改了 .env 中两个变量,安装时,一直提示“别傻了? 这是线上环境呀。”这句话,不知道哪里不对

  • 八谷泉
    2个月前

    一样的问题 感觉要往里面输入什么 才会继续往下走一样

  • yczx001
    1周前

    一样,有没有解决呢?想安装这个程序,换了几台电脑配置都是别傻了这是线上环境呀。。。

暂无评论~~
您需要登陆以后才能留下评论!

Composer 中国全量镜像

Top 100 扩展包

Lumen 中文文档

Laravel 速查表

Laravel 中文文档

Laravel 项目开发规范

Laravel 开发环境部署

GraphQL PHP 中文文档

社区文档撰写指南

TDD 构建 Laravel 论坛笔记

PHP PSR 标准规范

PHP 设计模式全集

Dingo API 中文文档