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

Not Found The requested URL /opensourcepos/public/login was not found on this server. #920

Closed
520521mayuan opened this issue Oct 18, 2016 · 47 comments

Comments

@520521mayuan
Copy link

commented Oct 18, 2016

New Feature or Enhacement

For new Features or Enhacements please remove all the template text and clearly write your proposal.
It's important to state whether you expect the community to implement it or you will contribute the work.
Please bear in mind that we will implement new features only on the current code, there is no support for old versions.

Issue, Question or Bug

Before submitting an issue please make sure you remove the first section of the template and you tick (add a x between the square brakets) and agree with all the following check boxes:

  • Checked the current issues database and no similar issue was already discussed
  • Read the README, WHATS_NEW and UPGRADE
  • Read the FAQ (https://github.com/jekkos/opensourcepos#faq) for any known install and/or upgrade gotchas (in specific PHP has php5-gd, php-intl and sockets installed)
  • Reporting an issue of an unmodified OSPOS installation
  • [] Ran any database upgrade scripts (e.g. database/2.4_to_3.0.sql)
  • PHP version is at least 5.5 and not 7.x
  • [] Know the version of OSPOS and git commit hash (check the footer of your OSPOS) and will add to my issue report
  • Know the name and version of OS, Web server and MySQL and will add to my issue report

IMPORTANT: If you remove the template when submitting an issue your issue will be closed.

Installation information

os version: Linux debian 4.6.0-1-amd64

apache version: 2.4.23

php version: 5.6.26

Expected behaviour

Can use the default username and password login in to system successfully.

Actual behaviour

can't login to the system and got the information:
Not Found

The requested URL /opensourcepos/public/login was not found on this server.

Steps to reproduce the issue

As the README.md say, I have followed the local install to install the pos. I have already modified the file and not modify the source code.

  1. use the url: http://localhost/opensourcepos/public/ access the system
  2. input the validate username and password
  3. click go button
@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Oct 18, 2016

Are you using the latest master?

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Oct 18, 2016

Also have you changed .htaccess by any chance?

@520521mayuan

This comment has been minimized.

Copy link
Author

commented Oct 18, 2016

no.

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Oct 18, 2016

Using latest master?

@520521mayuan

This comment has been minimized.

Copy link
Author

commented Oct 18, 2016

I'm using the command: git clone https://github.com/jekkos/opensourcepos.git to download the source code just now.

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Oct 18, 2016

edit public/.htaccess and change:

# if in web root
# RewriteRule ^(.*)$ index.php?/$1 [L]

# if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path
RewriteRule ^(.*)$ /opensourcepos/public/index.php?/$1 [L]

because you installed it in a subdir. If that's the solution I'll add a note to the README

@daN4cat daN4cat added bug and removed pending labels Oct 18, 2016

@daN4cat daN4cat added this to the 3.0.0 milestone Oct 18, 2016

@daN4cat daN4cat self-assigned this Oct 18, 2016

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Oct 18, 2016

Please let me know the result...

@daN4cat daN4cat removed their assignment Oct 18, 2016

@daN4cat daN4cat added the pending label Oct 18, 2016

@520521mayuan

This comment has been minimized.

Copy link
Author

commented Oct 18, 2016

I got the same information.

Not Found

The requested URL /opensourcepos/public/login was not found on this server.

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Oct 18, 2016

And you copied all the dir structure and files from master.
That's strange because login is not under public, so it's pointing to the wrong location.
At the moment nothing springs to my mind about your issue....

@520521mayuan

This comment has been minimized.

Copy link
Author

commented Oct 18, 2016

yeah. I have copied all the dir to /var/html/ from master.

It's frustrate me too. I can't find any file which name is login in my public directory.

I assure that I don't modify the other file except the necessary one(application/config/config.php,application/config/database.php)

@daN4cat daN4cat added question and removed bug labels Oct 18, 2016

@martadinata666

This comment has been minimized.

Copy link

commented Oct 18, 2016

do you confirmed that url rewrite already enabled? i had this one because i forget to enable it.

@520521mayuan

This comment has been minimized.

Copy link
Author

commented Oct 18, 2016

I don't know if my url rewrite already enabled. Do you mean the mod rewrite? I enable it by:

sudo a2enmod rewrite && sudo systemctl restart apache2.

And then access the site again. But unluckily, I got the same error prompt.

@martadinata666

This comment has been minimized.

Copy link

commented Oct 18, 2016

ls /etc/apache2/mods-enabled | grep rewrite

if the result rewrite.load that mean the http already rewrite enabled

@520521mayuan

This comment has been minimized.

Copy link
Author

commented Oct 18, 2016

Wow. It's worked, thanks for your prompt reply and constructive suggestion.

I have done this modifying as for following steps:

  • edit public/.htaccess and change:
# if in web root
# RewriteRule ^(.*)$ index.php?/$1 [L]

# if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path
RewriteRule ^(.*)$ /opensourcepos/public/index.php?/$1 [L]
  • sudo a2enmod rewrite
  • edit /etc/apache2/apache2.conf
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
  • sudo systemctrl restart apache2

that's all. thanks again.

@daN4cat daN4cat closed this Oct 18, 2016

@daN4cat daN4cat removed the pending label Oct 18, 2016

@solomon-pea

This comment has been minimized.

Copy link

commented Nov 1, 2016

I got the same problem, but go through the above steps the problem remains.

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Nov 1, 2016

Have you put the correct subdir in the .htaccess file?

@solomon-pea

This comment has been minimized.

Copy link

commented Nov 2, 2016

Below is my .htaccess setting.

# if in web root
RewriteRule ^(.*)$ index.php?/$1 [L]

# if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path
RewriteRule ^(.*)$ /opensourcepos/public/index.php?/$1 [L]

This is my setting of apache2.conf.

<Directory /usr/share>
        AllowOverride All
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

If I make change it to below.

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

It will have this result.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Nov 2, 2016

Right, is your installation under opensourcepos directory? See line 5
Also you cannot have line 2 and 5 (RewriteRule) one of the two needs to be commented out with a # at the beginning of the line.

You need to fix that file to get things right.

@cmartinss

This comment has been minimized.

Copy link

commented Nov 21, 2016

Hi there,

I have the same situation here and all the previous solutions are not working for me.

I have a clean installation of XAMPP with rewrite module enabled by default. Just downloaded the latest files of OSPOS and placed them into the XAMPP htdocs directory and setup the database.php to the right database but get the 404 error after using admin pointofsale credentials.

Any idea what am I missing?

Please Help

@paulg10me

This comment has been minimized.

Copy link

commented Mar 23, 2017

Hello, I am trying to install and get the following error after entering login credentials on the login screen -
The requested URL /opensourcepos/public/login was not found on this server.
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
The file "login" does not exist. Is it missing from the source, or is something else wrong?
Please let me know if there is any other information that would be helpful.

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Mar 23, 2017

Search closed issues as you'll find the answer

@faruqi

This comment has been minimized.

Copy link

commented May 9, 2017

im try install on : Bit Web Server (PHP,MySQL,PMA) Android base application
link app : https://play.google.com/store/apps/details?id=com.andi.serverweb&hl=in
i think all mod is work.
i try to uncomment replace subdir, but stil not work

  • install database : ok
  • login page : ok
  • after login : 404 - Not Found
  • I tried not to enter the password and username, but happened the same thing

ty for advise

@emcclin

This comment has been minimized.

Copy link

commented May 17, 2017

I am currently having this exact issue. RHEL 7, PHP 5.6, OSPOS 3.1.0, Apache 2.4.6, MariaDB 5.5.52, mod_rewrite is enabled and correctly redirects non-SSL to SSL-enabled.

OSPOS is installed in /var/www/html/opensourcepos/

.htaccess and apache configs were edited as above.

Thanks!

@dprimax

This comment has been minimized.

Copy link

commented Jun 7, 2017

if you are running OSPOS with nginx you cannot use above method (editing .htaccess file)

you should add below configuration to your nginx.conf under

# if in web root
server {
         rewrite ^/(.*)$ /index.php?/$1 last;
         ...
}

# if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path
server {
         rewrite ^/(.*)$ /opensourcepos/public/index.php?/$1 last;
         ...
}

but with above configuration you will still have a problem with images. For complete guide if you are using nginx you can see it here

@3suneetha

This comment has been minimized.

Copy link

commented Sep 1, 2017

Hai,
I am getting not found error while clicking go button in login page
Not Found

The requested URL /os3108/public/login was not found on this server.

Apache/2.4.10 (Ubuntu) Server at 192.168.1.150 Port 80

my .htaccess is

# if in web root
#RewriteRule ^(.*)$ index.php?/$1 [L]

# if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path
RewriteRule ^(.*)$ /<OSPOS path>/public/index.php?/$1 [L]

my apache2.conf

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Sep 1, 2017

@3suneetha

Change the line:

RewriteRule ^(.*)$ //public/index.php?/$1 [L]

to be:

RewriteRule ^(.*)$ /os3108/public/index.php?/$1 [L]

@halssahal

This comment has been minimized.

Copy link

commented Sep 10, 2017

I will install on local, but like this. Please help for just getting started

Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

@praty22

This comment has been minimized.

Copy link

commented Nov 14, 2017

followed this post thoroughly , made required changes in .htaccess but still 404. followed this :

edit public/.htaccess and change:

# if in web root
# RewriteRule ^(.*)$ index.php?/$1 [L]

# if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path
RewriteRule ^(.*)$ /finance/public/index.php?/$1 [L]

sudo a2enmod rewrite

edit /etc/apache2/apache2.conf

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

sudo service apache2 stop
sudo service apache2 start

but still no luck !
looking for help.

@halssahal look for pos->public->index.php
check $system_path value,, that path might be missing ,
stuck with same error earlier

@ashindominic

This comment has been minimized.

Copy link

commented Dec 2, 2017

I receive Internal Server Error when i change apache2 configuration,
ie; AllowOverride None to AllowOverride All.

here is my apache2.conf:

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

#<Directory /srv/>
#       Options Indexes FollowSymLinks
#       AllowOverride None
#       Require all granted
#</Directory>
@odiea

This comment has been minimized.

Copy link
Collaborator

commented Dec 2, 2017

Use the bintray version and not the github version.

@daN4cat

This comment has been minimized.

Copy link
Collaborator

commented Dec 2, 2017

@ashindominic what's your .htacess and which dir is your OSPOS installed?

@mubeenanees

This comment has been minimized.

Copy link

commented Feb 21, 2018

The requested URL /opensourcepos/public/login was not found on this server. i found issue

@mubeenanees

This comment has been minimized.

Copy link

commented Feb 21, 2018

i got an error what i do now?
Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

@mckaygerhard

This comment has been minimized.

Copy link
Contributor

commented Feb 21, 2018

bad installed, please install following one of the wiki instructions and do not use the git repo, READ READ, do you READ the README..

puff @jekkos the github issue template are unuselless, does not ask the main question "what install instructions do you follow" i propose two times that changes

@mubeenanees

This comment has been minimized.

Copy link

commented Feb 22, 2018

i follow these steps in the readme
Local install

  1. Dowload the latest stable release from github or unstable build from bintray
  2. Create/locate a new mysql database to install open source point of sale into
  3. Execute the file database/database.sql to create the tables needed
  4. unzip and upload Open Source Point of Sale files to web server
  5. Modify application/config/database.php and modify credentials if needed to connect to your database
  6. Modify application/config/config.php encryption key with your own
  7. Go to your point of sale install public dir via the browser
  8. LOGIN using
  • username: admin
  • password: pointofsale
  1. Enjoy
  2. Oops an issue? Please make sure you read the FAQ, wiki page and you checked open and closed issue on GitHub. PHP display_errors is disabled by default. Create an application/config/.env file from the .env.example to enable it in a development environment.
@mubeenanees

This comment has been minimized.

Copy link

commented Feb 22, 2018

@mckaygerhard

This comment has been minimized.

Copy link
Contributor

commented Feb 22, 2018

errr please "all wiki steps" that steps are not from the wiki , are from README, are so generic.. so then i ask:

  • what download? stable or unstable bintray=?
  • attached screenshot? seems do you not are familiar with some interfaces, response with mail dont means the response will arrive as you send!

and due this its a ethernity, seems do you installed in a linux, do you know how to use it? recommende practice and do not "click click click"

a important tip: all the zip content must be "directly" in the htdoc www rootdirectory.. its a pain but need it!

@yeshansachithak

This comment has been minimized.

Copy link

commented Sep 6, 2018

Dears, I'm having the same issue on my virtual host mamp server.

<VirtualHost *:80>
ServerName staging.possystem.com
ServerAlias www.staging.possystem.com
DocumentRoot "/webApps/staging/staging.possystem.com/public"
ErrorLog "/logs/staging.possystem.com-error.log"
CustomLog "/logs/staging.possystem.com-access.log" common
</VirtualHost>

Not Found
The requested URL /login was not found on this server.

@mckaygerhard

This comment has been minimized.

Copy link
Contributor

commented Sep 6, 2018

@yeshansachithak your document root i think must point to /webApps/staging/staging.possystem.com/ and inside you will have a .htaccess with very complicated things and the public directory

after fix that depending of the results you can only simple put a index.php file that all resuest redirect to public, but dont do that until fix the document root.. and see results

@khawajaetisam99

This comment has been minimized.

Copy link

commented Dec 31, 2018

It's not a problem, You just didn't configure it right. If you just script kiddie, make these two changes and It will work like a charm:

-> Download the build from this link and save the package in the www directory.
-> Rename the package opensourcepos.XXXXXXXXXXX with opensourcepos
https://bintray.com/jekkos/opensourcepos/opensourcepos/view/files?sort=updated&order=desc#files

1: edit public/.htaccess and change:

if in web root

RewriteRule ^(.*)$ index.php?/$1 [L]

if in subdir comment above line, uncomment below one and replace with your path

RewriteRule ^(.*)$ /finance/public/index.php?/$1 [L]

2: Modify application/config/database.php and modify credentials if needed to connect to your database
-> to confirm, if you have put the right credentials in application/config/database.php file, open http://localhost/phpmyadmin after running WAMPP or XAMPP and try to login with the same credentials here.
you are done!!

@SteveIreland

This comment has been minimized.

Copy link
Collaborator

commented Dec 31, 2018

I think that's a good final word on this zombie issue that simply won't die.

@opensourcepos opensourcepos locked as resolved and limited conversation to collaborators Dec 31, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
You can’t perform that action at this time.