Giter Site home page Giter Site logo

phpip-v2's Introduction

A port of phpIP from Zend Framework 1 to Laravel is ongoing here.

The back-end for operating v2 is identical to that for v1 (Apache, PHP, MySQL, and a virtual host setup pointing to the public sub-folder...). See the v1 instructions.

To get going

  • Clone the phpip-v2 Git repository to a folder, say phpip-v2.
  • Install composer, then run composer update in the phpip-v2 folder.
  • Create an .env file with your database credentials (copy and tailor the provided .env.example file).
  • Run php artisan key:generate; php artisan config:clear (a command-line php is required).

Start a new database

  • Run php artisan migrate --seed This creates a blank database with basic configuration. You're ready to go with the credentials phpipuser/changeme.

  • For adding sample data, run php artisan db:seed --class=SampleSeeder.

Migrate an existing v1 installation.

  • Copy the phpip MySQL schema to a new one (say phpipv2).
  • Upgrade the phpipv2 schema with the script provided in /doc/scripts.

Then you need to update the password field of your users. Logins are based on the login and password fields in the actor table only (they are no loger replicated in the MySQL users table). Authorizations will be implemented through the default_role field of the users - set this field to "DBA" to get full permissions in the future.

The passwords are hashed with bcrypt instead of md5, and don't use a user-provided salt. So you need to change all the md5+salt passwords of v1 to bcrypt ones. You can use the password reset functionality of the UI or change the password hashes manually in the actor table with a bcrypt hash. You can generate a bcrypt hash using the command php -r 'echo password_hash("your password",PASSWORD_BCRYPT) . "\n";'.

To fire a quick test, run php artisan serve, and point your browser to http://localhost:8000.

phpip-v2's People

Contributors

jjdejong avatar

Watchers

James Cloos avatar vik 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.