PHPHub5 安装失败?
2

首先感谢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$

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

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 3

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

7个月前

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

5个月前

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

3个月前

  • 请注意单词拼写,以及中英文排版,参考此页
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`, 更多语法请见这里 Markdown 语法
  • 支持表情,使用方法请见 Emoji 自动补全来咯,可用的 Emoji 请见 :metal: :point_right: Emoji 列表 :star: :sparkles:
  • 上传图片, 支持拖拽和剪切板黏贴上传, 格式限制 - jpg, png, gif
  • 发布框支持本地存储功能,会在内容变更时保存,「提交」按钮点击时清空
  请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!