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

Want To Install In Sub Directory 📁 #139

Closed
GaneshKandu opened this issue Jun 8, 2017 · 15 comments · Fixed by #2115, #2298 or #2373
Closed

Want To Install In Sub Directory 📁 #139

GaneshKandu opened this issue Jun 8, 2017 · 15 comments · Fixed by #2115, #2298 or #2373
Labels
packaging Packaging Monica

Comments

@GaneshKandu
Copy link

GaneshKandu commented Jun 8, 2017

I Want to install Monica in SubDirectory

Hi,
I Want to install Monica in SubDirectory ie. https://localhost/monica/ instead of https://localhost/
i tried but getting 404 error of assets

i am trying to install public folder in sub directory of web root

  • private
    • CHANGELOG
    • CONTRIBUTING.md
    • LICENSE
    • Procfile
    • app
    • artisan
    • bootstrap
    • bower.json
    • composer.json
    • composer.lock
    • config
    • database
    • .........
  • htdocs
    • subdir
      • build
      • css
      • favicon.ico
      • fonts
      • img
      • index.php
      • js
      • robots.txt
      • web.config
      • storage

please mention version also it helps to keep up to date

@virtadpt
Copy link

I am trying to do the same thing. I can't log in, either - trying to log into https://server/monica/server.php tries to redirect me to /login instead of /monica/login, which gets me a 404.

@BranTurner
Copy link

BranTurner commented Jun 11, 2017

This is because none of the URLs change when the APP_URL is changed. This would require an update of all links to use asset or url helper functions, or named routes.

If I have time today I might submit a pull request with updated links!

@somas95
Copy link

somas95 commented Jun 11, 2017

I suggest as workaround to use virtual hosts

@peperunas
Copy link

Yep @BranTurner that would be great.

@BranTurner
Copy link

@peperunas I'll try to get around to it at some point. I have a few appointments today, but may have some time when I get back!

@peperunas
Copy link

@BranTurner, that's great to hear. Kudos to you!

@adriangibbons
Copy link

Hi - same issue for me...

I can't use https://domain.com/monica/server.php though perhaps I am doing something wrong? I'm assuming I should go for server.php as otherwise I just get a directory listing...

Have set APP_URL=https://domain.com/monica/ in .env

@BranTurner
Copy link

BranTurner commented Jun 18, 2017

@adriangibbons You should serve the index.php file in the public directory as the access point to Laravel applications. I don't believe that Monica will support subdirectories at present, so this is something that needs to be fixed - I aim to get around to it at some point!

@GaneshKandu
Copy link
Author

need to change all *.blade.php all file of resources/views

<img class="logo" src="/img/small-logo.png" alt="">

to

<img class="logo" src="{{ url(/img/small-logo.png) }}" alt="">

and

<form class="" action="/login" method="post">

to

<form class="" action="{{ url(/login) }}" method="post">

somewhat worked but still getting error

@djaiss djaiss added the packaging Packaging Monica label Dec 14, 2017
@dosch
Copy link

dosch commented Jun 11, 2018

just installed monica on my yunohost in the root. If this get's fixed, will I be able to move the installation to a subdirectory? Or will I have to reinstall?

@GaneshKandu
Copy link
Author

@BranTurner Any Update ?

@asbiin
Copy link
Member

asbiin commented Jan 30, 2019

@GaneshKandu after some test, I confirm to you it's working well!

@GaneshKandu
Copy link
Author

Thanks @asbiin !

working now but Getting Error wile exporting sql
installed with table prefix
Base table or view not found: 1146 Table 'premc_premc_information_schema.tables' doesn't exist

runofthemill added a commit to runofthemill/monica_ynh that referenced this issue Feb 4, 2019
The upstream issue (monicahq/monica#139) preventing installation into subdirectories was just fixed, so now the manifest should allow setting the path for the install.
@ghost
Copy link

ghost commented Mar 17, 2019

Any updates? Highly desired feature.

@github-actions
Copy link

This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
packaging Packaging Monica
Projects
None yet
9 participants