Code Monkey home page Code Monkey logo

Comments (14)

sergix44 avatar sergix44 commented on May 18, 2024

Have you enabled the mod_rewrite on the apache server?
It's installed in the subdirectory /xbackbone/ ?

from xbackbone.

OdinGitDat avatar OdinGitDat commented on May 18, 2024

Yes I had, the redirection worked only after I added this to the apache conf

<Directory /var/www/xbackbone/>
	Options Indexes FollowSymLinks MultiViews
	AllowOverride All
	Order allow,deny
	allow from all
</Directory>

But now I'm seeing this page on /xbackbone/home

/xbackbone/home

from xbackbone.

sergix44 avatar sergix44 commented on May 18, 2024

Please check that htaccess file and mod rewrite is actually enabled on your system, and file permissions are set correctly.

from xbackbone.

OdinGitDat avatar OdinGitDat commented on May 18, 2024

a2enmod rewrite returns Module rewrite already enabled and I have set chmod -R 777 /var/www/xbackbone. Still get the same result.

I don't know what else I can do.

from xbackbone.

sergix44 avatar sergix44 commented on May 18, 2024

Check that the base url in the config its correct, and also check the file .htaccess is loaded by apache.

from xbackbone.

OdinGitDat avatar OdinGitDat commented on May 18, 2024

I have verified both the htaccess and config file and it does not change anything. Is there anything else xbackbone relies on?

If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.

from xbackbone.

JonathanJhon55 avatar JonathanJhon55 commented on May 18, 2024

I am also facing the same issue. Tried everything you said @sergix44 the issue still persists

from xbackbone.

sergix44 avatar sergix44 commented on May 18, 2024

I am also facing the same issue. Tried everything you said @sergix44 the issue still persists

If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.

Can you post the Apache error.log?

If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.

All the css/js assets are in the default /static folder, please check that this folder is readable and accessible by the web server.

from xbackbone.

JonathanJhon55 avatar JonathanJhon55 commented on May 18, 2024

I am also facing the same issue. Tried everything you said @sergix44 the issue still persists

If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.

Can you post the Apache error.log?

If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.

All the css/js assets are in the default /static folder, please check that this folder is readable and accessible by the web server.

[Fri Mar 29 17:02:31.792912 2019] [mpm_event:notice] [pid 13784:tid 139815335839616] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:02:31.793095 2019] [core:notice] [pid 13784:tid 139815335839616] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:04:40.191434 2019] [mpm_event:notice] [pid 13784:tid 139815335839616] AH00491: caught SIGTERM, shutting down
[Fri Mar 29 17:04:41.347655 2019] [mpm_prefork:notice] [pid 22167] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:04:41.348655 2019] [core:notice] [pid 22167] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:04:42.934295 2019] [mpm_prefork:notice] [pid 22167] AH00169: caught SIGTERM, shutting down
[Fri Mar 29 17:04:43.151105 2019] [mpm_prefork:notice] [pid 22269] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:04:43.151205 2019] [core:notice] [pid 22269] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:06:50.575698 2019] [mpm_prefork:notice] [pid 22269] AH00169: caught SIGTERM, shutting down
[Fri Mar 29 17:06:51.776099 2019] [mpm_prefork:notice] [pid 27048] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:06:51.776205 2019] [core:notice] [pid 27048] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:09:44.549249 2019] [mpm_prefork:notice] [pid 27048] AH00169: caught SIGTERM, shutting down
[Fri Mar 29 17:09:45.773598 2019] [mpm_prefork:notice] [pid 27181] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:09:45.773699 2019] [core:notice] [pid 27181] AH00094: Command line: '/usr/sbin/apache2'

These are my logs when I go onto the URL, however when I remove /home (which it automatically goes to) and I do /index.php I get the login page

from xbackbone.

OdinGitDat avatar OdinGitDat commented on May 18, 2024

I found the problem on my side. I checked the apache error log, there were no xbackbone related errors. But when I checked the access.log I noticed that all the assets were returning a 404 because it's looking in the wrong folder. Below is a redacted log (xxx.xxx is my domain).

[29/Mar/2019:17:44:25 +0100] "GET /xbackbone/ HTTP/1.1" 302 3297 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /xbackbone/home HTTP/1.1" 200 1990 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 404 457 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /static/jquery/jquery.min.js HTTP/1.1" 404 446 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"

As you can see the home folder is correctly GET from /xbackbone/home. But the static folder is GET from /static/ instead of /xbackbone/static!

So when I change the base url in the config to https://xxx.xxx/xbackbone instead of https://xxx.xxx it works.

But now all the href in the page link to e.g. https://xxx.xxx/xbackbone/xbackbone/users. Also https://xxx.xxx/xbackbone redirects to https://xxx.xxx/xbackbone/xbackbone/home now.

I don't know why this is happening but I'm sure you know given this info.

from xbackbone.

sergix44 avatar sergix44 commented on May 18, 2024

I found the problem on my side. I checked the apache error log, there were no xbackbone related errors. But when I checked the access.log I noticed that all the assets were returning a 404 because it's looking in the wrong folder. Below is a redacted log (xxx.xxx is my domain).

[29/Mar/2019:17:44:25 +0100] "GET /xbackbone/ HTTP/1.1" 302 3297 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /xbackbone/home HTTP/1.1" 200 1990 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 404 457 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /static/jquery/jquery.min.js HTTP/1.1" 404 446 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"

As you can see the home folder is correctly GET from /xbackbone/home. But the static folder is GET from /static/ instead of /xbackbone/static!

So when I change the base url in the config to https://xxx.xxx/xbackbone instead of https://xxx.xxx it works.

But now all the href in the page link to e.g. https://xxx.xxx/xbackbone/xbackbone/users. Also https://xxx.xxx/xbackbone redirects to https://xxx.xxx/xbackbone/xbackbone/home now.

I don't know why this is happening but I'm sure you know given this info.

Assuming that your document root is /var/www/, and you have xbackbone installed in the /xyz sub folder (abs: /var/www/xyz/), the base_url to be inserted in the config file will be accordingly https://xxx.xxx/xyz (no trailing slash).

I'm not sure how this could influence apache because I don't know if you have other directives in your apache.conf, but if it's generally configured to AllowOverride All, it should get the xbackbone's .htaccess without issues.

Can you try the installation from scratch, checking that apache is configured to read the correct folders?

from xbackbone.

OdinGitDat avatar OdinGitDat commented on May 18, 2024

Assuming that your document root is /var/www/, and you have xbackbone installed in the /xyz sub folder (abs: /var/www/xyz/), the base_url to be inserted in the config file will be accordingly https://xxx.xxx/xyz (no trailing slash).

This was not at all apparent from the installation guide and may have been the source of this entire issue. I will try a complete reinstall knowing this and report back here.

from xbackbone.

sergix44 avatar sergix44 commented on May 18, 2024

Closed for inactivity. Feel free to reopen this issue if needed.

from xbackbone.

gerroon avatar gerroon commented on May 18, 2024

I have this issue still and setting it with the full path does not help.

Here
'base_url' => 'https://DOMAIN/sharex

Sends me to
https://DOMAIN/sharex/sharex/home

Anything else I could try? I have apll the apache stuff installed and set properly

from xbackbone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.