GithubHelp home page GithubHelp logo

dj8jj / aidigu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lty628/aidigu

0.0 0.0 0.0 27.82 MB

爱嘀咕,开源微博项目

Home Page: http://t.aidigu.cn

License: MIT License

JavaScript 7.86% PHP 70.83% CSS 7.22% HTML 11.39% Smarty 1.30% PLpgSQL 1.23% SCSS 0.18%

aidigu's Introduction

aidigu

PHP 7.2+ Latest Stable Version Latest Unstable Version Download Size MIT License

PHP开发的开源微博系统

QQ群:434615423

1.测试地址 http://t.aidigu.cn

2.采用PHP + MySQL开发,框架采用ThinkPHP5.1

3.用户登录后拥有专属ID

4.支持表情、关注用户,网盘分享等功能

5.支持图片上传,视频上传,网盘存储分享

安装方式

1.克隆源码,导入数据库即可

2.复制 example_env 为 .env 并修改.env相关配置

3.网站的运行目录设置为 /public

4.配置Web服务器的伪静态

Nginx伪静态配置(nginx.conf)

location / {
if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php?s=/$1 last;
    break;
      }
}

Apache伪静态配置(.htaccess文件)

<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>

IIS伪静态规则配置(web.config)

<?xml version="1.0" encoding="UTF-8"?>
  <configuration>
    <system.webServer>
      <rewrite>
         <rules>
            <rule name="OrgPage" stopProcessing="true">
               <match url="^(.*)$" ></match>
                  <conditions logicalGrouping="MatchAll">
                     <add input="{HTTP_HOST}" pattern="^(.*)$" ></add>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" ></add>
                   <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" ></add>
                </conditions>
             <action type="Rewrite" url="index.php/{R:1}" ></action>
          </rule>
        </rules>
     </rewrite>
  </system.webServer>
</configuration>

建议的环境:

Linux系统:CentOS7+/Debian9+/Ubuntu20.04+

PHP版本需求:建议PHP7.2+(暂不支持PHP8)

MySQL版本需求:MySQL5.6+

版权信息

本项目遵循 MIT License

aidigu's People

Contributors

lty628 avatar t1anjiu avatar dependabot[bot] avatar cping6 avatar fulongli avatar tomiaa1926 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.