Skip to content

cygri/prefix.cc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d51e0a9 · Dec 29, 2021

History

86 Commits
Jun 6, 2019
Aug 13, 2013
Aug 14, 2013
Dec 29, 2021
Dec 30, 2020
Dec 30, 2020
Mar 10, 2016
Aug 14, 2013
Sep 1, 2014
Mar 17, 2016
May 6, 2011
Jun 6, 2019
Mar 17, 2016
Dec 30, 2020
May 6, 2011
Nov 2, 2010
Nov 2, 2010
Jan 26, 2014
Aug 14, 2013

Repository files navigation

prefix.cc Source Code

This is the source code to the prefix.cc web site operated by Richard Cyganiak ([email protected], @cygri).

Requirements

  • Apache with mod_rewrite enabled
  • PHP (recommended version: 7.2)
  • MySQL

Setting up a test site

  1. Clone the repository into a local directory

  2. Set up a virtual host prefixcc.local with that directory as document root

  3. Create a new MySQL database:

     echo CREATE DATABASE prefixcc | mysql -u root 
    
  4. Set up database tables:

     mysql -u root prefixcc < db_schema/schema.sql
    
  5. Make a copy of the default configuration:

     cp default.config.php config.php
    
  6. Edit database credentials in config.php if necessary

  7. Import prefixes from the public prefix.cc site:

     php tools/csv-import.php http://prefix.cc/popular/all.file.csv | mysql -u root prefixcc
    
  8. Go to http://prefixcc.local/ and you should have a functional site!