View Single Post
Old 22nd February 2010, 01:36
ethanlifka ethanlifka is offline
Junior Member
Join Date: Aug 2008
Posts: 29
Thanks: 0
Thanked 6 Times in 4 Posts
Default Security - mod_php with FTP vs SuPHP or SuExec

I am trying to configure my site to be as secure as possible.

I do not want to set my upload folders to 777 so I have a few options.
Most recommend using SuPHP or SuExec.

A second option that I have not seen much discussion about is using php_ftp to upload files. This way uses the FTP account to upload files and no need for Suphp which is slow and no need for suExec.

My concern with SuPHP or SuExec is that scripts now can write to any folders that are 755 so now all you folders are writable by the web user. Where as the user nobody or apache cannot and that seems to be more secure to me. Although I don't have any real reason why.

I have no concern for chrooting or open_basedir since there will be no other hosted accounts on the server, which is usually the main reason for SuPHP and SuExec. Please correct me if I am wrong.

1. Mod_php with php_ftp uploads
2. SuPHP or SuExec.

So in conclusion I think if I do not have any other hosted accounts that using mod_php while using php_ftp is more secure then using SuPHP or SuExec.

Is this correct?
Please specify why or why not.

My Setup
CentOS 5.4 32bit Perfect Setup.

Any thoughts would be appreciated.

Reply With Quote
Sponsored Links