You are on page 1of 2

The default install will have one login which is: Username: root Password: password

Web Server Setup Instructions


Server with Command Line Linux Base Package Installed.

The following list of commands will take you through the process of installing the necessary components for a fully functioning webserver. 1. apt-get update 2. apt-get upgrade 3. apt-get install lighttpd a. y 4. apt-get install php5-cgi a. y 5. apt-get install php5-mysql a. y 6. apt-get install mysql-server mysql-client a. y i. password 7. netstat tap | grep mysql 8. vi /etc/php5/cgi/php.ini a. At the end of file add: i. cgi.fix_pathinfo = 1 1. * i to start edit 2. * esc to end edit 3. * dd to delete line (whilst not editing) 4. * del to delete character (whilst not editing) 5. * :w to write changes 6. * :q to exit 9. vi /etc/lighttpd/lighttpd.conf a. To server.modules add: i. mod_accesslog, ii. mod_fastcgi, b. At end of document add: i. fastcgi.server = ( .php => (( bin-path => /usr/bin/php5-cgi, socket => /tmp/php.socket ))) 10. /etc/init.d/lighttpd restart 11. cd /var/www 12. ls

13. wget http://wordpress.org/latest.tar.gz 14. apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpe php5-xsl php5-json a. y 15. /etc/init.d/lighttpd restart 16. ls 17. rm index.lighttpd.html 18. ls 19. tar xvf latest.tar.gz 20. ls 21. rm latest.tar.gz 22. cd wordpress/ 23. mv * .. 24. ls 25. cd .. 26. ls 27. rm wordpress/ -rf 28. mysql u root p a. password b. CREATE DATABASE wordpress; c. Exit 29. cd .. 30. chown www-data:www-data www 31. chown www-data:www-data www R 32. cd www 33. ls al 34. passwd www-data a. password b. password 35. apt-get install proftpd a. y b. standalone 36. vi /etc/proftpd/proftp.conf a. Edit DefaultRoot to: i. /var/www (Remove # from the start of the line) b. Edit User and Group to: i. www.data ii. www.data 37. /etc/init.d/proftpd restart

Users can now long into the server via ftp using www-data and password.

You might also like