Wednesday, November 9, 2011

CentOS php ftp installation


CentOS
yum install nano
yum install php

-- restart Apache!!!!
apachectl graceful
apachectl restart

echo "<?php phpinfo(); ?>" > /var/www/html/1.php

put in borowser 209.25.133.14/1.php

FTP: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=4740.
yum install vsftpd
/etc/init.d/vsftpd restart
chkconfig vsftpd on
service vsftpd status

nano /etc/vsftpd/user_list
>> add "dev" user
>> comment all other users

userlist_deny=NO

anonymous_enable=NO

chroot_list_enable=YES
chroot_local_user=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list

ftpd_banner=Welcome to Maritime FTP service.

No comments:

Post a Comment