Coder Social home page Coder Social logo

activedns's Introduction

Disclaimer

The code is presented in а demonstration purposes. I can't guarantee it's even work, or work correctly, or free of any security vulnerabilities. Use it or run it on your own risk.

What is it?

image

It's a 99% copy of commercial service ActiveDNS.net, running from 2011 until 2017. It might be still operational, but a bit outdated.

How to get up and running

Easy way with Docker

Assume that git and docker is already installed on your computer. Be sure that no one is using your local port 8080.

Type in your command line:

git clone https://github.com/evc54/activedns.git app
cd app
docker-compose up

Building docker containers may take a while. After it finish and start-up script will do the job, it says like Migrated up successfully that's means the database is ready to go.

Open http://localhost:8000/ in your browser and log in as [email protected] with password 123456. Or sign up for new account.

Hard way with Bash

Get a web server with PHP v5.6 module installed (apache or nginx + php-fpm) and MySQL or MariaDB.

Additionally you must install git and PHP composer.

Clone the app with git into your web directory:

git clone https://github.com/evc54/activedns.git /var/www

Make public/assets and protected directories to be writable by the web server process user.

Note, that app's web root is inside public directory. Go to nginx sites configuration directory and create (or update) site config:

server {
  server_name _;
  listen 80 default_server;
  root /var/www/public;

  location / {
    index index.php;
    try_files $uri $uri/ /index.php?$args;
  }

  location ~ \.php$ {
    fastcgi_pass unix:/run/php/php5.6-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;
  }

Create database and configure access to it in file /var/www/protected/config/db.local.php. Required to set <hostname>, <database>, <username> and <password>.

  'connectionString'      => 'mysql:host=<hostname>;dbname=<database>',
  'username'              => '<username>',
  'password'              => '<password>',
  'charset'               => 'utf8',
  'tablePrefix'           => 'ad',
  'schemaCachingDuration' => 3600,

Next, install libraries with PHP composer:

cd /var/www
composer install

After composer's job done, process database migrations in the same directory:

php console.php migrate --interactive=0

If everything went well, your new site is ready to serve requests.

Bad news

I completely lost my NSD config file, so if you really planned to use this app, you have to write it by your own.

activedns's People

Contributors

evc54 avatar

Watchers

 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.