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

Manual install: ablility to install Linkace in a subdirectory #264

Open
Ailothaen opened this issue Apr 18, 2021 · 4 comments
Open

Manual install: ablility to install Linkace in a subdirectory #264

Ailothaen opened this issue Apr 18, 2021 · 4 comments
Labels
Enhancement Any requests for improvements or new features

Comments

@Ailothaen
Copy link

Is your feature request related to a problem? Please describe.
As now, it seems Linkace can only be installed at the root of a website: it is not really possible to install it in a subdirectory (example.com/linkace for example), because some elements, such as the CSS, are expected to load from the root:

20210418-210816-001968

Describe the solution you'd like
A variable to set prior to install process, for example in the .env file, to specify the base path for the app

Describe alternatives you've considered
Not really relevant. This would be a secondary feature, but still useful for those who do not have a lot of power over their environment (or just do not want to create a whole subdomain for Linkace)

@Ailothaen Ailothaen added the Enhancement Any requests for improvements or new features label Apr 18, 2021
@Kovah
Copy link
Owner

Kovah commented Apr 18, 2021

If you are using Apache, could you please check this article https://mark.biek.org/blog/2018/01/running-laravel-5-in-a-subdirectory/

@Ailothaen
Copy link
Author

I am using Apache indeed. I applied what is being said in the article, and in the meantime fixed something on my side that was preventing .htaccess to be read...

Here is what is happening now:

  • If I do not put the RewriteBase directive, the site goes in an error 500 (the reason being the same than the one in the article)
  • If I put the correct RewriteBase directive, the installer loads successfully; however, this does not solve the issue about the CSS.

Here is more detail:

20210418-232932-001969
20210418-232941-001970

(By the way, is there any way to contribute on the documentation? Since I run into several issues while installing, I feel like it would be good if I could mention them somewhere on the install documentation)

@Kovah
Copy link
Owner

Kovah commented Apr 19, 2021

I will have a look but the issue has a low priority for me. Running apps in sub directories has led to countless issues in the past.

The documentation can be found here: https://github.com/Kovah/LinkAce-Website

@piegamesde
Copy link

I'm trying to get LinkAce to work in a subdirectory too, but using Nginx. Please don't drop support for this feature, even if it may be somewhat niche. You are already using a framework that supports this so LinkAce should not really have to deal with any of this anyways …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Any requests for improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants