PECL upload progress extension
Summary An extension to track progress of a file upload.
Download from – http://pecl.php.net/package/uploadprogress
http://pecl.php.net/get/uploadprogress-1.0.1.tgz
Extract the uploadprogress-1.0.1.tgz archive
$ phpize
$ ./configure
$ make
$ sudo make install
Add the extension to php.ini by adding this line extension=uploadprogress.so
Restart apache
/etc/init.d/httpd restart
To allow anonymous users to upload, it is recommended that a write-only directory be created within /var/ftp/pub/.
To do this, type:
mkdir /var/ftp/pub/upload
Next change the permissions so that anonymous users cannot see what is within the directory by typing:
chmod 730 /var/ftp/pub/upload
A long format listing of the directory should look like this:
drwx-wx— 2 root ftp 4096 Feb 13 20:05 upload
Additionally, under vsftpd, add the following line to the /etc/vsftpd/vsftpd.conf file:
Because FTP passes unencrypted usernames and passwords over insecure networks for authentication, it is a good idea to deny system users access to the server from their user accounts.
To disable user accounts in vsftpd, add the following directive to /etc/vsftpd/vsftpd.conf: