Hi, thanks for the advice with the permissions. However, this time it is not a related issue. I have checked and fixed all the permissions, but it is not making any difference. Also, I have tested the script on my localhost server and it is running without any issues. I see the problem is related to the htaccess file. While the htaccess syntax seems to be correct, it is not working as required. The htaccess is routing requests only to the public folder, but nowhere else. Could you check the root and public htaccess files and check their behavior. It seems like the requests are not reaching the right folder, but public only. This generating a server error. I will appreciate your help with this. Thank you.