Closed bkm888 closed 6 years ago
I assume you downloaded the release zip file and not code from master in GitHub.
If your installation is under a subfolder of www/html you need to adjust the .htaccess file under public dir. Chech the file and read the instructions in it.
According to the LOCAL install instructions (Step 5) This is where I was supposed to unzip everything:
Uncompress to htdocs the download: cd /var/www/html;unzip osposlastedstable.zip this will populate all the web server htdocs root directory only for the software.
What addition should then be made to .htaccess in the ~/public directory?
Unzipping everything loaded a preconfigured .htaccess file into that directory already. Is it not preconfigured to work if the install instructions are followed?
I am not good at using .htaccess syntax, so I was pleased to find it already done. If the preconfigured one is incorrect, then what element in it should be changed?
And where exactly should this /login directory be found?
And yes I downloaded the zip file from the GitHub files location.
BKM
do you have a folder opensourcepos or similar under /var/www/html?
just read your first post and you said there is a public folder, so the zip exploded everything under the root /var/www/html, so you don't need to change the file public/.htaccess
are you sure the ownership of the files is correct? They must be executable by your apache server user.
It appears everything that was expanded in the unzip process is owned by 'root' so it should be working. For /var/www/html we get the following:
$ ls -lha
total 108K
drwxr-xr-x 6 root root 4.0K Sep 1 16:42 .
drwxr-xr-x 3 root root 4.0K Sep 1 15:48 ..
drwxrwxr-x 16 root root 4.0K Jun 13 21:00 application
drwxrwxr-x 2 root root 4.0K Jun 13 21:00 database
-rw-rw-r-- 1 root root 655 Jun 13 21:00 docker-cloud.yml
-rw-rw-r-- 1 root root 916 Jun 13 21:00 docker-compose.dev.yml
-rw-rw-r-- 1 root root 880 Jun 13 21:00 docker-compose.test.yml
-rw-rw-r-- 1 root root 914 Jun 13 21:00 docker-compose.yml
-rw-rw-r-- 1 root root 695 Jun 13 21:00 Dockerfile
-rwxrwxr-x 1 root root 1.4K Jun 13 21:00 .htaccess
-rw-rw-r-- 1 root root 256 Jun 13 21:00 import_customers.csv
-rw-rw-r-- 1 root root 499 Jun 13 21:00 import_items.csv
-rw-r--r-- 1 root root 11K Sep 1 15:54 inded_html_old
-rw-rw-r-- 1 root root 5.6K Jun 13 21:00 INSTALL.md
-rw-rw-r-- 1 root root 2.1K Jun 13 21:00 LICENSE
drwxrwxr-x 10 root root 4.0K Jun 13 21:02 public
-rw-rw-r-- 1 root root 7.8K Jun 13 21:00 README.md
-rw-rw-r-- 1 root root 25 Jun 13 21:00 robots.txt
-rw-rw-r-- 1 root root 1.3K Jun 13 21:00 UPGRADE.txt
drwxr-xr-x 10 root root 4.0K Jun 13 21:00 vendor
-rw-rw-r-- 1 root root 9.3K Jun 13 21:00 WHATS_NEW.txt
. . And for /var/www/html/public we get this:
:/var/www/html/public $ ls -lha
total 60K
drwxrwxr-x 10 root root 4.0K Jun 13 21:02 .
drwxr-xr-x 6 root root 4.0K Sep 1 16:42 ..
drwxr-xr-x 28 root root 4.0K Jun 13 21:02 bower_components
drwxrwxr-x 2 root root 4.0K Jun 13 21:00 css
drwxr-xr-x 4 root root 4.0K Jun 13 21:02 dist
drwxrwxr-x 2 root root 4.0K Jun 13 21:00 fonts
-rw-rw-r-- 1 root root 1.8K Jun 13 21:00 .htaccess
drwxrwxr-x 4 root root 4.0K Jun 13 21:00 images
-rw-rw-r-- 1 root root 11K Jun 13 21:00 index.php
drwxrwxr-x 2 root root 4.0K Jun 13 21:00 js
drwxrwxr-x 2 root root 4.0K Jun 13 21:02 license
-rw-rw-r-- 1 root root 25 Jun 13 21:00 robots.txt
drwxrwxr-x 3 root root 4.0K Jun 13 21:00 uploads
So it looks like everything should be working. Because I am on a local server and not passing across internet connections I did not need the encryption keys so that is the only recommended step that is left out of the process.
BKM
shouldn't the files chown by the apache user?
All packages were installed by root user.
I guess I could wipe out the server and do it again using a regular user and sudo when needed.
Where is this mystery /login directory? I want to make sure it is visible.
BKM
Since this is a headless server, there is no user logged in during the access by a browser somewhere else on the network.
BKM
agreed, but apache server user might not be able to access and use those.
So should I maybe create a new user and then just chown everything from /var/www/html and down to be that user? Ow would it be better to reinstall the os and start again?
BKM
hmmm, no if you could open the login it should be fine.
ok, is the database fine? can you connect to it?
I wouldn't that it's the connection to mariadb
ok, is the database fine? can you connect to it?
Hmm... apparently not. I cannot even log into mariadb with the username and password that was set earlier.
Leave this thread open. I will wipe the server box and start again. It will only take an hour or two if I am lazy about it.
This time around, I will immediately use the root user to create a regular user with sudo access and then install everything from there. Maybe there is something in the install process that chokes because of the root user being used to install everything. Honestly, I didn't think it would matter, but maybe it does.
Just for the trying of it, I chowned everything from /html and down to www-data owner, restarted the databse and web servers and still got the same result.
So, LEt me go back and try a complete re-do (since this is a dedicated OSPOS server) and see if the problem repeats itself.
Thanks,
BKM
The issue looks like being the connection to the database.
Wow... you sure are quick to call something "Invalid" before really looking into it.
Yeah, I made a typo in the password for mariadb user "admin" but when I went back to your instructions located here:
Things got even more strange when I started copying directly from the instructions and pasting them into the SSH session.
It turns out that apache2 in Debian 9 does not permit an unzip of files to overwrite the .htaccess file in the /var/www/html directory. The 'skip' condition just flies by in the command line trace and you ever see it unless you go looking for problems with the unzip action. The corrective action was to us rm to delete everything in the /html directory including the hidden files, then unzip your package.
Likewise, Step 7 of your instructions reads like this:
Populate database with that other command in same terminal mysql -u admin -ppointofsale -D ospos < /var/www/html/application/database/database.sql
However, there is no such directory path. The only database.sql file to be found anywhere is actually located at:
/var/www/html/database/database.sql
So, while my typo in the first round of trying to install this caused a failure of the database to connect, the second round is obliterated by your documentation errors.
And no matter how hard I try doing everything from a different user, 'sudo' is required in order to move files into the /var/www/html directory and then to also unzip them. This makes eveything from that point onward owned by root user. Likewise, I get the exact same error that I used to open this thread at the beginning.
So, I am going to wipe the server 'again' and start over 'again' to try to get something here to work on a Debian 9 headless server. I will image the system at several points along the way to make it easier to get through so many trial and error attempts to get this to work.
BKM
The /login part of the URL maps to to a PHP class ... not a folder. Don't let that confuse you.
We'll look into the documentation and check for any issue. I didn't write it, so if you have time you can also fix it according to your findings.
Ok, I have followed several paths to install the ver 3.2.3 OSPOS new from the zip file.
Every one of them (6 attempts now) have lead me to the same result.
I had moved my effort away from the local Debian box to my Google Cloud Platform account because I can spin up a server there in less than a minute. This allowed me to try many iterations of installs both from your github docs and from some other source called "opensourceposguide.com". After hitting the same error so many times in a row I decided to take a different approach.
I thought that since everything is unzipped into the /var/www/html directory that the /login subdirectory that Apache keeps complaining about must be somewhere in the directory tree at /var/www/html or below. So I decided to use the find command to try to locate this mystery directory...
~$ sudo find /var/www -type d -name "login"
And the prompt came back empty!!!
Thinking this was not possible, I took another approach. I installed the linux tree utility and used it to dump out a complete directory tree. After reading the name of every directory in your pakcage, I found there was no "login" directory anywhere in the mix. It looked like this:
/var/www/html $ tree -d . ├── application │ ├── cache │ ├── config │ ├── controllers │ ├── core │ ├── helpers │ ├── hooks │ ├── language │ │ ├── ar-EG │ │ ├── az-AZ │ │ ├── bg │ │ ├── cs │ │ ├── de │ │ ├── de-CH │ │ ├── en-GB │ │ ├── en-US │ │ ├── es │ │ ├── fr │ │ ├── hr-HR │ │ ├── hu-HU │ │ ├── id │ │ ├── it │ │ ├── km │ │ ├── lo │ │ ├── nl │ │ ├── nl-BE │ │ ├── pt-BR │ │ ├── ru │ │ ├── sv │ │ ├── th │ │ ├── tr │ │ ├── vi │ │ └── zh │ ├── libraries │ │ └── tokens │ ├── logs │ ├── migrations │ │ └── sqlscripts │ ├── models │ │ ├── enums │ │ └── reports │ ├── tests │ │ └── libraries │ ├── third_party │ └── views │ ├── barcodes │ ├── configs │ ├── customers │ ├── employees │ ├── errors │ │ ├── cli │ │ └── html │ ├── expenses │ ├── expenses_categories │ ├── giftcards │ ├── home │ ├── item_kits │ ├── items │ ├── messages │ ├── partial │ ├── people │ ├── receivings │ ├── reports │ │ └── graphs │ ├── sales │ ├── suppliers │ └── taxes ├── database ├── public │ ├── bower_components │ │ ├── bootstrap │ │ │ ├── dist │ │ │ │ ├── css │ │ │ │ ├── fonts │ │ │ │ └── js │ │ │ ├── fonts │ │ │ ├── grunt │ │ │ ├── js │ │ │ ├── less │ │ │ │ └── mixins │ │ │ └── nuget │ │ ├── bootstrap3-dialog │ │ │ ├── dist │ │ │ │ ├── css │ │ │ │ ├── js │ │ │ │ └── less │ │ │ ├── examples │ │ │ │ ├── images │ │ │ │ └── play │ │ │ └── src │ │ │ ├── css │ │ │ ├── js │ │ │ └── less │ │ ├── bootstrap-daterangepicker │ │ │ ├── example │ │ │ │ ├── amd │ │ │ │ └── browserify │ │ │ └── website │ │ ├── bootstrap-select │ │ │ ├── dist │ │ │ │ ├── css │ │ │ │ └── js │ │ │ │ └── i18n │ │ │ ├── js │ │ │ │ └── i18n │ │ │ ├── less │ │ │ ├── nuget │ │ │ └── sass │ │ ├── bootstrap-table │ │ │ ├── dist │ │ │ │ ├── extensions │ │ │ │ │ ├── accent-neutralise │ │ │ │ │ ├── angular │ │ │ │ │ ├── auto-refresh │ │ │ │ │ ├── click-edit-row │ │ │ │ │ ├── cookie │ │ │ │ │ ├── copy-rows │ │ │ │ │ ├── defer-url │ │ │ │ │ ├── editable │ │ │ │ │ ├── export │ │ │ │ │ ├── filter │ │ │ │ │ ├── filter-control │ │ │ │ │ ├── flat-json │ │ │ │ │ ├── group-by │ │ │ │ │ ├── group-by-v2 │ │ │ │ │ ├── i18n-enhance │ │ │ │ │ ├── key-events │ │ │ │ │ ├── mobile │ │ │ │ │ ├── multi-column-toggle │ │ │ │ │ ├── multiple-search │ │ │ │ │ ├── multiple-selection-row │ │ │ │ │ ├── multiple-sort │ │ │ │ │ ├── natural-sorting │ │ │ │ │ ├── page-jumpto │ │ │ │ │ ├── print │ │ │ │ │ ├── reorder-columns │ │ │ │ │ ├── reorder-rows │ │ │ │ │ ├── resizable │ │ │ │ │ ├── select2-filter │ │ │ │ │ ├── sticky-header │ │ │ │ │ ├── toolbar │ │ │ │ │ ├── tree-column │ │ │ │ │ └── treegrid │ │ │ │ └── locale │ │ │ └── src │ │ │ ├── extensions │ │ │ │ ├── accent-neutralise │ │ │ │ ├── angular │ │ │ │ ├── auto-refresh │ │ │ │ ├── click-edit-row │ │ │ │ ├── cookie │ │ │ │ ├── copy-rows │ │ │ │ ├── defer-url │ │ │ │ ├── editable │ │ │ │ ├── export │ │ │ │ ├── filter │ │ │ │ ├── filter-control │ │ │ │ ├── flat-json │ │ │ │ ├── group-by │ │ │ │ ├── group-by-v2 │ │ │ │ ├── i18n-enhance │ │ │ │ ├── key-events │ │ │ │ ├── mobile │ │ │ │ ├── multi-column-toggle │ │ │ │ ├── multiple-search │ │ │ │ ├── multiple-selection-row │ │ │ │ ├── multiple-sort │ │ │ │ ├── natural-sorting │ │ │ │ ├── page-jumpto │ │ │ │ ├── print │ │ │ │ ├── reorder-columns │ │ │ │ ├── reorder-rows │ │ │ │ ├── resizable │ │ │ │ ├── select2-filter │ │ │ │ ├── sticky-header │ │ │ │ ├── toolbar │ │ │ │ ├── tree-column │ │ │ │ └── treegrid │ │ │ └── locale │ │ ├── bootstrap-tagsinput │ │ │ ├── dist │ │ │ ├── examples │ │ │ │ └── assets │ │ │ └── src │ │ ├── bootswatch │ │ │ ├── cerulean │ │ │ ├── cosmo │ │ │ ├── cyborg │ │ │ ├── darkly │ │ │ ├── flatly │ │ │ ├── fonts │ │ │ ├── journal │ │ │ ├── lumen │ │ │ ├── paper │ │ │ ├── readable │ │ │ ├── sandstone │ │ │ ├── simplex │ │ │ ├── slate │ │ │ ├── spacelab │ │ │ ├── superhero │ │ │ ├── united │ │ │ └── yeti │ │ ├── chartist │ │ │ └── dist │ │ │ └── scss │ │ │ └── settings │ │ ├── chartist-plugin-axistitle │ │ │ └── dist │ │ ├── chartist-plugin-barlabels │ │ │ ├── dist │ │ │ └── tasks │ │ ├── chartist-plugin-pointlabels │ │ │ ├── dist │ │ │ └── tasks │ │ ├── chartist-plugin-tooltip │ │ │ ├── dist │ │ │ └── tasks │ │ ├── file-saver.js │ │ ├── html2canvas │ │ │ ├── build │ │ │ ├── examples │ │ │ └── src │ │ │ └── renderers │ │ ├── jasny-bootstrap │ │ │ ├── dist │ │ │ │ ├── css │ │ │ │ └── js │ │ │ ├── grunt │ │ │ ├── js │ │ │ ├── less │ │ │ │ └── build │ │ │ ├── scss │ │ │ └── test-infra │ │ ├── jquery │ │ │ ├── dist │ │ │ └── src │ │ │ ├── ajax │ │ │ │ └── var │ │ │ ├── attributes │ │ │ ├── core │ │ │ │ └── var │ │ │ ├── css │ │ │ │ └── var │ │ │ ├── data │ │ │ │ └── var │ │ │ ├── effects │ │ │ ├── event │ │ │ ├── exports │ │ │ ├── manipulation │ │ │ │ └── var │ │ │ ├── queue │ │ │ ├── sizzle │ │ │ │ └── dist │ │ │ ├── traversing │ │ │ │ └── var │ │ │ └── var │ │ ├── jquery-form │ │ │ ├── dist │ │ │ ├── docs │ │ │ │ ├── assets │ │ │ │ │ └── css │ │ │ │ ├── _layouts │ │ │ │ └── _sass │ │ │ ├── install │ │ │ │ └── template │ │ │ ├── src │ │ │ └── test │ │ │ ├── ajax │ │ │ └── img │ │ ├── jquery-ui │ │ │ ├── themes │ │ │ │ ├── base │ │ │ │ │ └── images │ │ │ │ ├── black-tie │ │ │ │ │ └── images │ │ │ │ ├── blitzer │ │ │ │ │ └── images │ │ │ │ ├── cupertino │ │ │ │ │ └── images │ │ │ │ ├── dark-hive │ │ │ │ │ └── images │ │ │ │ ├── dot-luv │ │ │ │ │ └── images │ │ │ │ ├── eggplant │ │ │ │ │ └── images │ │ │ │ ├── excite-bike │ │ │ │ │ └── images │ │ │ │ ├── flick │ │ │ │ │ └── images │ │ │ │ ├── hot-sneaks │ │ │ │ │ └── images │ │ │ │ ├── humanity │ │ │ │ │ └── images │ │ │ │ ├── le-frog │ │ │ │ │ └── images │ │ │ │ ├── mint-choc │ │ │ │ │ └── images │ │ │ │ ├── overcast │ │ │ │ │ └── images │ │ │ │ ├── pepper-grinder │ │ │ │ │ └── images │ │ │ │ ├── redmond │ │ │ │ │ └── images │ │ │ │ ├── smoothness │ │ │ │ │ └── images │ │ │ │ ├── south-street │ │ │ │ │ └── images │ │ │ │ ├── start │ │ │ │ │ └── images │ │ │ │ ├── sunny │ │ │ │ │ └── images │ │ │ │ ├── swanky-purse │ │ │ │ │ └── images │ │ │ │ ├── trontastic │ │ │ │ │ └── images │ │ │ │ ├── ui-darkness │ │ │ │ │ └── images │ │ │ │ ├── ui-lightness │ │ │ │ │ └── images │ │ │ │ └── vader │ │ │ │ └── images │ │ │ └── ui │ │ │ ├── i18n │ │ │ └── minified │ │ │ └── i18n │ │ ├── jquery-validate │ │ │ ├── build │ │ │ ├── dist │ │ │ └── src │ │ │ ├── additional │ │ │ └── localization │ │ ├── js-cookie │ │ │ └── src │ │ ├── jspdf │ │ │ ├── dist │ │ │ ├── doc │ │ │ │ └── symbols │ │ │ │ └── src │ │ │ └── examples │ │ │ ├── bootstrap │ │ │ │ ├── css │ │ │ │ ├── img │ │ │ │ └── js │ │ │ ├── css │ │ │ │ └── smoothness │ │ │ │ └── images │ │ │ ├── images │ │ │ └── js │ │ │ └── jquery │ │ ├── jspdf-autotable │ │ │ ├── dist │ │ │ ├── examples │ │ │ │ └── libs │ │ │ └── src │ │ ├── moment │ │ │ ├── locale │ │ │ ├── min │ │ │ ├── src │ │ │ │ ├── lib │ │ │ │ │ ├── create │ │ │ │ │ ├── duration │ │ │ │ │ ├── format │ │ │ │ │ ├── locale │ │ │ │ │ ├── moment │ │ │ │ │ ├── parse │ │ │ │ │ ├── units │ │ │ │ │ └── utils │ │ │ │ └── locale │ │ │ └── templates │ │ ├── remarkable-bootstrap-notify │ │ │ └── dist │ │ ├── smalot-bootstrap-datetimepicker │ │ │ ├── css │ │ │ ├── js │ │ │ │ └── locales │ │ │ └── less │ │ └── tableExport.jquery.plugin │ ├── css │ ├── dist │ │ ├── bootswatch │ │ │ ├── cerulean │ │ │ ├── cosmo │ │ │ ├── cyborg │ │ │ ├── darkly │ │ │ ├── flatly │ │ │ ├── fonts │ │ │ ├── journal │ │ │ ├── lumen │ │ │ ├── paper │ │ │ ├── readable │ │ │ ├── sandstone │ │ │ ├── simplex │ │ │ ├── slate │ │ │ ├── spacelab │ │ │ ├── superhero │ │ │ ├── united │ │ │ └── yeti │ │ └── jquery-ui │ ├── fonts │ ├── images │ │ ├── jquery-ui │ │ └── menubar │ │ └── png │ │ ├── 128px │ │ └── 64px │ ├── js │ ├── license │ └── uploads │ └── item_pics └── vendor ├── codeigniter │ └── framework │ ├── application │ │ ├── cache │ │ ├── config │ │ ├── controllers │ │ ├── core │ │ ├── helpers │ │ ├── hooks │ │ ├── language │ │ │ └── english │ │ ├── libraries │ │ ├── logs │ │ ├── models │ │ ├── third_party │ │ └── views │ │ └── errors │ │ ├── cli │ │ └── html │ ├── system │ │ ├── core │ │ │ └── compat │ │ ├── database │ │ │ └── drivers │ │ │ ├── cubrid │ │ │ ├── ibase │ │ │ ├── mssql │ │ │ ├── mysql │ │ │ ├── mysqli │ │ │ ├── oci8 │ │ │ ├── odbc │ │ │ ├── pdo │ │ │ │ └── subdrivers │ │ │ ├── postgre │ │ │ ├── sqlite │ │ │ ├── sqlite3 │ │ │ └── sqlsrv │ │ ├── fonts │ │ ├── helpers │ │ ├── language │ │ │ ├── arabic │ │ │ ├── armenian │ │ │ ├── azerbaijani │ │ │ ├── bengali │ │ │ ├── bulgarian │ │ │ ├── catalan │ │ │ ├── croatian │ │ │ ├── czech │ │ │ ├── danish │ │ │ ├── dutch │ │ │ ├── english │ │ │ ├── filipino │ │ │ ├── french │ │ │ ├── german │ │ │ ├── greek │ │ │ ├── gujarati │ │ │ ├── hindi │ │ │ ├── hungarian │ │ │ ├── indonesian │ │ │ ├── italian │ │ │ ├── japanese │ │ │ ├── khmer │ │ │ ├── korean │ │ │ ├── latvian │ │ │ ├── lithuanian │ │ │ ├── norwegian │ │ │ ├── persian │ │ │ ├── polish │ │ │ ├── portuguese │ │ │ ├── portuguese-brazilian │ │ │ ├── romanian │ │ │ ├── russian │ │ │ ├── serbian │ │ │ ├── simplified-chinese │ │ │ ├── slovak │ │ │ ├── slovenian │ │ │ ├── spanish │ │ │ ├── swedish │ │ │ ├── tamil │ │ │ ├── thai │ │ │ ├── traditional-chinese │ │ │ ├── turkish │ │ │ ├── ukrainian │ │ │ ├── urdu │ │ │ └── vietnamese │ │ └── libraries │ │ ├── Cache │ │ │ └── drivers │ │ ├── Javascript │ │ └── Session │ │ └── drivers │ ├── tests │ │ └── mocks │ │ ├── core │ │ ├── database │ │ │ ├── config │ │ │ │ └── pdo │ │ │ ├── db │ │ │ ├── drivers │ │ │ └── schema │ │ ├── libraries │ │ └── uploads │ └── user_guide │ ├── contributing │ ├── database │ ├── documentation │ ├── _downloads │ ├── general │ ├── helpers │ ├── _images │ ├── installation │ ├── libraries │ ├── overview │ ├── _static │ │ ├── css │ │ ├── fonts │ │ ├── images │ │ └── js │ └── tutorial ├── composer ├── dompdf │ └── dompdf │ ├── lib │ │ ├── fonts │ │ ├── html5lib │ │ └── res │ ├── src │ │ ├── Adapter │ │ ├── Css │ │ ├── Exception │ │ ├── Frame │ │ ├── FrameDecorator │ │ ├── FrameReflower │ │ ├── Image │ │ ├── Positioner │ │ └── Renderer │ └── tests │ └── Dompdf │ └── Tests │ └── _files ├── mikey179 │ └── vfsStream │ ├── examples │ └── src │ ├── main │ │ └── php │ │ └── org │ │ └── bovigo │ │ └── vfs │ │ └── visitor │ └── test │ ├── php │ │ └── org │ │ └── bovigo │ │ └── vfs │ │ ├── proxy │ │ └── visitor │ └── resources │ └── filesystemcopy │ ├── emptyFolder │ └── withSubfolders │ ├── subfolder1 │ └── subfolder2 ├── paragonie │ └── random_compat │ ├── dist │ ├── lib │ └── other ├── phenx │ ├── php-font-lib │ │ ├── maps │ │ └── src │ │ └── FontLib │ │ ├── EOT │ │ ├── Glyph │ │ ├── OpenType │ │ ├── Table │ │ │ └── Type │ │ ├── TrueType │ │ └── WOFF │ └── php-svg-lib │ ├── src │ │ └── Svg │ │ ├── Surface │ │ └── Tag │ └── tests │ └── Svg ├── tamtamchik │ └── namecase │ ├── examples │ └── src └── vlucas └── phpdotenv └── src └── Exception
605 directories
So in conclusion, I have given up!!!
I have spent a whole day chasing an elusive install success that can never happen because an important directory does not even exist in the install package.
How has anyone else actually been able to get this to work?
At this point, I am going back to ERPNext to use as a POS system. It is very much an over-kill to be a POS system, but it installs right with only one command to get the install script and another to execute it. I really wanted to find a much simpler POS system to help out some of my friends that have small shops in the village, but I don't have time to chase this mystery any longer.
Good luck with your project. It seems nice in theory. To bad I could never see it in real life.
BKM
@mckaygerhard Sorry, but I had to clean up your post a bit. It's time to stop maligning others and play nice. Contributions are welcome, but bad behavior is not.
@bkm888 I'm sorry about all those issues but many of us installed it and succeeded.
You are assuming there is a login folder, but actually there is none. You should not confuse the path in your URL with a direct mapping to a folder. There is a routing logic behind that remaps things, and that's what CI provides as part of their framework.
You seem to have given up, but I wanted to understand if you could enable and check for any PHP error_log.
Also I hope you read issue #920 as different people talked about similar issues.
And to know how to enable the error_log, there is a post that can help: https://github.com/opensourcepos/opensourcepos/issues/1770#issuecomment-355177943
As per issue #920 I was having a similar issue after upgrading to ubuntu server 18.04 and the following fixed my issue.
sudo a2enmod rewrite
edit /etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
sudo systemctl restart apache2
Great tip, thanks @odiea
Was this an issue or a commercial for ERPNext to use as a POS system
its pretty frustrating installing the code.... if i manage to install i think i will contribute on a installer... so much time trying to do something pretty basic.
It's frustrating too to guess what you are trying to do... see #2136
I am also facing the same problem. I've tried editing the .htaccess file and also giving all the files the permissions (+777). Still the same problem exists. I don't think it's permissions related issue, because the landing page works.
It randomly gives out the error as shown in screenshot below. Randomly meaning it goes away on refreshing the page, then comes back on again refreshing. I'd say it could have been a cache related issue because of its randomness, but highly unlikely because it's a server error.
What more should I try? The /login URL not found error appears after trying to log in with the credentials. Also, is it because I haven't updated the IP address of server in the code anywhere?
After I tried the suggestion given by @odiea,
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
I get the following error:
And the error_log is saying.....? Because php.ini issue means that a php library is missing.
@daN4cat
I just went through the code to see where this error message generated, and understood that it required the following libraries $keys = array('bcmath', 'intl', 'gd', 'openssl', 'mbstring', 'curl');
I don't know why they didn't install, because I followed the wiki for installation very properly. Anyway, I installed them separately one by one, and it worked. No errors now, except the one at bottom regarding php_mysqli.dll, which is again only a 'Core Warning'. Should I be worried about it?
How do you expect ospos to work if you don't have mysql library?
@daN4cat I have the mysql library. It's working fine. I setup the db properly and the can see it too. I am now able to add items, register sales etc. etc. I'm very sure there's nothing going wrong now. But the error still persists.
@daN4cat Ok, so I tried looking for php_mysqli.dll
in /usr/lib/php/20151012
, but it didn't exist there. What I found instead was the file mysqli.so
. So I went into php.ini
and replaced the extension php_mysqli.dll
with mysqli.so
, and restarted. The error went away. Is that the correct thing to do?
I know the thread is about /login
url not found, but I think it's still related.
It's not related and it's a problem with your setup of PHP and web server I'm afraid.
This issue is due to the the .htaccess rule not getting applied. Check your apache webserver and ensure local .htaccess rules are allowed.
So what solution for this. I meet this problem when deploy on GCP
So what solution for this. I meet this problem when deploy on GCP
try to edit config.php on Codeigniter to
$config['index_page'] = 'index.php';
@gesangseto .. Thanks for the quick solution.. I was reading this thread and just scroll to the bottom of this page and found this.. Same issue I have with my Raspberry Pi installation. Not able to login. edit config.php on /application/config $config['index_page'] = 'index.php';
i want add something, i have the issue but with no page to redirect, only "he requested URL was not found" gg here my config and how working now, this happens on clean install with the version 3.3.3 - 8e52bd in GNU/LINUX LMDE 4 Debbie, mariadb 10.3.27, apache 2.4.38
$ apt-get install apache2 mariadb-server php7.4-curl php7.4-mysql php7.4-gd php7.4-intl php7.4-openssl php4.4-dba
i enabled the IMPORTANTISSSIMO rewrite module
$ sudo a2enmod rewrite
comment this lines in the file /etc/apache2/mods-enabled/php7.4.conf
for use the directories in /home/myuser/public_html
for running php scripts.
# Running PHP scripts in user directories is disabled by default
#
# To re-enable PHP in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_flag engine Off
# </Directory>
#</IfModule>
Create your public_html $ mkdir /home/myuser/public_html
add in Apache2.conf
<Directory /home/myuser/public_html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<FilesMatch "^\.ht">
Require all granted
</FilesMatch>
change your web root in /etc/apache2/sites-enabled/000-default.conf
for
DocumentRoot /home/myuser/public_html
i installed in a subdir like /home/myuser/public_html/ospos
i just changed my path in this two .htaccess files
/.htaccess
the line
`RewriteRule "^(.*)$" "/public/" [R=301,L]`
for
`RewriteRule "^(.*)$" "ospos/public/" [R=301,L]`
and
/public/.htaccess
comment
`#RewriteRule ^(.*)$ index.php?/$1 [L]`
and uncomment
`RewriteRule ^(.*)$ /<OSPOS path>/public/index.php?/$1 [L]`
and change or your path like
`RewriteRule ^(.*)$ /ospos/public/index.php?/$1 [L]`
Background information
IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.
Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:
Installation information
Issue / Bug / Question / New Feature
I used the Local Install instructions from GitHub to complete the OSPOS install.
When accessing the OSPOS server from a local Windows 10 PC (running Firefox) I get the expected screen for entering the login credentials:
When I enter the default admin credentials of username "admin" and password "pointofsale" I am givent he following error:
After reading the error message I have started digging through all of the directory structure in /var/www/html and /var/www/html/public
I was not able to locate any sub-directory /login, but that is evidently what the system is looking for after entering the username and password.
SInce the credentials screen evidently looks for a /login path of some sort, I thought it best to make sure I could find it, but I cannot. (Is it possible I missed it in my digging? Maybe)
Where should this directory be located? Is there a path through the LOCAL installation process that might miss this sub-directory? (There were no errors reported when I unzipped the contents into /var/www/html )
Any guidance would be greatly appreciated
BKM