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

The installation is not correct, check your php.ini file. #1607

Closed
1 task done
abdulrehman6 opened this issue Sep 17, 2017 · 52 comments
Closed
1 task done

The installation is not correct, check your php.ini file. #1607

abdulrehman6 opened this issue Sep 17, 2017 · 52 comments

Comments

@abdulrehman6
Copy link

abdulrehman6 commented Sep 17, 2017

Hi All,

  • I'm reporting an issue of an unmodified OSPOS installation

Installation information

  • OSPOS version is: 3.1.1

  • (If applicable) Installation package for the LAMP/LEMP stack is: (e.g. WAMP, XAMPP)
    installed on Xampp

Expected behaviour

I have istalled a fresh copy and when i enter username and password it shows error message "instalation is not correct please check your php.ini file" below is the screen shot. it should login and show dashboard.
Please can you help on this issue.
thank you in advance

Actual behaviour

untitled

Steps to reproduce the issue

@Patra3
Copy link

Patra3 commented Sep 18, 2017

PHP needs to have php-gd, php-bcmath, php-intl, php-sockets, php-mcrypt and php-curl installed and enabled... as said in the README.md. Please verify you have all of these installed and enabled.

@daN4cat
Copy link
Collaborator

daN4cat commented Sep 18, 2017

Check your error_log too

@daN4cat daN4cat closed this as completed Sep 18, 2017
@abdulrehman6
Copy link
Author

abdulrehman6 commented Sep 18, 2017

@HotFireyDeath
How do i install those things which you asking, I am new in PHP.
Please help
thanks

@abdulrehman6
Copy link
Author

abdulrehman6 commented Sep 18, 2017

I have re-downloaded source code and installed but same error showing
"The installation is not correct, check your php.ini file."

@odiea
Copy link
Collaborator

odiea commented Sep 18, 2017

Read the wiki about Xampp.

@jabonjovi
Copy link

jabonjovi commented Oct 9, 2017

Hi.
I just read the comments and for me was my solution enable the list extensions on the file php.ini

extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
and…
extension=php_sockets.dll

by the way, this is my first contribution don't be mean with me.

@abdulrehman6
Copy link
Author

abdulrehman6 commented Oct 9, 2017

@daN4cat
Copy link
Collaborator

daN4cat commented Oct 9, 2017

@jabonjovi well done! I liked it. Somebody that reads the information available and sorts it out helping here. Thanks a lot for the help.

@jabonjovi
Copy link

jabonjovi commented Oct 12, 2017

Glad to help... :)

@MugishaLeonard
Copy link

MugishaLeonard commented Oct 17, 2017

open_source_point_of_sale_ospos_3 1 1_login_-_2017-10-17_14 43 07

I have tried removing the semicolons from php.ini file and still it cant work

@daN4cat
Copy link
Collaborator

daN4cat commented Oct 17, 2017

read your error_log

@jabonjovi
Copy link

jabonjovi commented Oct 18, 2017

Check the php version, it must be the 5.6, i tried whit others and only works on this version.

You try to make it work in web or in localhost?

@MugishaLeonard
Copy link

MugishaLeonard commented Oct 25, 2017

@praty22
Copy link

praty22 commented Nov 14, 2017

this error is coming due to some extension unavailibility,,
run this code and debug which extension is causing problem.

echo "GD: ", extension_loaded('gd') ? 'OK' : 'MISSING', '
';
echo "bcmath: ", extension_loaded('bcmath') ? 'OK' : 'MISSING', '
';
echo "intl: ", extension_loaded('intl') ? 'OK' : 'MISSING', '
';
echo "sockets: ", extension_loaded('sockets') ? 'OK' : 'MISSING', '
';
echo "mcrypt: ", extension_loaded('mcrypt') ? 'OK' : 'MISSING', '
';

@daN4cat
Copy link
Collaborator

daN4cat commented Nov 14, 2017

If you read the error_log you would get what's wrong...

@mckaygerhard

This comment has been minimized.

@curiositymaster
Copy link

curiositymaster commented Dec 14, 2017

@jabonjovi advice didn't work for me, so I decided to check what the problem is (as specified by @praty22)

I discovered the the problem (in my case) was Intl, so I used the steps in this stack overflow link to install intl: https://stackoverflow.com/questions/27886117/php-intl-installation-on-xampp
I hope this help someone in the future

@daN4cat
Copy link
Collaborator

daN4cat commented Dec 24, 2017

error_log should contain some hint about the missing PHP extension

@code4jazz
Copy link

code4jazz commented Dec 27, 2017

@daN4cat I didn't find error_log file in public folder...
image

@daN4cat
Copy link
Collaborator

daN4cat commented Dec 27, 2017

Which version?

@odiea
Copy link
Collaborator

odiea commented Dec 27, 2017

Version 3.2.0 The only place I can see if there is a log file is in the application folder but it never shows any errors.

@ongeri
Copy link

ongeri commented Feb 28, 2018

I enabled the required modules using the following command:
sudo phpenmod -v 7.1 -s apache2 bz2 curl fileinfo gettext gmp mbstring exif mysqli pdo_mysql sockets pdo_sqlite intl imap
For those that were missing I installed them using
sudo apt install php7.1-[module-name]
and then ran the command to enable it again

Finally restarted apache2 and it works

@daN4cat
Copy link
Collaborator

daN4cat commented Feb 28, 2018

Sqlite is not required

@daN4cat
Copy link
Collaborator

daN4cat commented Feb 28, 2018

And you need ssl support for encryption.

@Fazalahad
Copy link

Fazalahad commented Apr 23, 2018

wove finally i got sucess. Thanks . HOW I SOLVE THIS

  1. Changed the following commonds in c:\xammp\php\php.ini file Enabling them all(removing simicolon)
    extension=php_bz2.dll
    extension=php_curl.dll
    extension=php_fileinfo.dll
    extension=php_gd2.dll
    extension=php_gettext.dll
    extension=php_gmp.dll
    extension=php_intl.dll
    extension=php_imap.dll
    extension=php_mbstring.dll
    extension=php_exif.dll
    extension=php_mysql.dll
    extension=php_mysqli.dll
    extension=php_pdo_mysql.dll
    extension=php_pdo_sqlite.dll
    and…
    extension=php_sockets.dll
    Then i stop the Apache server and restart them((its important to do this))
    i got to access the http://localhost/pos/public/home page and really shouted from happiness.
    Please it's the best solution for those who are facing php ini problem
    phpini problem

@abdulrehman6
Copy link
Author

abdulrehman6 commented Apr 23, 2018

@Fazalahad
Copy link

Fazalahad commented Apr 23, 2018

Thank you dear. Allah Give you more and more and on and on

@betocaceresa
Copy link

betocaceresa commented Apr 23, 2018

Amigos, en mi caso estoy con xampp y lo solucioné yendo a la ruta xampp/php/php.ini y luego de ubicar la linea 922 de

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

He agregado:

extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll

extension=php_sockets.dll

@daN4cat
Copy link
Collaborator

daN4cat commented Apr 24, 2018

@Fazalahad why do you use 3.1.1? 3.2.0 is already out and 3.2.1 will soon follow to fix a couple of bugs.

@daN4cat
Copy link
Collaborator

daN4cat commented Apr 24, 2018

Please note that with 3.2.0 php_sockets is not required anymore.

@Fazalahad
Copy link

Fazalahad commented Apr 25, 2018

@izeblood
Copy link

izeblood commented Dec 12, 2018

Is 3.3 version is now available?

@MateosM97
Copy link

MateosM97 commented Jan 9, 2019

Hello, I already enabled the extensions and added the ones that fantasized me, I do not know if it is because of my version of xampp or what the problem would be, but the program keeps coming up with the error of The installation is not correct, check your php.ini file .
php

@odiea
Copy link
Collaborator

odiea commented Jan 9, 2019

What version of OSPOS are you using???

@MateosM97
Copy link

MateosM97 commented Jan 9, 2019

3.0 I believe or 3.0.1

@odiea
Copy link
Collaborator

odiea commented Jan 9, 2019

'bcmath', 'intl', 'gd', 'sockets', 'mcrypt', 'mbstring', 'curl' were the required extensions on earlier versions. Have you restarted Apache since you enabled the extensions.

@odiea
Copy link
Collaborator

odiea commented Jan 9, 2019

The login screen will tell you what version you are using.

@XYKOinfo
Copy link
Contributor

XYKOinfo commented Jan 10, 2019

I was seeing the list of extensions you posted on any of them is "mcrypt". try to put in php.ini (my) had not in the list I simply created a line with it "extension = mcrypt" and it worked.

@Amchege
Copy link

Amchege commented Jun 26, 2019

hello,
i have tried all the discussions here but unfortunately i still find the error not going
"The installation is not correct, check your php.ini file.
A database migration to 3.3.0 will start after login."

@odiea
Copy link
Collaborator

odiea commented Jun 26, 2019

No idea about what version you are trying to install. Possibly 3.3.0. Also your enabled PHP ext would be of help.

@harisnizhom
Copy link

harisnizhom commented Jun 27, 2019

I have followed according to the above, and have successfully entered into the home page but the display appears like this

OSPOS

fyi: i'm using ospos 3.3.0

@WebShells
Copy link
Member

WebShells commented Jun 27, 2019

@harisnizhom your installation is missing the css files... You did the installation from master?

@harisnizhom
Copy link

harisnizhom commented Jun 27, 2019

I have installed application from opensource-master.zip version 3.2.3 somehow the system updates to 3.3.0

@odiea
Copy link
Collaborator

odiea commented Jun 27, 2019

You will need to do the following to get it to work properly.
https://github.com/opensourcepos/opensourcepos/wiki/Installing-%22opensourcepos%22-in-windows-and-localhost

@taha1bahrain21
Copy link

taha1bahrain21 commented Jul 8, 2019

I am getting this error
( Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php )
i am using xampp in windows
url location ( http://127.0.0.1/open/public/ )
Capture

@odiea
Copy link
Collaborator

odiea commented Jul 8, 2019

@criptozuca
Copy link

criptozuca commented Jul 11, 2019

Thank you!
finally with these extensions its working beatifully.
version 3.2.3

regards

@amaddurrani
Copy link

amaddurrani commented Jul 23, 2019

@patolinx
Copy link

patolinx commented Aug 5, 2019

You must enable php 5.6, then check extensions.

Regards.

@khadev
Copy link

khadev commented Mar 12, 2020

1-you must edit php.ini file on xampp c:\xammp\php\php.ini
2-than downloading the following DLL file from https://fr.dll-files.com/ :
oci.dll
fbclient.dll
libsodium.dll
3-after copy the dll file on C:\Windows\System32
that's all

@charleslengwe
Copy link

charleslengwe commented Dec 1, 2021

#1607
abdulrehman6 opened this issue on Sep 18, 2017 · 50 comments
Comments
@abdulrehman6 abdulrehman6 commented on Sep 18, 2017 •
Hi All,

I'm reporting an issue of an unmodified OSPOS installation
Installation information
OSPOS version is: 3.1.1

(If applicable) Installation package for the LAMP/LEMP stack is: (e.g. WAMP, XAMPP)
installed on Xampp

Expected behaviour
I have istalled a fresh copy and when i enter username and password it shows error message "instalation is not correct please check your php.ini file" below is the screen shot. it should login and show dashboard.
Please can you help on this issue.
thank you in advance

Actual behaviour
untitled

Steps to reproduce the issue
@Patra3 Patra3 commented on Sep 18, 2017 •
PHP needs to have php-gd, php-bcmath, php-intl, php-sockets, php-mcrypt and php-curl installed and enabled... as said in the README.md. Please verify you have all of these installed and enabled.

@daN4cat daN4cat commented on Sep 18, 2017
Check your error_log too

@daN4cat daN4cat closed this on Sep 18, 2017
@abdulrehman6 abdulrehman6 commented on Sep 18, 2017
@HotFireyDeath
How do i install those things which you asking, I am new in PHP.
Please help
thanks

@abdulrehman6 abdulrehman6 commented on Sep 18, 2017
I have re-downloaded source code and installed but same error showing
"The installation is not correct, check your php.ini file."

@odiea odiea commented on Sep 18, 2017
Read the wiki about Xampp.

@jabonjovi jabonjovi commented on Oct 9, 2017 •
Hi.
I just read the comments and for me was my solution enable the list extensions on the file php.ini

extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
and…
extension=php_sockets.dll

by the way, this is my first contribution don't be mean with me.

@abdulrehman6 abdulrehman6 commented on Oct 9, 2017
Thanks its working

@daN4cat daN4cat commented on Oct 9, 2017
@jabonjovi well done! I liked it. Somebody that reads the information available and sorts it out helping here. Thanks a lot for the help.

@odiea odiea mentioned this issue on Oct 9, 2017
The installation is not correct, check your php.ini file #1592
Closed
@jabonjovi jabonjovi commented on Oct 13, 2017
Glad to help... :)

@MugishaLeonard MugishaLeonard commented on Oct 17, 2017
open_source_point_of_sale_ospos_3 1 1_login_-_2017-10-17_14 43 07

I have tried removing the semicolons from php.ini file and still it cant work

@daN4cat daN4cat commented on Oct 17, 2017
read your error_log

@jabonjovi jabonjovi commented on Oct 18, 2017
Check the php version, it must be the 5.6, i tried whit others and only works on this version.

You try to make it work in web or in localhost?

@MugishaLeonard MugishaLeonard commented on Oct 25, 2017
my php version is 5.6.31

@praty22 praty22 commented on Nov 14, 2017 •
this error is coming due to some extension unavailibility,,
run this code and debug which extension is causing problem.

echo "GD: ", extension_loaded('gd') ? 'OK' : 'MISSING', '
';
echo "bcmath: ", extension_loaded('bcmath') ? 'OK' : 'MISSING', '
';
echo "intl: ", extension_loaded('intl') ? 'OK' : 'MISSING', '
';
echo "sockets: ", extension_loaded('sockets') ? 'OK' : 'MISSING', '
';
echo "mcrypt: ", extension_loaded('mcrypt') ? 'OK' : 'MISSING', '
';

@daN4cat daN4cat commented on Nov 14, 2017
If you read the error_log you would get what's wrong...

This comment was marked as off-topic.
Show comment
@curiositymaster curiositymaster commented on Dec 14, 2017 •
@jabonjovi advice didn't work for me, so I decided to check what the problem is (as specified by @praty22)

I discovered the the problem (in my case) was Intl, so I used the steps in this stack overflow link to install intl: https://stackoverflow.com/questions/27886117/php-intl-installation-on-xampp
I hope this help someone in the future

@daN4cat daN4cat commented on Dec 24, 2017
error_log should contain some hint about the missing PHP extension

@code4jazz code4jazz commented on Dec 27, 2017
@daN4cat I didn't find error_log file in public folder...
image

@daN4cat daN4cat commented on Dec 27, 2017
Which version?

@odiea odiea commented on Dec 27, 2017
Version 3.2.0 The only place I can see if there is a log file is in the application folder but it never shows any errors.

@ongeri ongeri commented on Feb 28, 2018
I enabled the required modules using the following command:
sudo phpenmod -v 7.1 -s apache2 bz2 curl fileinfo gettext gmp mbstring exif mysqli pdo_mysql sockets pdo_sqlite intl imap
For those that were missing I installed them using
sudo apt install php7.1-[module-name]
and then ran the command to enable it again

Finally restarted apache2 and it works

@daN4cat daN4cat commented on Feb 28, 2018
Sqlite is not required

@daN4cat daN4cat commented on Feb 28, 2018
And you need ssl support for encryption.

@Fazalahad Fazalahad commented on Apr 23, 2018 •
wove finally i got sucess. Thanks . HOW I SOLVE THIS

Changed the following commonds in c:\xammp\php\php.ini file Enabling them all(removing simicolon)
extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
and…
extension=php_sockets.dll
Then i stop the Apache server and restart them((its important to do this))
i got to access the http://localhost/pos/public page and really

@odiea
Copy link
Collaborator

odiea commented Dec 1, 2021

What are you showing us that you can copy and paste?

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