phplinuxubuntupathampps

Ubuntu replace PHP path


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?


Solution

  • You can add new path like this:

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

    You can edit path whatever you like