Thank you both for your replies…
shmshd Just realised that a htaccess file was already existing that was generated by Multi PHP to set PHP 8. I feel the presence of that file was not letting any modifications and so the installer failed to rename the htaccess.txt as it clash with the existing htaccess file. i copy pasted the contents from the file you have given to the preexisting htaccess file and its working now. Thanks a million
S4-John I dont think its on nginx server.