Dear friends.
My problem is PHP on my server so slow.
Here is specifications of my dedicated server, from serverloft.
Quad Core - MD Opteron 2344HE
4 GB -
DDR2-667 ECC Registered
2 x SATA II 7,200 rpm
And here is my dedicated server software
Windows 2008 web edition 64 bit
iis7 on Plesk 8.6
Php 5.2.6
I tested my php.ini file there is no problem.
I have a small code to test my php
it is;
<?php
$sure_baslangici = microtime(true);
for ($i=0;$i<500;$i++) {
$j++;
// belki başka bi for dongüsü?
for ($k=0;$k<10000;$k++) {
$j++;}
// belki başka bi for dongüsü?
}
$sure_bitimi = microtime(true);
$sure = $sure_bitimi - $sure_baslangici;
echo "Bekleme süresi: $sure saniye.\n";
phpinfo();
?>
This small loop takes, 1.61774396896 second on my dedicated.
You can see ; http://sarar.kz/deneme.php
And it tooks about 0.60 second on my personal laptop. This is about 1 second better than my dedicated
I have tried php as, CGI / FASTCGI / ISAPI EXTENSION
They all retuned near values.
I also tried with Dedicated Application Pool but there are no big difference.
What could be problem?
Please help me.
Best Regards Deniz Han