1

Bash config files being read in contradiction to `man bash`

view story
linux-howto

http://unix.stackexchange.com – While trying to determine the differences between .bashrc and .bash_profile I notice that .bashrc is never read, and that .bash_profile is only read from SSH, but not from PHP. This seems to contradiction to the information in man bash. Could someone explain to me why this works as it does? The server seems to be a CentOS 5 variant. local$ ssh user@server Last login: Wed Jan 23 23:21:23 2013 from 1.2.3.4 $ cat .bashrc alias br='echo fromBR' $ cat .bash_profile alias bp='echo fromBP' $ br -bash: br: command not found $ bp fromBP $ cat public_html/bashtest.php <?php echo "hello\n"; echo (HowTos)