Use XAMPP PHP CLI in your command line

To use XAMPP’s PHP as default PHP in your command line to execute PHP commands from
your command line/prompt you have to just follow the simple steps mentioned below:
Open your terminal and open .bashrc file by following command:
sudo gedit ~/.bashrc
and just you have to add the following line at the end of your .bashrc file.
export PATH=/opt/lampp/bin:$PATH
Now restart your terminal and you are done!
Now type php -v to verify that it’s working.

Comments

Popular Posts