Kumaran_viji's avatar

Uploading laravel project to live server failed because of it has virus

My Server throws the following error while uploading my Laravel project.

The file you uploaded, Learner.zip, contains a virus so the upload was canceled: SiteLock-PHP-EVAL_REQUEST-md5-ytg.UNOFFICIAL FOUND

0 likes
8 replies
richard's avatar

I mean, which company is hosting your project? GoDaddy, Namecheap, DigitalOcean, etc

richard's avatar

How are you uploading the project? Through cPanel or an FTP client?

If you have an antivirus, scan through the projects folder to make sure it is safe.

blisssan's avatar

Hi Kumaran, Did you find any solution? I have the same problem. When i compress the laravel folder as zip the ClamXav & Avast detects the zip as Win.Trojan and my server rejects the file upload. I tried sending mail to another Gmail account the attachment succeeds but delivery fails returning the message the attachment contains potential threat. But when I scan the folder without zipping everything is normal. No threat is found.

Further I found that the only when the zip contains the vendor/symfony folder, the zip is recognized as threat. Excluding that vendor/symfony I can upload, i can attach in gmail.

Im in a Macintosh System. I ended up transferring files to my windows system and the upload was successful there. I scanned my entire mac but no threat was found and also i cleared composer cache and made a fresh install of the dependecies and still it was recognized as threat.

jimmck's avatar

Some networks consider Zip files in general unsafe and the security policy rejects them. Depending how they scan the file you might be able to just change the extension. Best is to check their file upload policy.

vtxmg's avatar

Use FileZilla. It works for me :)

Please or to participate in this conversation.