-
Notifications
You must be signed in to change notification settings - Fork 17
Home
A port of phpIP from Zend Framework 1 to Laravel is ongoing here.
To use it, you need to apply the database update script in /doc/scripts
to an existing phpip
schema (the original or a copy - the changes are minor).
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 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";'
.
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.
- Start from an existing v1 installation.
- Copy the
phpip
MySQL schema to a new one (sayphpipv2
). - Clone the
phpip-v2
Git repository to a folder, sayphpip-v2
. - Install composer, then run
composer update
in thephpip-v2
folder. - Upgrade the
phpipv2
schema with the script provided in/doc/scripts
. - 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).
To fire a quick test, run php artisan serve
, and point your browser to http://localhost:8000.