月度存档: 1 月 2018

win2008服务器下xampp配置二级域名

  • 修改http-vhosts.conf

    DocumentRoot "C:\yourfile"
    ServerName www.xxx.site
    ServerAlias xxx.site
  
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  



    DocumentRoot "C:\yourfile2"
    ServerName d2.xxx.site
    ServerAlias d2.xxx.site
  
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  

如何设置editplus保存时不生成bak文件

  • 工具->配置工具
  • 然后在左边的类别中点击’文件’,取消掉“保存时创建备份文件”,这个选项的勾,
    这样每次保存文件的时候就不会再出现bak文件了

修改 php.ini 解决 XAMPP 数据库导入文件大小限制

打开 php.ini 这个配置文件
有三个参数需要被修改,这三个配置参数以及它们的默认值分别是:

upload_max_filesize = 2M
memory_limit = 128M
post_max_size = 8M
它们分别表示的意思已经可以从它们的名字上理解出来了。

根据你要上传导入的数据库文件的实际大小来修改以上设置就可以了,如:

upload_max_filesize = 100M
memory_limit = 1024M
post_max_size = 100M
最后的最后,不要忘记需要重启 Apache 才能生效哟。