AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1737590
Accepted
Dennis
Dennis
Asked: 2022-08-18 14:45:12 +0800 CST2022-08-18 14:45:12 +0800 CST 2022-08-18 14:45:12 +0800 CST

如何在便携式 Apache 上设置 GRAV(一个 PHP 应用程序)?

  • 772

我正在为使用普通 Markdown 文件的 Windows 10 计算机尝试一些个人 Wiki 系统,并遇到了GRAV。这是一个使用提取和删除设置的开源 CMS,大多数具有 PHP 7 的 Web 服务器都可以运行。

因为我之前尝试过 DokuWiki,所以我已经获得了MicroApache,并且认为我只需要在那里提取 GRAV-zip。但它不会启动,也许我需要一个干净的 MicroApache 下载和配置?

C:.
+---grav
\---server
    +---conf
    +---logs
    +---modules
    \---php
        \---ext

我.\server\conf\httpd.conf编辑改用 GRAV 文件夹。

# absolute minimum configuration for DokuWiki on a Stick
# change the Listen directive if you want to use a different port

Listen 8800
ServerName microapache
ServerRoot .
DocumentRoot ./../grav
ServerAdmin [email protected]

但是我在启动 MicroApache 时得到的只是一个损坏的网页......

cd server
start "Apache server" /B mapache.exe
start http://localhost:8800/
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete 
your request.

Please contact the server administrator at [email protected] to inform them of the 
time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

并且没有服务器可以停止

ApacheKill.exe

■ Killing all matching processes
■ Searching for processes matching "mapache.exe"
Error: A process with that name does not appear to be running

由于 GRAV 的大部分故障排除都是针对 Linux 的,因此我无法在我的 Windows 设置中遵循这些指南。

windows apache-http-server
  • 1 1 个回答
  • 30 Views

1 个回答

  • Voted
  1. Best Answer
    Dennis
    2022-08-19T09:10:59+08:002022-08-19T09:10:59+08:00

    正如我所怀疑的那样,DokuWikiStick 的分发被剥离得太严重而无法正常工作。

    我从https://www.apachelounge.com/download/VC15/下载了干净的 Apache 2.4.54 版本,从https://windows.php.net/download/下载了PHP8 Thread Safe(根据 Apache for Windows 的要求)

    .
    +---Apache24
    +---grav
    \---php8
    

    在 PHP 中,我重命名php.ini-development为php.ini.

    然后我调整 Apachehttpd.conf以使用相对路径,使用 PHP8 并使用 GRAV 启动。

    Define SRVROOT "."
    
    ServerName apache
    
    AddHandler application/x-httpd-php .php
    AddType application/x-httpd-php .php .html
    LoadModule php_module "./../php8/php8apache2_4.dll"
    PHPiniDir "./../php8"
    
    DocumentRoot "${SRVROOT}/../grav"
    <Directory "${SRVROOT}/../grav">
    
    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>
    

    然后我可以使用我的网络浏览器访问 GRAV PHP 应用程序,它会告诉我我缺少哪些额外的配置和设置。

    • 0

相关问题

  • 如何在 Windows Precision 触摸板上禁用鼠标加速?

  • 批量重命名图像文件集

  • Python 的“pass”参数的批处理等价物是什么?

  • 在 Windows 上与 Docker 守护进程通信

  • 资源管理器侧面板中的桌面外壳快捷方式

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve