本源码时开源版本,
安装方法:
1、上传源码到网站根目录解压出来
2、修改数据配置文件的数据库信息为你自己的数据库信息、/common
/config.php数据库配置。
3、导入数据库文件 压缩包、数据库文件夹 185849.sql
4.解压YZMCMS重置密码工具 修改密码。然后登录
管理后台地址:“你的网址/admin”,如果显示404,请参考以下伪静态配置!
Apache伪静态
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]</IfModule>
Nginx伪静态:
location / { #//...省略部分代码 if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }
如果你的应用安装在二级目录,Nginx的伪静态方法设置如下,其中youdomain是所在的目录名称。
location /youdomain/ { if (!-e $request_filename){ rewrite ^/youdomain/(.*)$ /youdomain/index.php?s=$1 last; } }
举个栗子:
如果你用的是本机电脑上的phpstudy环境的话,在根目录下新建伪静态文件( nginx.htaccess ):
location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }
IIS伪静态:
如果你的服务器环境支持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?s={R:1}" /> </rule> </rules> </rewrite>
其他注意事项:
一、首次登录后台后:请点击:内容管理->批量更新URL->更新栏目URL和更新内容URL!
二、如果系统安装成功后,打开首页任然显示“欢迎安装”页面,请强制刷新浏览器缓存!
首页模板