How to work around “is not an EA4 SCL PHP” error

“ea-php72” is not an EA4 SCL PHP

Update both .bash_profile and .bashrc files under your home/ directory as following:

export PATH=/opt/alt/php72/usr/bin:$PATH
alias ea-php72="/usr/local/bin/lsphp"

Use a real path to your PHP binary file if its not yours /usr/local/bin/lsphp

Run to apply updates:

source .bashrc
Read the rest

How to update .bashrc .bash_profile and get PS1 full path reflection

cd

Create .bash_profile if not exist yet

touch .bash_profile

The .bash_profile should contains the following:

if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

Append into the file .bashrc the following:

PS1="\[email protected]\h [\$PWD]# "

LS_OPTIONS='--color=tty -F -a -b -T 0';
export LS_OPTIONS;
alias ls='/bin/ls $LS_OPTIONS';
alias dir='/bin/ls $LS_OPTIONS --format=vertical';
alias vdir='/bin/ls $LS_OPTIONS --format=long';
alias d=dir;
alias v=vdir;
eval `dircolors -b`

Run next to get this updated:

source .bashrc
Read the rest