简洁、轻量、实用、开源
操作系统:全新系统(支持CentOS、Windows、Ubuntu、Debian、Fedora、Deepin)等
请确保系统是纯净的,未安装任何环境中涉及到的(Apache\Nginx\php\MySQL\FTP)
MuYuCMS内容管理系统是基于Thinkphp5.1开发,PHP版本要求5.6及以上,MySQL版本推荐5.0及以上
系统需要伪静态支持,使用Apache不需要手动设置伪静态,Nginx则需要手动填写伪静态规则,具体查看Nginx伪静态下面选项
内存要求:内存要求最低512MB,推荐768MB以上
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
如果你的应用安装在二级目录,Nginx的伪静态方法设置如下,其中youdomain是所在的目录名称。
location /youdomain/ {
if (!-e $request_filename){
rewrite ^/youdomain/(.*)$ /youdomain/index.php?s=/$1 last;
}
}
如果不小心删除了根目录下的.htaccess,可以手动创建一个文件把下面的规则复制进去即可。
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:
RewriteRule (.*)$ /index\.php\?s=$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:1}" />
</rule>
</rules>
</rewrite>
进入系统后台,点击右上角系统更新或者进入菜单系统管理\系统更新点击立即更新即可