Question: Cant Login In Xampp Localhost

Cant Login In Xampp Localhost

Hi, I just purchased the Stock Manager Advance all module and tried it on XAMPP localhost so we can play around since Client doesn't have a domain for now (undecided what domain name she'

JB

Janwil Brayles

Asked
Hi,

I just purchased the Stock Manager Advance all module and tried it on XAMPP localhost so we can play around since Client doesn't have a domain for now (undecided what domain name she'll be using.

Installed everything. then Try logging in, it says page not found.
Maybe because I'm using http://localhost/sma/ ?
Can you assist me on how to fix this?
  • JB

    Janwil Brayles

    Answered
    Follow up on this, so we can proceed with checking and testing
  • MS

    Mian Saleem

    Answered
    Hello,

    Mostly 404 not found error is caused due to missing `.htaccess` file. There is FAQ about the 404 not found in the documentation.pdf

    ---
    **Why am I getting 404 Not Found error after installation?**

    Please

    1. check that .htaccess file is successfully uploaded and exists in the main directory
    2. make sure that your apache mod_rewrite is enabled and configured to use .htaccess from site directory
    3. base_url in app/config/config.php

    ---

    If you are on linux/unix system, then the dot file are hidden by default.

    Thank you
  • JB

    Janwil Brayles

    Answered
    Hi,

    Done changes and still not working.

    1. check that .htaccess file is successfully uploaded and exists in the main directory
    - (yes it is uploaded on my D:\xampp\htdocs\SMA)

    2. make sure that your apache mod_rewrite is enabled and configured to use .htaccess from site directory
    - (yes enabled mod_rewite and also change the AllowOverride None to AllowOverride All)

    3. base_url in app/config/config.php
    - (not sure how to access this, should I do this? http://localhost/sma/app/config/config.php if yes, it says forbidden)
  • JB

    Janwil Brayles

    Answered
    Saw it, base_URL is correct. but still 404 when clicking links and everything. I can't even go to Login for POS admin backend
  • JB

    Janwil Brayles

    Answered
    For example when you click the PRODUCT in Menu. technically it should go to localhost/sma/shop/products but error 404 will prompt
  • MS

    Mian Saleem

    Answered
    Hello,

    I’m lease check the contents of ’.htaccess’ file and compare with default. If same then recheck the mod_rewrite and it’s configuration. As these only cause the 404 errors. If you install on live server, I can help you check.

    Thanks
  • JB

    Janwil Brayles

    Answered
    Not sure if this is correct since I don't have htaccess for comparisson
  • MS

    Mian Saleem

    Answered
    Yes, that the correct file. So the 404 not found cause should be the mod_rewrite. Please disable and enable it again or try with different web platform. Did you try it on live sserver?
  • JB

    Janwil Brayles

    Answered
    I didn't try it on the live server since the client doesn't have the domain, so alternatively we tried it on a subdomain but the hosting server php version is only 7.
    But we would like to try it first on the localhost so we can play around.
  • JB

    Janwil Brayles

    Answered
    Tried disabled and enable it again, still the same result. tried different browser still the same
  • Login to Reply