0

I have installed Ampps and then add /usr/local/ampps/php/bin to /ect/environment and when I rebooted my laptop everything worked out, after that I used sudo apt-get install composer and it installed dependencies on ubuntu including php, now my php --ini is showing path to /usr/local/ampps/php/bin

how can I change it back to ampps folder?

ggoran
  • 630
  • 2
  • 12
  • 29

1 Answers1

2

You can add new path like this:

vi ~/.bashrc
export PATH=$PATH:/usr/local/ampps/php/bin

You can edit path whatever you like

Stoler
  • 49
  • 4
  • it worked, but I had to go with purge php7* and then this path was included to my path otherwise it was set on /opt... and i needed it to be in /usr/local... – ggoran Aug 26 '17 at 19:29