$ apt-get install apache2 $ apache2 -v $ a2emod $ /etc/init.d/apache2 restart $ apt-get install php5 $ php -v $ apt-get install mysql-server $ mysql -u root -p Enter Password: mysql> select version(); $ apt-get install php5-mysql $ vim /var/www/phpinfo.php $ apt-get install phpmyadmin $ apt-get install vsftpd Mount /var/www $ groupadd webadmin $ useradd -mG webadmin --shell /bin/bash newUser $ passwd newUser $ chgrp -R webadmin /var/www/website $ chmod 775 /var/www/website $ chmod -R g+s /var/www/website $ mount --bind /var/www /home/newUser/www
See Also
[CentOS] vsftpd 安裝與管理
vsftpd 設定啟動