Configuration php ini file does not exist что делать
Перейти к содержимому

Configuration php ini file does not exist что делать

  • автор:

PHP Dockerfile

PHSTORM

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

    The Overflow Blog
Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.6.7.43483

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Find (or enable?!) php.ini on Ubuntu 10.10

Today I leave my comfort zone and want to edit my php.ini file and. guest what? It doesn’t exist!

Loaded Configuration File: (none)!

What the hell? I never saw this.. Is threre a way to create or enable the PHP ini?

I compiled it myself:

5 Answers 5

If you compiled PHP yourself without changing the default PHP ini path, it searches for php.ini in /usr/local/lib/ . So put php.ini in /usr/local/lib/php.ini .

In the PHP package, there is a php.ini-recommended which can be copied to that location (change dir to php-5.3.3):

Use find to find the file:

2> /dev/null just hides STDERR for you, due to permissions errors.

Tim McNamara's user avatar

Actually. Ubuntu 10.10 (maverick) does provide PHP 5.3.3 as part of the standard apt package system. If you install the package php-fpm you’ll even get the «new» FPM built in (which I expect is the whole reason you want 5.3.3 in the first place).

That said — if you built PHP yourself, and didn’t specify any special options to configure, then —prefix defaulted to /usr/local/ , and —with-config-file-path defaulted to /usr/local/lib . So php will look for /usr/local/lib/php.ini .

You can change this by setting (for example) —with-config-file-path=/usr/local/etc as an option to ./configure .

php-fpm.conf and php.ini does not exist #3

The text was updated successfully, but these errors were encountered:

Thanks for reporting the issue.

Hum, both php@5.6 and php@7.0 bottles are incomplete, where the ini files are missing. I don’t know why this happened. I’ll have to find the issue and rebuild the bottles.

In the meantime, can you try to install from source using brew install php@5.6 —build-from-source to see if that fixes the issue?

@wwp66650 Just install it by -s
@pgrenaud pls rebuild the bottles.

got exactly the same problem, I want to run php56 as FPM with a different port. Will try to run from source

Hum, both php@5.6 and php@7.0 bottles are incomplete, where the ini files are missing. I don’t know why this happened. I’ll have to find the issue and rebuild the bottles.

to be precise they’re not the ini file but the fpm conf ones

Yifanes tip solved my issue. thanks.

I’ve rebuild and deployed 2 new bottles, for php 5.6 and 7.0. Both should now have the missing files.

Please run brew update; brew reinstall php@5.6 to update your tap and reinstall php 5.6.

php.ini does not exist

I installed php using apt install php . I already tried to find the php.ini using the find command, but there is no file called php.ini anywhere.

5 Answers 5

I recently setup a wordpress server and ran into this same issue.

I used apt-get install php

Everything seemed to be normal except I could not find the php.ini file either. That file is usually located in /etc/php/7.0/apache2/php.ini

My solution, and I guess is also your solution would be that apache mod didn’t get installed for php. So all you need to run is apt-get install libapache2-mod-php

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *