美文网首页
showdoc 安装配置

showdoc 安装配置

作者: 车到山前必有路2021 | 来源:发表于2022-01-24 09:33 被阅读0次

    showdoc官方文档 https://www.showdoc.com.cn/help/

    1. 安装PHP环境:sudo apt-get install php
    2. 开启PHP扩展:php-sqlite php-gd php-mbstring php-zip php-curl (php.ini中extension=gd2、extension=sqlite3、extension=mbstring 注释去除)
    3. apache2安装与配置
    4. sudo apt-get install apache2 安装完后直接浏览器打开http://localhost 可以看到apache2相关信息。
    5. 设置apache2 web 根目录,默认为/var/www (/etc/apache2/sites-available/000-default.conf)。apache2开启目录访问权限(/etc/apache2/apache2.conf)。
    6. 重启apache2服务(sudo service apache2 restart)
    7. 下载showdoc源码:wget https://gitee.com/star7th/showdoc/repository/archive/master.zip
    8. 将showdoc源码解压并拷贝至设置的web根目录。
    9. 浏览器打开http://localhost 后根据提示进行操作。安装完成后默认管理员账户密码为 showdoc 123456

    报错与解决方法

    <font color=#00FF00 >sudo apt-get install php-zip。安装好后需要重启apache2服务(sudo service apache2 restart)</font>
    <font color=#FF0000 >Class ZipArchive not found 。错误位置:/home/xiaodongdong/showdoc-master/server/Application/Api/Controller/UserController.class.php 86</font>


    <font color=#00FF00 >sudo apt-get install php-curl。安装好后需要重启apache2服务(sudo service apache2 restart)</font>
    <font color=#FF0000 >Call to undefined function Api\Controller\curl_init() 。错误位置:/home/xiaodongdong/showdoc-master/server/Application/Api/Controller/AdminUpdateController.class.php 13</font>


    showdoc默认使用sqlite作为数据库,需要备份的数据库文件为 "Sqlite/showdoc.db.php"。
    也可以在网页中将全部数据导出为markdown或者doc的压缩包。

    相关文章

      网友评论

          本文标题:showdoc 安装配置

          本文链接:https://www.haomeiwen.com/subject/zdqbhrtx.html