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

How to make it work on windows with xampp #12

Open
practicetestsforall opened this issue Mar 27, 2018 · 6 comments
Open

How to make it work on windows with xampp #12

practicetestsforall opened this issue Mar 27, 2018 · 6 comments

Comments

@practicetestsforall
Copy link

I extracted the files to htdocs and imported the school_erp.sql, found in the extracted files, into the school_erp database that I created in myphpadmin. I opened the admin table in the database and checked the credentials, used all of them to try to log in at localhost but none worked. 404 page not found. What am I doing wrong? Please help. Thanks.

@Akshat4112
Copy link
Owner

Please Change the directory name in the .htaccess file in root directory according to your directory name.

@AbhishekDere
Copy link

I fixed this issue:
the issue was about the port80.
Solution: there are two ways actually!

  1. Disabling the access of port 80 to other apps:
    Go to CMD(Admin Mode)->net stop http
    press Y.
    Open Apache in port 80 (The default one)
    //////////////////////////////////////////////////
  2. Changing the Default Port of the Porject.
    tbh, I really dont know how to do that. Even by changing the listening port of httpconfg of the apache does not work because when you login with correct Credentials, it redirects to port 80...

@AbhishekDere
Copy link

Please Change the directory name in the .htaccess file in root directory according to your directory name.

Please give an example because over here, even after changing the htaccess to correct directory, it still shows 404 on every page clicked

@NimrodJMoyo
Copy link

RewriteEngine On #rename "codeIgniter213" with your application directory #For example you rename the entire CodeIgniter application as "mysite" #then, the "RewriteBase /" will be like this "RewriteBase /mysite" #same as at line number 10, "RewriteRule ^(.*)$ /codeIgniter213/index.php #/$1 [L]" will be like this "RewriteRule ^(.*)$ /mysite/index.php/$1 [L]"

RewriteBase /example_directory_folder_name
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /example_directory_folder_name/index.php/$1 [L]

@Islamic-Blogger
Copy link

complicated

@huclilu
Copy link

huclilu commented Nov 16, 2022

complicated
The last line of. htaccess file is modified as:
RewriteRule ^(.*)$ /SchoolERP/index.php?$1 [L]

like me:

RewriteEngine On #rename "codeIgniter213" with your application directory #For example you rename the entire CodeIgniter application as "mysite" #then, the "RewriteBase /" will be like this "RewriteBase /mysite" #same as at line number 10, "RewriteRule ^(.*)$ /codeIgniter213/index.php #/$1 [L]" will be like this "RewriteRule ^(.*)$ /mysite/index.php/$1 [L]"

RewriteBase /SchoolERP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /SchoolERP/index.php?$1 [L]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants