Question:
any linux expert help in php.ini location?
anonymous
2013-11-01 00:42:32 UTC
plz Help any linux expert. i have linuux but copy function is disabled.

i want to edit php.ini file. bt didnt find where it is.

phpinfo() is showing php.ini file in usr/lib....
bt there is no usr folder. so how to edit php.ini file

chkd dis via phpinfo
System
Linux amaze.hostoxide.com
3.8.13-xxxx-grs-ipv6-64-vps #3
SMP Fri May 31 13:29:13 CEST
2013 x86_64
Four answers:
Nick
2013-11-01 01:00:11 UTC
I'm no expert in Linux but have you tried /usr/lib? Did you forget the / before usr? Linux uses the preceding / where you don't need that in Windows.
Neerp
2013-11-01 08:04:35 UTC
Every linux distribution had a /usr/lib directory.



Where the php.ini file goes depends on where it was told to go when it was compiled. Different linux distributions will compile it to go in different places as no one can seem to agree where it should go and where it should not. I always put it in the lib directory below the php program directory, which I always put in /usr/local. But different distros put it in different places.



It is very possible the files does not exist because current version of php do not need a php.ini file unless there are specific settings you want to put there. I usually compile in all the features I need so I don't use a php.ini.



In your case, find the /usr/lib directory, and create a php.ini file, and then you can put whatever you want in it.
anto
2013-11-01 02:29:18 UTC
Try locate command:

$ locate php.ini

/etc/php.ini
anonymous
2014-12-06 01:09:57 UTC
complicated thing. seek from google or bing. that can assist!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...