Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kessysenlong's avatar

Hosting laravel application on cpanel- unnecessary files and folders

Hi, I want to host my laravel journal archiving application on cpanel but there are way too many files in the project directory. What files and folders are unnecessary and can be removed from the project?

Thanks.

0 likes
5 replies
D9705996's avatar

Why is this an issue for you? The folders and files are going to be required for your app to work.

You might be able to to remove some of the development folders like tests bu this wont make much impact.

kessysenlong's avatar

@D9705996 - Yeah it's just I was worried about disk usage limit on cpanel. I removed the .git folder (3k files) and the app still works. I read I could take out some unnecessary files in the vendor folder (9k files) too, just not sure of which ones to remove.

Thanks, I'll delete the tests folder and go ahead

D9705996's avatar

Do not mess about in the vendor folder. This is managed by composer and there si a high chance you will break your application if you do.

Please or to participate in this conversation.