Coder Social home page Coder Social logo

Admin dashboard about batflat HOT 21 CLOSED

sruupl avatar sruupl commented on August 16, 2024
Admin dashboard

from batflat.

Comments (21)

wilburforce83 avatar wilburforce83 commented on August 16, 2024

I came to ask about this too. I have just installed Batflat to try it out and after I log in I just get a 404, looked at the files and see there is only index and htaccess. Am I missing something simple? Thanks!

from batflat.

klocus avatar klocus commented on August 16, 2024

I think that you have an issue with mod_rewirte. Do you have Apache?

from batflat.

piotr-placzek avatar piotr-placzek commented on August 16, 2024

Yes. I am using the Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.5.15

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

I didn't have https:// added so added that in, but still getting 404. I am not that great with php, so there is a good chance I am missing something here!

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [L] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://xxxxxxxxxxxxxxxxxxxx/$1 [R=301,L] </IfModule>

from batflat.

klocus avatar klocus commented on August 16, 2024

@piotr-placzek @wilburforce83 do you have mod_rewrite enabled?

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

@piotr-placzek thanks for the quick reply, and sorry for my ignorance, I am still learning! I am hosting on a subdomain on Site Ground. They say that to enable mod_rewrite it needs to go in the .htaccess of the website.

https://www.siteground.com/kb/how_can_i_enable_modrewrite_module/

I have added this to the .htaccess in the /admin folder. Should it go in the subdomain .htaccess instead, or maybe even in the main domain /public_html/.htaccess?

i.e.

/public_html/.htaccess
/public_html/subdomain/.htaccess
/public_html/subdomain/admin/.htaccess

Many thanks for your help!

from batflat.

klocus avatar klocus commented on August 16, 2024

RewriteEngine On is already set in .htaccess file.

from batflat.

piotr-placzek avatar piotr-placzek commented on August 16, 2024

My mistake.

The rewrite_module was turned off.

However, now after giving login and password (admin / admin) in response I get a blank page (without any source code at all).

http://localhost/batflat-master/admin/dashboard/main?t=b88be7f58de0

from batflat.

klocus avatar klocus commented on August 16, 2024

Update PHP to 5.6 or 7 ;)

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

Okay, I have resolved mostly! I now have a 500 error on HTTPS, HTTP works fine, though I think I can fix that myself :) many thanks!!

from batflat.

klocus avatar klocus commented on August 16, 2024

@wilburforce83 enable "DEV_MODE" in inc/core/defines.php and check for errors.

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

@klocus Thanks, I have enable DEV_MODE to true. is there log somewhere? can't find anything obvious, thanks again for your help!

from batflat.

klocus avatar klocus commented on August 16, 2024

You should get some error instead of 500 page. Or maybe it's because of .htaccess protection. Try remove

# Prevent directory listings
Options -Indexes

# Prevent visitors from viewing files directly
<Files "\.(sdb|md|html|txt)$">
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
        Satisfy All
    </IfModule>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
</Files>

from this file and check if that is working.

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

Okay, so if I manually remove the "s" everything works with no 500 errors, so it is all https:// related.

Removing the above code didn't do anything, is the https thing a simple fix that I'm missing?

from batflat.

klocus avatar klocus commented on August 16, 2024

Please use default Batlfat's .htaccess file. If you want use SSL, add

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

after Options -Indexes

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

@klocus thanks for this! I have done the changes but it hasn't done anyhting. However, I am on a subdomain, so sdo I need to write something different here:

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

To reflect that it is a subdomain?

from batflat.

klocus avatar klocus commented on August 16, 2024

It doesn't matter if you are on subdomain.

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

Thank you, I didn't think it would. I just can't get it to do anyhting other than home page in https:// everyhting works fine in HTTP:// but I need it secure.

This is what I have:

image

from batflat.

klocus avatar klocus commented on August 16, 2024
# Prevent directory listings
Options -Indexes

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# Prevent visitors from viewing files directly
<FilesMatch "\.(sdb\|html\|txt)$">
 <IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>

# URL rewrites
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(inc/\|themes/\|tmp/).*\.(php\|html)$ - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>

from batflat.

piotr-placzek avatar piotr-placzek commented on August 16, 2024

I just reinstalled Apache and updated everything. I changed the control panel from UwAmp to Xampp. And everything is ok. Thanks for your help and patience.

from batflat.

wilburforce83 avatar wilburforce83 commented on August 16, 2024

@klocus Thank you so much for all your help, but it still isn't working. I am wondering whether there is a problem with my host or something? I think I might just give up for the time being :(

from batflat.

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.