qbancoffee / ECDBpersonal

A person edition of the ECDB tool which I have running on a Raspberry Pi -

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECDBpersonal

This is a personal version of ECDB by Pete Willard

A personal edition of the ECDB tool which I have running on a local Raspberry Pi with an attached WD PiDrive. The changes to the original code are related to updating the SQL code to cope with the later versions of MYSQL that deprecated many functions. The user interface changes are related to it being a personal edition and making use of FontAwesome and Jquery components.

This version also allows for uploading of PDF datasheets, PDF Application Notes and Parts Images. These are all stored as files and not in the database. To make working with files that reside in folders, jquery autocomplete has been employed to locate files even when only part of the name is entered, though it remains case sensitive.

Documentation

Currently there is no detailed documentation available.

Installation

  • Download this git.
  • Create a MySQL database.
  • Import ecdb.sql database structure to your MySQL-database.
  • You will need to create a database user ECDB with a PASSWORD and grant all Priv's. Easiest done with PHPmyadmin

mysql -u root -p

CREATE USER 'ecdb'@'%' IDENTIFIED BY 'user_password';

GRANT ALL PRIVILEGES ON ecdb.* TO 'ecdb'@'localhost';

exit

  • Insert your MySQL credential data in the configuration file, include/login/config.php.
  • You are now set to go! The default username is demo and password demo.
  • Use the interface to create your own username and password, as needed.

Requirements

  • Apache2.4.10 or newer Web Server
  • PHP Version 5.6.3 or newer
  • Updated for use with MySQL Version 5.5.57 or newer

This is also known to work wit MariaDB and PHP7 with minor changes.

Including: Using a version of PHPMYADMIN that supports PHP7 (version 5+)

Also, verify permissions and ownership on the /var/www/html directories.

Currently, www-data is the default apache user on ubuntu flavors (like Raspberry Pi OS) so this should be the owner your web files/directory to work properly.

If you need to, you sould chown the whole web root as www-data for both user and group.

So if your document root is /var/www/html, cd or change directory to /var/www and run this to change ownership on all files and directories.

chown -R www-data: html/

while still in the /var/www directory add write permissions to the group for files and directories by running this command.

find html -type f -exec chmod 664 {} + -o -type d -exec chmod 775 {} +

Finally add your local user account to the www-data group.

usermod -a -G www-data $USER

You can also add an FTP user the same way replacing $USER with an actual account name.

License

This is free and unencumbered software released into the public domain.

Note that the original author released as Creative Commons but placed restrictions on public use. This is a release intended for non-public use.

Original License

About

A person edition of the ECDB tool which I have running on a Raspberry Pi -

License:The Unlicense


Languages

Language:PHP 91.5%Language:CSS 8.4%Language:Hack 0.2%