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

thefuzzy0ne's avatar

Uploads are slow with `php artisan serve`

I'm wondering if anyone knows of a way to speed up uploads with php artisan serve. It's taking 15-20 seconds to upload a 3.5MB file. I'm creating an app for a friend which is intended to run on locally without a VM. I thought php artisan serve was a good solution. However, now I'm seeing that uploads are so painfully slow, I'm wondering if there's any way around this.

Thanks in advance for any comments.

0 likes
5 replies
zachleigh's avatar

I dont think so. The php server isnt really meant for real work. Consider installing a real server. What OS is it?

tomopongrac's avatar

and which version of php is... maybe with different version of php

thefuzzy0ne's avatar

Thanks for your replies.

I'm running PHP 7.0.5 NTS on Winblows 7. However, I think my friend might be running 5.6 and we may not be able to upgrade that due to fear of other scripts breaking.

I'm not sure this is a PHP issue. It parses a 17,000 line CSV in less than 4 seconds (and that includes inserting it into the database). The problem is just with uploading. If I switch over to Vagrant, the file uploads in less than a second but as I said, my friend has requested I don't use Vagrant.

thefuzzy0ne's avatar
thefuzzy0ne
OP
Best Answer
Level 6

Wow, how silly am I? (No comments please :P)

Turns out I had Vagrant running the entire time. After killing Vagrant and firing up the built in PHP server, file uploads are almost instantaneous. Thank you ever so much for your help and sorry for wasting your time.

2 likes

Please or to participate in this conversation.