Search notes:

~/.bash_profile

~/.bash_profile is the personal initialization file that is executed for login shells. (Compare ~/.bashrc)
~/.bash_profile should just load ~/.profile and then ~/.bashrc (in that order).

.bash_profile and .profile

When bash is invoked as a login shell, it tries to read ~/.bash_profile. If it does not exist, it tries to read from ~/.bash_login and if this file does not exist from ~/.profile instead.
Since ~/.bash_login should not exist, the .bash_profile file should include ~/.profile:
if [ -r ~/.profile ]; then
      . ~/.profile
fi

See also

/etc/profile

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/fh...', 1758207817, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/fhs/home/username/_bash_profile(50): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78