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
abdulrehman6 opened this issue Sep 17, 2017 · 49 comments
Closed

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

abdulrehman6 opened this issue Sep 17, 2017 · 49 comments

Comments

@abdulrehman6
Copy link

@abdulrehman6 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

@HotFireyDeath

This comment has been minimized.

Copy link

@HotFireyDeath HotFireyDeath 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

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Sep 18, 2017

Check your error_log too

@daN4cat daN4cat closed this Sep 18, 2017
@abdulrehman6

This comment has been minimized.

Copy link
Author

@abdulrehman6 abdulrehman6 commented Sep 18, 2017

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

@abdulrehman6

This comment has been minimized.

Copy link
Author

@abdulrehman6 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

This comment has been minimized.

Copy link
Collaborator

@odiea odiea commented Sep 18, 2017

Read the wiki about Xampp.

@jabonjovi

This comment has been minimized.

Copy link

@jabonjovi 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

This comment has been minimized.

Copy link
Author

@abdulrehman6 abdulrehman6 commented Oct 9, 2017

@daN4cat

This comment has been minimized.

Copy link
Collaborator

@daN4cat 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

This comment has been minimized.

Copy link

@jabonjovi jabonjovi commented Oct 12, 2017

Glad to help... :)

@MugishaLeonard

This comment has been minimized.

Copy link

@MugishaLeonard 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

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Oct 17, 2017

read your error_log

@jabonjovi

This comment has been minimized.

Copy link

@jabonjovi 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

This comment has been minimized.

Copy link

@MugishaLeonard MugishaLeonard commented Oct 25, 2017

@praty22

This comment has been minimized.

Copy link

@praty22 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

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Nov 14, 2017

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

@mckaygerhard

This comment was marked as off-topic.

Copy link
Contributor

@mckaygerhard mckaygerhard commented Nov 14, 2017

now i noted that always in "guindows" this error jajaja

@curiositymaster

This comment has been minimized.

Copy link

@curiositymaster 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

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Dec 24, 2017

error_log should contain some hint about the missing PHP extension

@code4jazz

This comment has been minimized.

Copy link

@code4jazz code4jazz commented Dec 27, 2017

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

@daN4cat

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Dec 27, 2017

Which version?

@odiea

This comment has been minimized.

Copy link
Collaborator

@odiea 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

This comment has been minimized.

Copy link

@ongeri 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

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Feb 28, 2018

Sqlite is not required

@daN4cat

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Feb 28, 2018

And you need ssl support for encryption.

@Fazalahad

This comment has been minimized.

Copy link

@Fazalahad 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

This comment has been minimized.

Copy link
Author

@abdulrehman6 abdulrehman6 commented Apr 23, 2018

@Fazalahad

This comment has been minimized.

Copy link

@Fazalahad Fazalahad commented Apr 23, 2018

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

@betocaceresa

This comment has been minimized.

Copy link

@betocaceresa 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

This comment has been minimized.

Copy link
Collaborator

@daN4cat 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

This comment has been minimized.

Copy link
Collaborator

@daN4cat daN4cat commented Apr 24, 2018

Please note that with 3.2.0 php_sockets is not required anymore.

@Fazalahad

This comment has been minimized.

Copy link

@Fazalahad Fazalahad commented Apr 25, 2018

@izeblood

This comment has been minimized.

Copy link

@izeblood izeblood commented Dec 12, 2018

Is 3.3 version is now available?

@MateosM97

This comment has been minimized.

Copy link

@MateosM97 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

This comment has been minimized.

Copy link
Collaborator

@odiea odiea commented Jan 9, 2019

What version of OSPOS are you using???

@MateosM97

This comment has been minimized.

Copy link

@MateosM97 MateosM97 commented Jan 9, 2019

3.0 I believe or 3.0.1

@odiea

This comment has been minimized.

Copy link
Collaborator

@odiea 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

This comment has been minimized.

Copy link
Collaborator

@odiea odiea commented Jan 9, 2019

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

@XYKOinfo

This comment has been minimized.

Copy link
Contributor

@XYKOinfo 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

This comment has been minimized.

Copy link

@Amchege 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

This comment has been minimized.

Copy link
Collaborator

@odiea 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

This comment has been minimized.

Copy link

@harisnizhom 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

This comment has been minimized.

Copy link
Member

@WebShells WebShells commented Jun 27, 2019

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

@harisnizhom

This comment has been minimized.

Copy link

@harisnizhom 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

This comment has been minimized.

Copy link
Collaborator

@odiea odiea commented Jun 27, 2019

@taha1bahrain21

This comment has been minimized.

Copy link

@taha1bahrain21 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

This comment has been minimized.

Copy link
Collaborator

@odiea odiea commented Jul 8, 2019

@criptozuca

This comment has been minimized.

Copy link

@criptozuca criptozuca commented Jul 11, 2019

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

regards

@amaddurrani

This comment has been minimized.

@patolinx

This comment has been minimized.

Copy link

@patolinx patolinx commented Aug 5, 2019

You must enable php 5.6, then check extensions.

Regards.

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

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.