Saturday, March 9, 2024

Laravel Password Change

 Run command

php artisan tinker


Then run command 

echo Hash::make('new_password');


Replace new_password with your password 

Copy the generated hash and use it in database.

Saturday, March 2, 2024

Orangehrm installation Error

 


If you are getting this error.

Please try to install with cli


php  installer/console install:on-existing-database
php  installer/console install:on-new-database

How to setup laravel project from github to local

 Copy folder in your xampp

Run :-

Composer install 

on that folder


Run this command to start server

php -S localhost:8000 -t public

Monday, February 12, 2024

Add Secure and httpOnly Flags to Every Set-Cookie Response in Apache httpd

 Add Secure and httpOnly Flags to Every Set-Cookie Response in Apache httpd


in htaccess file

Header always edit Set-Cookie (.*) "$1; HTTPOnly"   

Header always edit Set-Cookie (.*) "$1; Secure"



check open ssh version

ssh -V

update open ssh 



check apache version 

apache2 -v


For update apache on server 

     sudo apt update

    check vesion provided and have version on server

    apt-cache policy apache2

    sudo apt install apache2

Wednesday, January 24, 2024

Update Open SSH in ubuntu server

For updating open ssh on ubuntu please follow following steps:-


Go to writable directory to download open ssh. Please change open ssh version according to you want to download


sudo wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.0p1.tar.gz

sudo tar zxvf openssh-9.0p1.tar.gz

cd openssh-9.0p1 

sudo ./configure --prefix=/usr


// for resolving dependency that show when you run configiure command 

apt-get install build-essential

sudo apt-get install libssl-dev

sudo apt-get install libz-dev

// end resolving dependency



sudo make

sudo make install


ssh will install 


For checking ssh version


ssh -V