惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - Fintech技术汇

conda环境导出/导入 Element UI - el-tree组件显示横向滚动条 linux-断开SSH终端连接后,保持程序依然运行 linux命令 GO单元测试-工具 开源协议 JKS证书转换 githubusercontent和github加速镜像 Ubuntu下解决Git保存用户名和密码的方法 MySql操作 NPM设置和恢复淘宝镜像 Spring Boot实现热部署 Docker命令 MySql忘记密码后重置 IntelliJ IDEA 推荐设置讲解 Spring Boot VS Spring Cloud 分布式RPC框架ZeroC Ice简介 Visual Studio中,你应该知道的几个Immediate Window小技巧 如何调试没有源码的.Net程序 从msi解压文件
Moodle环境搭建
Fintech技术汇 · 2023-11-25 · via 博客园 - Fintech技术汇

Environment (Windows OS)

Apache and PHP8 installation reference

PHP Installation

reference:

  1. download PHP 8.0.3 https://windows.php.net/downloads/releases/php-8.0.30-Win32-vs16-x64.zip
  2. unzip to a folder, e.g. D:\Tool\PHPEnv\php-8.0.30
  3. copy php.ini-development and name the file as php.ini
  4. edit php.ini: change ;extension_dir = "ext" to extension_dir = "D:\Tool\PHPEnv\php-8.0.30\ext"

Apache Installation

  1. download binary from https://www.apachelounge.com/download/VS17/binaries/httpd-2.4.57-win64-VS17.zip
  2. unzip to a folder e.g. D:\Tool\PHPEnv\Apache24
  3. copy "D:\Tool\PHPEnv\php-8.0.30\libsodium.dll" to "D:\Tool\PHPEnv\Apache24\bin\libsodium.dll"
  4. edit config file: D:\Tool\PHPEnv\Apache24\conf\httpd.conf
  • change Define SRVROOT "c:/Apache24" to Define SRVROOT "D:/Tool/PHPEnv/Apache24"
  • (optional) uncomment #ServerName www.example.com:80 and change www.example.com to localhost
  • add below content under line: #LoadModule xml2enc_module modules/mod_xml2enc.so
#加载PHP
LoadModule php_module 'D:\Tool\PHPEnv\php-8.0.30\php8apache2_4.dll'

#将PHP配置文件加载到Apache配置文件中,共同生效
PHPIniDir 'D:\Tool\PHPEnv\php-8.0.30'

#配置Apache分配工作给PHP模块,把PHP代码交给PHP处理
#即.php后缀名的文件
AddType application/x-httpd-php .php

  • add below in the end of file httpd.conf
<IfModule mpm_winnt_module>
 ThreadStackSize 8888888
</IfModule>
  1. open command line and go to D:\Tool\PHPEnv\Apache24\bin folder
  2. run httpd.exe and open http://localhost in browser, it works fine if you can see "It works!" in browser

PHP and Apache integration test

  1. go to folder D:\Tool\PHPEnv\Apache24\htdocs
  2. create a file named test.php and copy below content to this file
<?php
	//test
	echo 'Hello php!';
?>
  1. run httpd in cmd
  2. open url in browser: http://localhost/test.php and verify if "Hello php!" is shown.

MySql Installation

download URL: https://dev.mysql.com/downloads/mysql/

reference: https://blog.csdn.net/weixin_43423484/article/details/124408565

https://zhuanlan.zhihu.com/p/420917888#:~:text=在 Windows 上配置免安装版 MySQL 8.0 1 1 下载并安装,my.ini 在 D%3A%2Fmysql%2F 内新建文本文件 my.ini,在其中写入以下内容: ... More items

  1. create database named moodle after installation

Moodle

  1. version 4.2.2
  2. Branch: MOODLE_402_STABLE
  3. go to folder D:\Tool\PHPEnv\Apache24\htdocs and put moodle code in this folder
  4. run httpd and open http://localhost/hackathon_2023/install.php in browser
  5. configure moodle in the opened guide