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

installing hoosk on subfolder #21

Closed
srok opened this Issue Feb 7, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@srok

srok commented Feb 7, 2017

I'm trying to install hoosk on a subfolder in my site www.example.com/subfolder but links on the admin menu point to www.example.com/admin. Is there a configuration to fix this?

@danielteixeirati

This comment has been minimized.

Show comment
Hide comment
@danielteixeirati

danielteixeirati Feb 7, 2017

@srok, Hoosk must be installed in the web root, it will not function from a sub directory

danielteixeirati commented Feb 7, 2017

@srok, Hoosk must be installed in the web root, it will not function from a sub directory

@srok

This comment has been minimized.

Show comment
Hide comment
@srok

srok Feb 7, 2017

If I add <?php echo BASE_URL; ?> to all the broken links and form actions do you think it might work?

srok commented Feb 7, 2017

If I add <?php echo BASE_URL; ?> to all the broken links and form actions do you think it might work?

@danielteixeirati

This comment has been minimized.

Show comment
Hide comment
@danielteixeirati

danielteixeirati Feb 7, 2017

You can install on subdomain, I think this alternative is most appropriate.

danielteixeirati commented Feb 7, 2017

You can install on subdomain, I think this alternative is most appropriate.

@havok89

This comment has been minimized.

Show comment
Hide comment
@havok89

havok89 Feb 7, 2017

Owner

Installing on a subdomain is the best way.

It is possible with a workaround to get CodeIgniter to work in a sub directory, but there is an issue with links in the admin header file which need sorted for this to work. I did forget about this issue in the last update but will sort for the next one

Owner

havok89 commented Feb 7, 2017

Installing on a subdomain is the best way.

It is possible with a workaround to get CodeIgniter to work in a sub directory, but there is an issue with links in the admin header file which need sorted for this to work. I did forget about this issue in the last update but will sort for the next one

@srok

This comment has been minimized.

Show comment
Hide comment
@srok

srok Feb 7, 2017

I fix every issue changing every link on js and php.
Now everything is working.
For some specific proccess where $_SERVER['DOCUMENT_ROOT'] where used I change it to:
$_SERVER['DOCUMENT_ROOT'].SUBFOLDER a Constant that was added to config.php
Also in javascript a global variable with BASE_URL in it comes handy for files uploads.

If you like I can send you my code. I did it all today with the last source from the repo.

srok commented Feb 7, 2017

I fix every issue changing every link on js and php.
Now everything is working.
For some specific proccess where $_SERVER['DOCUMENT_ROOT'] where used I change it to:
$_SERVER['DOCUMENT_ROOT'].SUBFOLDER a Constant that was added to config.php
Also in javascript a global variable with BASE_URL in it comes handy for files uploads.

If you like I can send you my code. I did it all today with the last source from the repo.

@havok89 havok89 closed this Mar 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment