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

推荐订阅源

GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
The Last Watchdog
The Last Watchdog
A
Arctic Wolf
S
Schneier on Security
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
Spread Privacy
Spread Privacy
The Hacker News
The Hacker News
P
Proofpoint News Feed
Attack and Defense Labs
Attack and Defense Labs
NISL@THU
NISL@THU
AWS News Blog
AWS News Blog
Schneier on Security
Schneier on Security
TaoSecurity Blog
TaoSecurity Blog
H
Hacker News: Front Page
L
LangChain Blog
Y
Y Combinator Blog
T
Tenable Blog
Microsoft Security Blog
Microsoft Security Blog
L
Lohrmann on Cybersecurity
量子位
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
W
WeLiveSecurity
Martin Fowler
Martin Fowler
Cloudbric
Cloudbric
S
SegmentFault 最新的问题
Project Zero
Project Zero
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - 叶小钗
V
Vulnerabilities – Threatpost
小众软件
小众软件
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
腾讯CDC
博客园 - 聂微东
F
Full Disclosure
WordPress大学
WordPress大学
PCI Perspectives
PCI Perspectives
P
Privacy International News Feed
M
MIT News - Artificial intelligence
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs
Last Week in AI
Last Week in AI

博客园 - 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%20%E5%9C%A8%20D%3A%2Fmysql%2F%20%E5%86%85%E6%96%B0%E5%BB%BA%E6%96%87%E6%9C%AC%E6%96%87%E4%BB%B6%20my.ini%EF%BC%8C%E5%9C%A8%E5%85%B6%E4%B8%AD%E5%86%99%E5%85%A5%E4%BB%A5%E4%B8%8B%E5%86%85%E5%AE%B9%EF%BC%9A%20...%20More%20items

  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