Skip to content

jacolack/photo-server

Repository files navigation

L.A.M.P. Photo Server

Installation:

  1. Get Linux. I used Raspbian.

  2. Get Apache.

  3. Get MySQL.

  4. Get PHP.

  5. Now, create a mysql database called images.

  6. Then create two tables in your mysql database:

create table photos(
    id MEDIUMINT NOT NULL AUTO_INCREMENT,
    tags VARCHAR(1100) NOT NULL,
    parent MEDIUMINT NOT NULL,
    fileType CHAR(32) NOT NULL,
    uploaded DATETIME NOT NULL,
    PRIMARY KEY ( id )
);

create table folders(
    id MEDIUMINT NOT NULL AUTO_INCREMENT,
    name CHAR(32) NOT NULL,
    parent MEDIUMINT NOT NULL,
    created DATETIME NOT NULL,
    PRIMARY KEY ( id )
);
  1. In your Apache root public folder, clone this repository.
  2. Add a directory called images.
  3. Copy assets/EXAMPLE_hidden.php to assets/hidden.php and add your credentials.

That's it! If you like what I made, say thank you by buying me a coffee!

Coffee

About

L.A.M.P. photo-server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published