Langsung ke konten utama

Postingan

Menampilkan postingan dari September, 2017

How to switch php in linux

I have 2 version php in my linux. Php version 5.3.8 and 7.0. So how i switch them? 1. check your php version $ php -v 2. and then, add path .bashrc $ nano ~/.bashrc 3. add the path that you install php in the end of line PATH=/opt/lampp/bin:$PATH 4. and save file 5. restart your terminal and check your php version