Wondering if anyone else is seeing this. I’m normally used to FreeBSD not Ubuntu (13.04) so I’m not even sure if this is normal
Even when running a static .html file with php it normally takes 20 ms to do-
root@lb01:xxx# time php ok.html OK real 0m0.022s user 0m0.008s sys 0m0.012s root@lb01:xxx# time php ok.html OK real 0m0.020s user 0m0.012s sys 0m0.004s
Using real PHP files are even worse. This is on a 512 MB droplet.
On my FreeBSD machine (dedicated) it works as expected-
root@lb1:xxx # time php ok.html OK0.023u 0.005s 0:00.02 100.0% 8470+7210k 0+0io 0pf+0w root@lb1:xxx # time php ok.html OK0.028u 0.007s 0:00.03 66.6% 8470+7210k 0+0io 0pf+0w
The BSD box has a lot more extensions loaded than the Ubuntu one but it does have the same ones Ubuntu does have loaded. That is- pdo, apc, gd, memcache, mysql, mysqli, pdo_mysql, xdebug, mongo. When I remove all extensions it doesn’t make a huge difference.
As well I don’t believe it’s related to the disk. I tested it and it was OK. My FreeBSD box uses normal HDDs. Is this just a difference that should be normal?
P.S. PHP versions: Ubuntu 5.4.6-1ubuntu1.2 FreeBSD: 5.4.10 (built from ports Apr 22)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.