同步操作将从 gouguoyin/phprap 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
PHPRAP,是一个PHP轻量级开源API接口文档管理系统,致力于减少前后端沟通成本,提高团队协作开发效率,打造PHP版的RAP。
版本说明
下载程序到根目录下
[GITEE(推荐)]
git clone https://gitee.com/gouguoyin/phprap.git 'web可访问目录'
[GITHUB]
git clone https://github.com/gouguoyin/phprap.git 'web可访问目录'
[源码]
下载源码,解压后将到phprap目录内所有源码上传到根目录下
设置目录权限
runtime
目录及子目录给予可读可写权限
configs/db.php
文件给予可读可写权限
隐藏入口文件index.php
[IIS]
如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:
RewriteRule (.*)$ /index\.php\?r=$1 [I]
在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?r=/{R:1}" />
</rule>
</rules>
</rewrite>
[Apache]
httpd.conf
配置文件中加载mod_rewrite.so
模块
将AllowOverride None
改为 AllowOverride All
如果是部署在根目录下,在.htaccess
中配置转发规则
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?r=/$1 [QSA,PT,L]
</IfModule>
如果是部署在二级目录下(假设二级目录是sub_dir),在.htaccess
中配置转发规则
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/sub_dir/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /sub_dir/index.php?r=/$1 [QSA,PT,L]
</IfModule>
[Nginx]
如果是部署在根目录下,在Nginx.conf
中配置转发规则
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?r=$1 last;
break;
}
}
如果是部署在二级目录下(假设二级目录是sub_dir),在Nginx.conf中配置转发规则
location /sub_dir/ {
if (!-e $request_filename){
rewrite ^/sub_dir/(.*)$ /sub_dir/index.php?r=$1 last;
}
}
打开浏览器,访问域名,会自动跳转到安装界面运行安装程序
安装步骤一:环境检测
安装步骤二:数据库配置
安装步骤三:管理员配置
安装步骤四:安装完成
注册
登录
修改资料
消息通知
登录历史
项目
新建项目
编辑项目
转让项目
搜索项目
切换项目
项目主页
项目成员
成员权限
项目动态
删除项目
模块
新建模块
编辑模块
删除模块
接口
添加接口
编辑接口
接口主页
删除接口
添加字段
编辑字段
删除字段
后台
管理主页
项目管理
用户管理
登录历史
系统设置
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。