
After successfully copying the application code on my server, Strapi admin panel page not found error came on the site url/admin. On Strapi documentation page it is advised to rebuild the admin panel after copying the application files to a new server or location before running the production server.
System Environment:
- Debian Server 11
- Node v20.11.1
- Apache 2.4
- PHP 7.4
- MySQL
Solution: Enter the application directory and enter the following command to build the admin panel again
npm run build
Source: https://forum.strapi.io/t/after-deploy-i-cant-access-admin-page/27585/2
Documentation: https://docs.strapi.io/dev-docs/deployment