sudo apt install apache2
sudo apt install php php-xml php-mysql php-mongodb
sudo apt install mysql-server mysql-client libmysqlclient21

MYSQL SETTINGS
----------------------------------------------------------------------------------------------
mysql commands to execute in mysql client

sudo mysql
create user 'raj'@'localhost' identified by 'raj123';
create database caedb;
grant all privileges on *.* to 'raj'@'localhost';
flush privileges;
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
-----------------------------------------------------------------------------------------------

APACHE SETTINGS
------------------------------------------------------------------------------------------------
create directory apache
uncompress caedb.tar.gz file in apache folder
chmod 777 apache/TEMP folder


modify /etc/apache2/apache2.conf - change the /var/www/html/ to /home/raj/apache
modify /etc/apache2/envvars 	- APCHE_RUN_USER=raj
        		- APACHE_RUN_GROUP=raj

modify /etc/apache2/sites-available/0000-default.conf - DocumentRoot /var/www/html to /home/raj/apache

#enable decompression of gz files
sudo cp mod_headers.conf file to /etc/apache2/mods-available
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/mod_headers.conf
modify /etc/apache2/mods-available/mime.conf
		- AddType application/x-gzip .gz .tgz     - copy this line and modify to
                - AddType application/gzip .gz .tgz

		- AddEncoding x-gzip .gz .tgz     -   copy this line and modify to 
                - AddEncoding gzip .gz .tgz

sudo a2enmod rewrite
sudo a2enmod headers
-------------------------------------------------------------------------------------------------

PHP SETTINGS
------------------------------------------------------------------------------------------------
modify file - /etc/php/7.2/apache2/php.ini

session.auto_start = 1
display_errors = On
display_startup_errors = On
extension=mongodb.so
copy mongodb.so to /usr/lib/php/20210902
-----------------------------------------------------------------------------------------------
systemctl restart apache2

BASH SOURCE SETTINGS
-----------------------------------------------------------------------------------------------
edit /home/raj/.bashrc file and add the following lines
export WEB_ROOT=/home/rajkumar/apache
export PATH=$PATH:/home/rajkumar/apache/cgi-bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/rajkumar/apache/lib:/home/rajkumar/apache/mesalib
export CONNECTION_FILE=/home/rajkumar/apache/connection.xml
source .bashrc
-----------------------------------------------------------------------------------------------



https://www.dynaexamples.com/implicit/basic-examples
https://www.nhtsa.gov/crash-simulation-vehicle-models

execute the following command in console
putintodb tensile1.k











