Home > Backend Development > PHP Tutorial > Flarum installation

Flarum installation

WBOY
Release: 2016-07-30 13:30:12
Original
2192 people have browsed it

System requirements

  • Server: Apache (need to support mod_rewrite), Nginx
  • PHP 5.5+
  • MySQL 5.5+
  • Online installation
  • Download the installation package, unzip, upload the file to the server
  • Access the domain name root Directory
  • Fill in the URL information: such as website name, administrator information, database information, click the "Install Flarum" button
  • Command line installation
  • Download the installation package, unzip it, upload the file to the server
  • Enter the root directory and run php flarum/flarum install.
  • Fill in the URL information: such as website name, administrator information, database information
  • URL rewritingBefore installing and running Flarum, you need to set URL rewriting rules. Flarum comes with an Apache .htaccess file, which contains the rules that need to be used. If you are using another web server, you need to add the following rules in the configuration file: Nginx
    <codecourier new monospace font-size: border-radius: border: none background-color: transparent>location / {
        try_files <span>$uri</span><span>$uri</span>/ /index.php?<span>$query_string</span>;
    }
    
    location /api {
        try_files <span>$uri</span><span>$uri</span>/ /api.php?<span>$query_string</span>;
    }
    
    location /admin {
        try_files <span>$uri</span><span>$uri</span>/ /admin.php?<span>$query_string</span>;
    }
    
    location /flarum {
        deny all;
        <span>return</span><span>404</span>;
    }
    
    location ~ .php$ {
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        fastcgi_pass unix:/<span>var</span>/run/php5-fpm.sock;
        fastcgi_index index.php;
        <span>include</span> fastcgi_params;
    }</codecourier>
    Copy after login
    SMTPThere is currently no graphical interface for configuring SMTP (#258), but you can manually modify the database configTable:
    <codecourier new monospace font-size: border-radius: border: none background-color: transparent>mail_driver: smtp
    mail_host: <span>...</span>mail_port: <span>...</span>mail_username: <span>...</span>mail_password: <span>...</span>mail_encryption: <span>...</span></codecourier>
    Copy after login
    Import dataEventually we hope to import data from other forums into Flarum, so that you can migrate to Flarum software with confidence. However, it's still early at this stage and we need to release a stable version first! Article source: Flarum Chinese Developer Community

    The above has introduced the installation of Flarum, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template