Unable to connect to Slim Framework and MySQL database

Hi Friends,

I am installing an Angular, Slim framework, MySQL website on a new VPS server.
Unfortunately I am not able to complete the installation as I encounter a forbidden error.

SQL connection, data retrieve works fine with direct PHP program, but I am unable to connect with database thru Angular and Slim framework.

Trying to check on a temporary ip address provided, displays forbidden error in the browser console,
POST https://43.225.xx.xxx/~schnexno/testrapidpack/rapidpackapi/user/login 403 (Forbidden)

The link defined in environment of angular
baseUrl: ‘https://43.225.xx.xx/~schnexno/testrapidpack/rapidpackapi

Linux OS
Kernel Ver 3.10.0-1160.90.1.el7.x86_64
Apache Version 2.4.57
MySQL Version 5.7.43
PHP Version 7.4 (downgraded from 8.0)
Slim Framework 4.0

Please help me out.

Dharmendra Nagaraj

Have you checked the server error logfiles?

No, I have not checked the server error logfiles.
Thank you Odan, I will check up with the service provider for access to error log files.

Hi Ordan,

I checked out with the error log file and found the following error. I will inform the host service provider to give permission to the folder, hope it may work. Thank you Ordan.

[Sat Aug 12 14:04:21.227003 2023] [core:crit] [pid 31405] (13)Permission denied: [client] AH00529: /home/schnexno/public_html/testrapidpack/rapidpackapi/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ‘/home/schnexno/public_html/testrapidpack/rapidpackapi/public/’ is executable, referer: https://43.225.xxx.xxx/~schnexno/testrapidpack/auth/login