Administering files on a server through web via ftp with net2ftp
There are many methods for this, here is one handy:
- login to your server via SSH with "ec2-user"
- install FTP and Apache server, for example "yum install proftpd httpd"
- make sure the servers are running and will launch on next reboot:
" chkconfig proftpd on"
" chkconfig httpd on"
" service proftpd start"
" service httpd start"
- create directory "mkdir /home/ec2-user/public_html"
- configure Apache server with one virtualhost:
"
ServerAdmin YOUR E-MAIL
DocumentRoot /home/ec2-user/public_html
ServerName YOUR-HOSTNAME
ErrorLog logs/YOUR-HOSTNAME-error_log
CustomLog logs/YOUR-HOSTNAME-access_log combined
Options +Indexes
AllowOverride All
Order allow,deny
Allow from All
RewriteEngine On
"
- create 2 new directories "mkdir /home/ec2-user/public_html/net2ftp" and "mkdir /home/ec2-user/net2ftp"
- download net2ftp software to /home/ec2-user/net2ftp, for example with the command "wget http://www.net2ftp.com/download/net2ftp_v1.0.zip"
- unzip all the files on the server with "unzip net2ftp_v1.0.zip".
- copy net2ftp files with "cp -R /home/ec2-user/net2ftp/files_to_upload/* /home/ec2-user/public_html/net2ftp/."
Install net2ftp:
- The /temp directory should be chmodded to 777 with command "chmod /home/ec2-user/public_html/net2ftp/temp"
- Set your settings in the settings.inc.php file such as Admin panel password. If no password is entered, the Admin panel is not accessible.
- A database is only required if you want to log the actions of the users. To create the tables, execute the SQL query in the file "create_tables.sql". This can easily be done in PhpMyAdmin, the popular front-end to MySQL.
After that, you can browser your files by entering in browser "http://YOUR-IP/net2ftp"
Enjoy!