Comments (7)
Do we want to add wiki pages to this repo? Or commit them to the lychee main repo as a PR?
from lychee.
There is currently no documentation at all for this project.
At least provide some details about the steps, how to get it running:
- download or clone the repo
- run 'composer install --no-dev'
- copy .env.example to .env
- run 'php artisan key:generate'
- edit .env and add all necessary settings (which are necessary beside the DB settings?!)
- run 'php artisan migrate'
- run 'php artisan serve'
Point your browser to the running server and enjoy Lychee ;-)
from lychee.
from lychee.
@erdmenchen actually I recommend against the php artisan server
this is just if you don't have a web server, normally you should just point your normal server to /whatever/path/you/chose/Lychee-Laravel/public/
. :)
(which are necessary beside the DB settings?!)
Some settings are related to HSTS
from lychee.
yes, but my described steps are all dev related.
A "normal" user should not have to run these. A simple zip file and an installer (like wordpress) should be the general approach...
from lychee.
Right, this is why the release process on Lychee (classic) requires us to upload the zip file. :)
As for creating an installer... this is a slightly more annoying problem as some of our users do not have ssh access to their server. Thus editing the .env
is a bit more complex...
from lychee.
Base dependencies (debian testing):
apt install libapache2-mod-php7.3
apt install git
apt install php7.3-mysql
apt install php7.3-imagick
apt install php7.3-mbstring
apt install php7.3-json
apt install php7.3-gd
apt install php7.3-xml
apt install php7.3-zip
apt install mariadb-server
apt install composer
access the server.
mysql
create the database and users:
create database lychee;
CREATE USER lychee@localhost IDENTIFIED BY 'password';
GRANT ALL ON *.* TO lychee@localhost WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;
Clone the repo
cd /var/www/html
git clone --recurse-submodules https://github.com/LycheeOrg/Lychee-Laravel.git
Set things up:
cd Lychee-Laravel
cp .env.example .env
# edit .env to match the parameters
# install php libraries.
composer install --no-dev
# generate the key (to make sure that cookies cannot be decrypted etc)
./artisan key:generate
# migrate the database
./artisan migrate
Laravel requires mode rewrite to be enabled:
a2enmod rewrite
add to /etc/apache2/apache2.conf
<Directory /var/www/html/Lychee-Laravel>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
create example.com.conf
in /etc/apache2/site-available/
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html/Lychee-Laravel/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
enable the site:
a2ensite `example.com.conf`
Restart apache2:
systemctl restart apache2
Use your favorite browser and access your Lychee server (e.g. via http://localhost/Lychee-Laravel/public
or example.com
).
from lychee.
Related Issues (20)
- Authorization Token allows action without login HOT 3
- Ability To Add Templated and Also Custom Notes Information Associated With An Image - Print Sizes Available (etc)
- can't load no_images.svg HOT 7
- Directories with '[' symbols cannot be imported
- Cannot upload images HOT 3
- Share Button does not get disabled using share_button_visible 1/0
- Image selecting does not work on chrome + MacOS HOT 3
- HTTP Exception 500: "CC-BY" is not a valid backing value for enum App\Enum\LicenseType (View: /var/www/html/Lychee/resources/views/livewire/pages/gallery/album.blade.php) HOT 1
- Missing tools on desktop browser
- Overflow in the details panel HOT 1
- [5.2.0] Maps on image detail is not updated when switching left right.
- #2392 recurring in Lychee 5.2.2 ("CC-BY-SA" is not a valid backing value for enum) HOT 1
- If you can read me, it means that you misconfigured Lychee. HOT 6
- Inverted date on album tiles with multiple months HOT 1
- [5.3.0] Clean installation without error but image is not showing... again HOT 1
- `additional_footer_text` not displayed
- Can not move photos into album containing apostrophe in title
- File-Suffixes duplicated in Downloaded Album HOT 2
- Sharing - Select all users HOT 1
- Could not Upload Photos HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lychee.