Re: how to make centos safty(php+mysql)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 1/03/2011, at 4:51 AM, Yang Yang wrote:

> hi,every
> 
> i have a php project and use centos to go
> 
> and how to make folder's privilage and make it saft
> 
> like: /home/htdocs/test
> 
> chown -R www:www /home/htdocs/test
> 
> chmod -R 644 /home/htdocs/test

Almost correct, but directories also need the 'execute' permission. 644 for files, 755 for directories.

chmod 755 /home/htdocs/test/


You seem new to this, so I should also point you to the following, which will give you a good head-start.

http://phpsec.org/projects/guide/
http://www.owasp.org/index.php/Main_Page

and this is a tutorial for PHP in a Chinese context, although on a Windows platform.

http://www.herongyang.com/PHP-Chinese/

åèï
èé
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux