Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md with installation instructions #18

Closed
dansup opened this issue May 26, 2018 · 6 comments
Closed

Update README.md with installation instructions #18

dansup opened this issue May 26, 2018 · 6 comments
Assignees
Labels
❗❗ Priority: High Important 💼 WIP This is currently being worked on
Milestone

Comments

@dansup
Copy link
Member

dansup commented May 26, 2018

No description provided.

@dansup dansup added docs ❗❗ Priority: High Important 💼 WIP This is currently being worked on labels May 26, 2018
@dansup dansup self-assigned this May 26, 2018
@dansup dansup added this to the 0.1.0 milestone May 27, 2018
@MrPetovan
Copy link

MrPetovan commented Jun 1, 2018

If it can help you refine installation instructions, I did

bash> git clone ...
bash> composer install --no-dev
bash> chmod a+x artisan
mysql> CREATE NEW DATABASE pixelfed CHARACTER SET utf8mb4;
mysql> GRANT ALL ON pixelfed.* TO 'pixelfed'@'localhost' IDENTIFIED BY '...';
bash> nano config/database.php
bash> ./artisan migrate:fresh

and I got

SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes. (SQL: alter table `users` add unique `users_username_unique`(`username`))

Additional information:

bash> mysqld --version
mysqld  Ver 10.1.26-MariaDB-0+deb9u1 for debian-linux-gnu on x86_64 (Debian 9.1)

my.cnf:

innodb_large_prefix   = 1
innodb_file_format    = BARRACUDA
innodb_file_per_table = 1

@kpcyrd
Copy link
Contributor

kpcyrd commented Jun 1, 2018

@MrPetovan you might want to file this as a separate issue

@MrPetovan
Copy link

There are quite a number of open issues already, I didn't want to pile on, but sure.

@MrPetovan
Copy link

MrPetovan commented Jun 2, 2018

Crude installation instructions for Debian 9/Apache/MariaDB:

  1. shell> apt install jpegoptim
  2. shell> git clone https://github.com/dansup/pixelfed /path/to/pixelfed
  3. shell> cd /path/to/pixelfed
  4. shell> composer install --no-dev (Composer install)
  5. mysql> CREATE NEW DATABASE pixelfed CHARACTER SET utf8mb4;
    mysql> GRANT ALL ON pixelfed.* TO 'pixelfed'@'localhost' IDENTIFIED BY '...';
  6. shell> cp .env.example .env
  7. shell> php artisan key:generate
  8. shell> php artisan storage:link (#141)
  9. shell> nano .env (edit database settings, hostname, etc...)
  10. Enable this hack: Support MariaDB #132 (comment)
  11. shell> php artisan migrate:fresh
  12. Set the DocumentRoot in your Apache vhost to /path/to/pixelfed/public
  13. Voila! 🎉

@MrPetovan
Copy link

Is there any cronjob to install I should know about?

@MrPetovan
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗❗ Priority: High Important 💼 WIP This is currently being worked on
Projects
None yet
Development

No branches or pull requests

3 participants