If you can not edit files in/var/www surely will be by permission, in this tutorial is the solution and it should work, If it doesn't comment and I will try to give you a hand.
Ikiwa huwezi kuhariri faili katika/var/www hakika itakuwa kwa ruhusa, katika mafunzo haya ndio suluhisho na inapaswa kufanya kazi, Ikiwa haitoi maoni na nitajaribu kukupa mkono.