user723220
user723220

Reputation: 877

Location of php.ini?

I have to increase my memory limit, but there is no php.ini anywhere on my server.

When I query php_info(), it says it's in a folder called web/conf, but there is no such folder on my server. I looked in every folder.

Upvotes: 0

Views: 408

Answers (5)

Alvin567
Alvin567

Reputation: 335

C:\xampp\php\php.ini

I found this here:PHP.ini location

Upvotes: 0

Guillermo
Guillermo

Reputation: 947

Run the script:

<? phpinfo() ?>

And you'll see the path under the "Loaded Configuration File" value/row.

Upvotes: 3

Michiel
Michiel

Reputation: 8103

You can (re)install PHP by downloading this package and you can see a full tutorial over here. Goodluck!

Upvotes: 0

afuzzyllama
afuzzyllama

Reputation: 6548

If you don't have access to your php.ini file you can always set a configuration option at runtime with ini_set()

Upvotes: 0

Spyros
Spyros

Reputation: 48706

Try to do a

find / -name "php.ini"

to locate your php.ini. If you have php installed, it will be there. If not, reinstall php.

Upvotes: 0

Related Questions