Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Linkstack installation fails on shared hosting & subdomain

Aberta
#934 3 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
laravel, php
Domínio
backend

Direção de pesquisa

Start with line 6 of app/Functions/functions.php, which the issue identifies as a possible source of the path handling, and trace how the assets/linkstack/images/ directory path is formed for a subfolder or subdomain installation. Reproduce the ZIP installation steps on shared hosting if possible; done means the image directory is found at the correct location in both setups.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

LinkStack version

4.8.4

Description

After uploading the ZIP folder to my shared hosting webspace, I encounter the following error:

scandir(/usr/www/users/.../.../p/linkstack//assets/linkstack/images/): Failed to open directory: No such file or directory

I assumed this is because my linkstack instance does not run on the domain "root" but in a subfolder. I tried to work around that issue by creating a subdomain, making the linkstack instance accessible "like a domain root". However, also this did not change the behavior:

Image

It looks like scandir is searching in the wrong directory:

  • Incorrect: /usr/www/users/{webspace_user}/{webspace_name}/p/linkstack//assets/linkstack/images/
  • correct: {subdomain.domain.de}/assets/linkstack/images/

Am I overlooking something?
Thanks for your help in advance!

Best,
Felix

Details about your system

PHP 8.4.11
Laravel 9.52.18

How to reproduce
  1. Download ZIP
  2. Upload to shared hosting in a subfolder
  3. Open subfolder in Browser
  4. Create subdomain + HTTPS for it
  5. Open subdomain in Browser
Possible Solution

I tried setting APP_URL in .env but also this did not help.

I also tried to change line 6 in app/Functions/functions.php to $_SERVER['REQUEST_URI'] or similar, but no success.

Additional Context

No response

Linguagem predominante
PHP
Estrelas
3.9k
Forks
440
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de LinkStackOrg/LinkStack

Todas as issues de LinkStackOrg/LinkStack

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.