modified permmissions to 777 for 777.php