rollerozxa / wikiozxa

Minimal Wiki software in PHP, forked off principia-web-wiki.
1 stars 0 forks source link

How to install? #1

Open LandonAndEmma opened 1 year ago

LandonAndEmma commented 1 year ago

When I put the files on the website it just says "Please read the installing instructions in the README file." But there is no README file included.

rollerozxa commented 1 year ago

That message is just part of my PHP boilerplate, unfortunately there is no README file in this repo currently. But the instructions to install this are fairly standard for a PHP software.

  1. Get some sort of LAMP/LEMP environment set up
  2. Import the database dump in the sql folder.
  3. Copy the conf/config.sample.php file to conf/config.php and fill in your database credentials.
  4. Run composer update with Composer to download dependencies.
  5. Compile the SCSS stylesheets assets/scss/ into assets/css/ (see tools/compile-scss-{dartsass,sassc}).

You also need to rewrite URLs going to /wiki/ to /index.php. See it as a router script. This is how I would do it in nginx:

location /wiki {
    rewrite ^/wiki/(?<pagename>.*)$ /?page=$1 last;
}

Word of warning however when going with Wikiozxa is that it's rather bare bones and technical.