Apache Configuration Virtual Hosts(sites-available & sites-active):
Security: (SSH Keys):
- http://library.linode.com/web-servers/apache/installation/ubuntu-9.10-karmic#installingapachemodules
- http://cloudservers.rackspacecloud.com/index.php/Ubuntu-ApacheConfigurationLayout
- Steps:
- apt-get install apache2 apache2-doc apache2-utils
- apt-get install php5-suhosin
- apt-get install php5-mysql
- apt-get install libapache2-mod-php5 php5 php-pear php5-xcache
http://cloudservers.rackspacecloud.com/index.php/BasicCloudServerSecurityIPTables :
http://cloudservers.rackspacecloud.com/index.php/Sampleiptables_rulesetAPT-GET Repositories : For some reason the ubunto distro 9.04 didn’t have these added to its apt-get sources.list. So I added them.
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universeInstalling Ruby:
sudo apt-get install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev mkdir ~/src && cd ~/src wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz tar -xvf ruby-1.9.1-p0.tar.gz cd ruby-1.9.1-p0 ./configure make make test sudo make installInstall Git
- https://help.ubuntu.com/community/Git
- apt-get install git-core
sudo gem update –system sudo gem install railsInstall Ruby Mysql Modul
sudo gem install mysql
Install Pecl src : http://www.markfosteronline.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/
- sudo apt-get install php-pear
- sudo apt-get install php5-dev
- sudo apt-get install libcurl4-openssl-dev
- sudo pecl install pecl_http just hit enter and use defaults
Monitor ETH Port
- Use tcpdump -i eth0 to watch the ports
- apt-get install dtach
- ex: dtach -A sessionname program arguments
- press ctrl+\ to detach it from the terminal
- then (from another computer or terminal) run “dtach -a session
-
dtach -A MyBashSession bash -l
-
[press ctrl+]
-
dtach -a MyBashSession
- sudo /etc/init.d/service mysql start
- pecal install zip
- * If it fails because of some error on expected = “” sudo apt-get install libpcre3-dev