Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

I can not run the phpinfo.php uploaded by FTP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
12 posts
  • Previous
  • 1
  • 2
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: I can not run the phpinfo.php uploaded by FTP
  • Quote

Post by baijianpeng » Thu May 19, 2016 11:46 pm

mehargags wrote:

Code: Select all

chown -R admin:admin /home/admin/web/<yourdomain>/public_html
replace <yourdomain> with name of domain that you made in your VestaCP under which your PHPinfo file is residing
This method works!

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
After that command executed, the value changed to "18":

Code: Select all

# ls -agh
total 8.0K
drwxr-x--x. 18 admin 4.0K May 20 07:38 public_html
What does this number mean? Where can I find more information about these nubmers?

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.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: I can not run the phpinfo.php uploaded by FTP
  • Quote

Post by mehargags » Fri May 20, 2016 7:47 am

baijianpeng 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?
Please see

Code: Select all

man ls
Long format for ls
another quick source
http://superuser.com/questions/477858/w ... rw-r-1-mea
Top


Post Reply
  • Print view

12 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password