I’m using shell to login to an ubuntu server. I want to enable curl in php.ini
I used the command whereis php.ini which shows /usr/bin/php as the location for php.ini.
However everytime I try to CD into php it says ‘php is not a directory’ How can I edit my php.ini?
Or do I need to create one somewhere else?
/usr/bin/php is the executable interpreter for PHP.
You need to locate your existing php.ini file:
You would expect to find it somewhere in /etc, so you might find this is quicker: