PHP Codes Do Not Working!

Yestday I uploaded a php page to my php VPS hosting from hostgator, i uploaded the file via ‘Secure File Transfer Client’, and I log in my hosting using the username of ‘root’, and its related passwords.

After I uploaded the file, and run the php page, I can not let it working. After about 30 minutes thinking, I found that the hosting directory is belong to a username called ‘eyeglasses’, not ‘root’.

I logged in the centos system via SecureCRT, and run:

ls -l phpinfo.php
-rw-r--r-- 1 root root 28 Feb 24 17:54 phpinfo.php

My god, this file is belong to user name called root, and user group called root too. So I changed the username, and user group:

chown eyeglasses phpinfo.php
chgrp eyeglasses phpinfo.php

I have a check again:

ls -l phpinfo.php
-rw-r--r-- 1 eyeglasses eyeglasses 28 Feb 24 17:54 phpinfo.php

Now, I run the php page sucessfully!