如何使用PHP版本5.x安装OctoberCMS? [英] How Can I install OctoberCMS with PHP Version 5.x?

查看:189
本文介绍了如何使用PHP版本5.x安装OctoberCMS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Windows 10,Xampp安装了PHP版本5.x,并且我想使用安装向导 https://octobercms.com/docs/setup/installation ,但我注意到OctoberCMS需要 PHP 7.0 或更高版本才能实现此目标,并且我具有版本5.x .

I have Windows 10, Xampp installed with PHP Version 5.x and I want to install OctoberCMS with Installation wizard https://octobercms.com/docs/setup/installation but I noticed that OctoberCMS requires PHP 7.0 or higher to achieve this and I have version 5.x.

那么如何使用 PHP版本5.x 安装OctoberCMS?

So How can I install OctoberCMS with PHP Version 5.x ?

推荐答案

好的,伙计们,最终我想出了使用PHP版本5.x安装 OctoberCMS 的解决方案.

OK Guys, Eventually I have come up with the solution to install OctoberCMS with PHP Version 5.x.

请记住,这些步骤可以根据您的操作系统和系统中已安装的内容而有所不同.

Remember, these steps can be varied based on your operating system and the things which you have installed in your system.

  • 首先转到OctoberCMS更改日志- https://octobercms.com/changelog 并找到 Build 419 具有php 5.x版支持.
  • 然后转到OctoberCMS发布列表- https://github.com/octobercms/october/releases ,然后单击您需要安装的版本 v1.0.419 .将zip安装到xampp/htdocs的根目录,然后解压缩该文件夹.
  • 然后在提取的同一文件夹内,运行此composer install.
  • 此后,运行php artisan october:env.如果出现错误 php不被识别为内部或外部命令,则可以运行C:\xampp\php\php.exe artisan october:env.
  • php artisan october:env之后,创建了.env文件.在那里,您需要通过打开该文件(位于同一文件夹中)来修改数据库设置,例如数据库名称,端口(本地主机输入3306等).
  • 然后运行php artisan october:upC:\xampp\php\php.exe artisan october:up.它将创建数据库表,并且将使用以下用户创建您的管理员用户: admin ,密码: admin (登录后可以更改).后端网址将类似于 http://example.com/backend .
  • 完成后,您可以将所有提取的文件夹文件剪切粘贴到根..,例如从C:\xampp\htdocs\youproject\version419C:\xampp\htdocs\youproject\.
  • First go to OctoberCMS Change log - https://octobercms.com/changelog and find Build 419 has the php version 5.x support.
  • Then go to OctoberCMS release list - https://github.com/octobercms/october/releases and click on the version you need to install which is v1.0.419. Install the zip to the root of xampp/htdocs and extract the folder.
  • Then inside the same folder which extracted, run this composer install.
  • After this, run php artisan october:env .. You can run C:\xampp\php\php.exe artisan october:env if you are having an error php is not recognized as an internal or external command.
  • After php artisan october:env, .env file is created. There you need to modify your database settings like database name, port (put 3306 for localhost etc) by opening this file which will be in same folder.
  • Then run php artisan october:up or C:\xampp\php\php.exe artisan october:up. It will create database tables and your admin user will be created with User: admin, Password: admin (You can change this after logging IN). And backend url will be something like http://example.com/backend.
  • Once its done, you can cut paste all your extracted folder files to root .. like from C:\xampp\htdocs\youproject\version419 to C:\xampp\htdocs\youproject\.

希望这会有所帮助.

这篇关于如何使用PHP版本5.x安装OctoberCMS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆