3V's
3V's

Reputation: 57

php.ini is missing/ help to install php

I am a beginner, and I am actually trying to install php because I have to run a file in .php

I installed the ZIP file avalaible here :https://windows.php.net/download#php-7.4 I installed the version 8.0.9, on Windows 10

Then when I run the file, there is an error which is :

Environment check

[*] The "json" PHP extension is installed.   

[*] The "phar" PHP extension is installed.

[*] Git is installed.

[X] The openssl PHP extension is required.

The extension already exists at: C:\Users\fabie\Downloads\php-8.0.9-nts-Win32-vs16-x64\ext\php_openssl.dll

To enable it, edit your php.ini configuration file and add the line: extension=C:\Users\fabie\Downloads\php-8.0.9-nts-Win32-vs16-x64\ext\php_openssl.dll

So i checked if there is any 'php.ini' in the repertory of php (which is C:\Users\fabie\Downloads\php-8.0.09-nts-Win32-vs16-x64)

There is only php.ini-developement and php-ini.production.

My question is : How to resolve this ? Do I have to install php on a diferent way ? Do I have to create a php.ini file ? Do I have to write on the -developement and -production files ?

Thanks

Upvotes: 2

Views: 19331

Answers (1)

Alexander van Oostenrijk
Alexander van Oostenrijk

Reputation: 4754

Make a copy of php.ini-development and rename it to php.ini (or choose php.ini-production if that suits your needs). These are sample configuration files you can base your own configuration on. Edit it to your liking afterwards.

Upvotes: 4

Related Questions