I can not run the phpinfo.php uploaded by FTP
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: I can not run the phpinfo.php uploaded by FTP
This method works!mehargags wrote:replace <yourdomain> with name of domain that you made in your VestaCP under which your PHPinfo file is residingCode: Select all
chown -R admin:admin /home/admin/web/<yourdomain>/public_html
However, I want to learn more from this case. Could you please help me to understand further?
Before I execute above command, the public_html folder has a value of "19" in the result of ls command:
Code: Select all
# ls -agh
total 8.0K
drwxr-x--x. 19 admin 4.0K May 20 07:33 public_html
Code: Select all
# ls -agh
total 8.0K
drwxr-x--x. 18 admin 4.0K May 20 07:38 public_html
In some cases, "can not execute uploaded php file" is a good thing, to prevent some bad usage. So maybe I should learn how to "swtich between these two status: can execute / can not execute". How can I turn back to previous status?
Thank you.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: I can not run the phpinfo.php uploaded by FTP
Please seebaijianpeng wrote: drwxr-x--x. 19 admin 4.0K May 20 07:33 public_html[/code]
What does this number mean? Where can I find more information about these nubmers?
Code: Select all
man ls
another quick source
http://superuser.com/questions/477858/w ... rw-r-1-mea