Skip to content

schach-in/schach.in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website schach.in

schach.in is a website that displays chess clubs, clubs with chess sections, schools with chess societies and kindergartens with chess training on a map of Germany.

Installation

System Requirements

  • PHP: 7.2, 8.0, or newer
    • Enable required Apache modules: sudo a2enmod headers
    • Install required PHP extensions: php-mbstring, php-zip, php-gd, php-curl, php-libxml, php-mysqli, php-exif, php-iconv
  • MySQL: 5.7, 8.0, or newer

Dependencies

The following dependencies are defined in the form of Git submodules. They are installed automatically by calling git clone --recursive [email protected]:schach-in/schach.in.git:

Setup

This instruction sets up a local instance of schach.in which can be accessed via http://schach.in.local/. We expect the schach.in source code to be located in /var/www/schach.in. If you want to change the location, you can simply create a symlink, e.g., via ln -s /your/path /var/www/schach.in. Only make sure it is accessible to the Apache web user, which is typically www-data.

  1. Create a MySQL database and user

  2. Clone repository and submodules

    git clone --recursive [email protected]:schach-in/schach.in.git /var/www/schach.in
  3. Create pwd.json with database credentials

    Create the file /var/www/schach.in/pwd.json with the following content:

    {
        "db_host": "localhost",
        "db_name": "...",
        "db_user": "...",
        "db_pwd": "..."
    }
    
  4. Create new Apache site

    Create the file /etc/apache2/sites-available/schach.in.local.conf with the following content:

    <VirtualHost 127.0.0.1:80>
        ServerName schach.in.local
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/schach.in/www
    
        ErrorLog ${APACHE_LOG_DIR}/schach.in.local_error.log
        CustomLog ${APACHE_LOG_DIR}/schach.in.local_access.log combined
    
        <Directory /var/www/schach.in/>
            AllowOverride All
        </Directory>
    </VirtualHost>
    
  5. Optionally create SSL certificate

    For instance using mkcert. In this case, the port 80 in /etc/apache2/sites-available/schach.in.local.conf has to be changed to 443.

  6. Enable new Apache site

    a2ensite schach.in.local.conf

Support

About

Website schach.in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages