1 shutdown -h now 2 vim /etc/network/interfaces 3 vim /etc/network/interfaces 4 /etc/init.d/networking restart 5 ifconfig 6 /etc/init.d/networking stop 7 ifconfig 8 ifconfig eth0 down 9 ifconfig 10 /etc/init.d/networking start 11 ifconfig 12 ifconfig eth0 up 13 ifconfig 14 vim /etc/network/interfaces 15 ifconfig eth1 up 16 ifconfig 17 dhclient 18 vim /etc/hostname 19 reboot 20 ifconfig 21 ping 4.2.2.2 22 vim /etc/apt/sources.list 23 apt-get install openssh-server 24 ssh localhost 25 ifconfig grep eth0 26 ifconfig 27 ifconfig 28 vim /etc/network/interfaces 29 vim /etc/fstab 30 mount 31 mount -a 32 cat /etc/fstab 33 ping 10.0.0.1 34 reboot 35 mount 36 showmount -e 10.0.0.1 37 cat /etc/fstab 38 mount 39 apt-get install apache2 40 mkdir /var/phpsessions 41 mount -a 42 mount 43 ls -ld /var/phpsessions/ 44 ls -ld /var/www 45 ls /home 46 ls /var/www 47 netstat natlp | grep 80 48 /etc/init.d/apache2 status 49 netstat natlp | grep 80 50 netstat natlp | grep 80 51 netstat natlp | grep 80 52 mount 53 apt-get php 54 apt-get install php 55 vim /etc/apt/sources.list 56 apt-get update 57 apt-cache search php 58 apt-get install php5 59 apt-get info php5 60 apt-cache info php5 61 apt-cache show php5 62 apt-get update 63 apt-cache show php5 64 vim /etc/apt/sources.list 65 vim /etc/apt/sources.list 66 vim /etc/apt/sources.list 67 vim /etc/apt/sources.list 68 apt-get updaet 69 apt-get update 70 apt-cache show php5 71 apt-cache show php5 72 exit 73 apt-get install php5 74 apt cache-show php5 75 apt-cache show php5 76 apt-cache show php5 77 apt-get install php5 78 apt-cache show php5-adodb 79 apt-cache show php5-adodb 80 apt-cache show php5-cli 81 apt-get install php5-cli 82 apt-get install libapache2-mod-php5 php-pear php-cli php-common php5-curl php5-dev php5-ffmpeg php-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 83 apt-get install libapache2-mod-php5 php5-pear php-cli php-common php5-curl php5-dev php5-ffmpeg php-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 84 apt-get install libapache2-mod-php5 php-pear php-cli php-common php5-curl php5-dev php5-ffmpeg php-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 85 apt-get install libapache2-mod-php5 php-pear php5-cli php5-common php5-curl php5-dev php5-ffmpeg php-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 86 apt-get install libapache2-mod-php5 php-pear php5-cli php5-common php5-curl php5-dev php5-ffmpeg php5-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 87 vim /etc/apt/sources.list 88 apt-get install libapache2-mod-php5 php-pear php5-cli php5-common php5-curl php5-dev php5-ffmpeg php5-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 89 apt-get update 90 apt-get update 91 apt-cache show php5-gd 92 apt-get install libapache2-mod-php5 php-pear php5-cli php5-common php5-curl php5-dev php5-ffmpeg php5-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 93 apt-cache info php5-cli 94 apt-cache show php5-cli 95 apt-cache show php5-curl 96 apt-get install libapache2-mod-php5 php-pear php5-cli php5-common php5-curl php5-dev php5-ffmpeg php5-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 97 vim /etc/apt/sources.list 98 apt-get update 99 apt-get install libapache2-mod-php5 php-pear php5-cli php5-common php5-curl php5-dev php5-ffmpeg php5-gd php5-geoip php5-imagick php5-imap php5-mailparse php5-mcrypt php5-mhash php5-pspell php5-mysql php5-xmlrpc php5-xsl 100 dpkg -s php5-geoip 101 /etc/init.d/apache2 restart 102 netstat natlp | grep 80 103 updatedb & 104 locate access_log 105 vim /etc/network/interfaces 106 vim /root/.ssh/authorized_keys 107 reboot 108 reboot 109 mount 110 cat /etc/fstab 111 mount -a 112 mount 113 /etc/init.d/apache2 restart 114 apache2ctl -D DUMP_VHOSTS 115 apache2ctl -V 116 mount 117 vim /etc/apache2/httpd.conf 118 vim /etc/apache2/apache2.conf 119 ls /etc/apache2/sites-enabled/ 120 mount 121 ls /etc/apache2/sites-available/ 122 apache2ctl -D DUMP_VHOSTS 123 /etc/init.d/apache2 stop 124 /etc/init.d/apache2 start 125 apache2ctl -D DUMP_VHOSTS 126 netstat natlp | grep 80 127 apache2ctl -D DUMP_VHOSTS 128 /etc/apache2/sites-enabled/000-default 129 ls -l /etc/apache2/sites-enabled/000-default 130 cd /etc/apache2/sites-enabled/ 131 ls -l 132 for i in `ls /etc/apache2/sites-available/ | grep -v web0 | grep -v test. | grep -v dev. | grep -v default`; do a2ensite $i; done 133 apache2ctl -D DUMP_VHOSTS 134 mount 135 ls/etc/apache2/sites-available/ 136 ls /etc/apache2/sites-available/ 137 cd /etc/apache2/sites-available/ 138 cp web01.kelbymediagroup.com.conf web07.kelbymediagroup.com.conf 139 cp web01.kelbytraining.com.conf web07.kelbytraining.com.conf 140 cp web01.kelbytraining.com.conf web08.kelbytraining.com.conf 141 cp web01.kelbytraining.com.conf web09.kelbytraining.com.conf 142 cp web01.kelbymediagroup.com.conf web08.kelbymediagroup.com.conf 143 cp web01.kelbymediagroup.com.conf web09.kelbymediagroup.com.conf 144 cp web01.photoshopuser.com.conf web07.photoshopuser.com.conf 145 cp web01.photoshopuser.com.conf web08.photoshopuser.com.conf 146 cp web01.photoshopuser.com.conf web09.photoshopuser.com.conf 147 cp web01.photoshopworld.com.conf web07.photoshopworld.com.conf 148 cp web01.photoshopworld.com.conf web08.photoshopworld.com.conf 149 cp web01.photoshopworld.com.conf web09.photoshopworld.com.conf 150 history 151 vim web07.kelbymediagroup.com.conf 152 vim web08.kelbymediagroup.com.conf 153 vim web09.kelbymediagroup.com.conf 154 vim web07.kelbytraining.com.conf 155 vim web08.kelbytraining.com.conf 156 vim web09.kelbytraining.com.conf 157 vim web07.photoshopuser.com.conf 158 vim web08.photoshopuser.com.conf 159 vim web09.photoshopuser.com.conf 160 vim web07.photoshopworld.com.conf 161 vim web08.photoshopworld.com.conf 162 vim web09.photoshopworld.com.conf 163 /etc/init.d/apache2 restart 164 apache2ctl -D DUMP_VHOSTS 165 a2ensite web07.photoshopuser.com.conf 166 a2ensite web07.photoshopworld.com.conf 167 a2ensite web07.kelbymediagroup.com.conf 168 a2ensite web07.kelbytraining.com.conf 169 /etc/init.d/apache2 reload 170 apache2ctl -D DUMP_VHOSTS 171 vim /etc/apache2/sites-enabled/web07.kelbymediagroup.com.conf 172 dpkg --get-selections | grep ssl 173 dpkg --get-selections | grep apache 174 apt-get install libapache2-mod-python apache2.2-bin 175 vim /etc/apt/sources.list 176 apt-get install libapache2-mod-python apache2.2-bin 177 apt-get update 178 apt-get install libapache2-mod-python apache2.2-bin 179 /etc/init.d/apache2 restart 180 apache2ctl -D DUMP_VHOSTS 181 a2enmod ssl 182 /etc/init.d/apache2 restart 183 apache2ctl -D DUMP_VHOSTS 184 ls /etc/apache2/mods-enabled/ 185 ls -l /etc/apache2/mods-enabled/ 186 a2enmod python 187 dpkg --get-selections | grep python 188 apt-get install libapache2-mod-python 189 a2enmod python 190 a2enmod rewrite 191 /etc/init.d/apache2 restart 192 ls -l /etc/apache2/mods-enabled/ 193 ls -l /etc/apache2/mods-enabled/ | wc 194 a2enmod expires 195 /etc/init.d/apache2 restart 196 apache2ctl -D DUMP_VHOSTS 197 ls -l /etc/apache2/mods-enabled/ | wc 198 netstat natlp | grep 80 199 netstat natlp | grep 80 200 iptables stop 201 iptables -h 202 iptables -x 203 iptables -X 204 iptables -t nat -F 205 iptables -t mangle -F 206 iptables -t mangle -X 207 iptables -P INPUT ACCEPT 208 iptables -P FORWARD ACCEPT 209 iptables -P OUPUT ACCEPT 210 iptables -L 211 natstat natlp | grep 80 212 netstat natlp | grep 80 213 netstat natlp | grep 80 214 apt-get install iptarfg 215 apt-get install iptraf 216 iptraf 217 ifconfig 218 uptime 219 vim /etc/network/interfaces 220 /etc/init.d/networking restart 221 ifconfig -a 222 find / -name php.ini 223 exit 224 find / -name apc.php 225 exit 226 ls /etc/php5/conf.d/ 227 exit 228 top 229 exit 230 cd /etc/apache2/ 231 a2enmod apc 232 ls mods-available/ 233 apt-get install php-pear 234 pecl install apc 235 apt-get php5-apc 236 apt-get install php5-apc 237 /etc/init.d/apache2 restart 238 exit 239 exit 240 w 241 w 242 dpkg --get-selections | grep snmp 243 apt-get install snmp 244 dpkg --get-selections | grep snmp 245 apt-get install snmpd 246 dpkg --get-selections | grep snmp 247 vim /etc/snmp/snmpd.conf 248 chkconfigsnmpd 249 chkconfig snmpd 250 chkconfig --list | grep snmpd 251 /etc/init.d/snmpd restart 252 ifconfig 253 history 254 /etc/init.d/snmpd restart 255 mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf-bak 256 ls -la /etc/snmp/snmpd.conf* 257 /etc/init.d/snmpd restart 258 vim /etc/snmp.snmpd.conf 259 vim /etc/snmp/snmpd.conf 260 snmpwalk -v -c localhost 261 md5sum /etc/snmp/snmpd.conf 262 ps aux | grep snmp 263 /etc/init.d/snmpd stop 264 /etc/init.d/snmpd start 265 ps aux | grep snmp 266 vim /etc/sysctl.conf 267 vim /etc/default/snmpd 268 /etc/init.d/snmpd restart 269 ps aux | grep snmp 270 exit 271 top 272 exit 273 ls 274 /etc/init.d/nscd stop 275 apt-get install libnss-ldap 276 /etc/init.d/nscd stop 277 vi /etc/ldap/ldap.conf . 278 getent passwd 279 vi /etc/nsswitch.conf 280 getent passwd 281 getent passwd 282 vi /etc/nsswitch.conf 283 /etc/init.d/nscd start 284 getent passwd 285 getent passwd 286 /etc/init.d/nscd stop 287 vi /etc/pam_ldap.conf 288 getent passwd 289 getent passwd 290 vi /etc/pam.d/common-auth 291 vi /etc/pam.d/common-account 292 vi /etc/pam.d/common-auth 293 vi /etc/pam.d/common-password 294 vi /etc/pam.d/common-session 295 getent passwd 296 getent passwd 297 getent passwd 298 getent passwd 299 pwd 300 ls 301 cd /etc/pam.d/ 302 ls 303 cat common-password 304 cat common-session 305 getent passwd 306 /etc/init.d/nscd start 307 getent passwd 308 getent passwd 309 netstat -an 310 ping 10.0.0.1 311 getent passwd 312 getent 313 getent --help 314 getent passwd 315 getent passwd 316 tail /var/log/auth.log 317 vi /etc/nsswitch.conf 318 vi /etc/libnss-ldap.conf 319 getent passwd 320 getent passwd 321 tail /var/log/auth.log 322 tail /var/log/auth.log 323 vi /etc/libnss-ldap.conf 324 getent passwd 325 getent passwd 326 exit 327 exit 328 vi /etc/hosts 329 vi /etc/hosts 330 ifconfig -a 331 cat /etc/apache2/sites-enabled/web07.photoshopuser.com.conf 332 cat /etc/apache2/sites-enabled/web07.kelbytraining.com.conf 333 vi /etc/hosts 334 exit 335 vim /etc/apache2/httpd.conf 336 vim /etc/apache2/httpd.conf 337 locate httpd.conf 338 vim /etc/apache2/httpd.conf 339 history 340 vim /etc/apache2/apache2.conf 341 exit 342 vim /etc/apache2/conf.d/security 343 /etc/apache2/conf.d/localized-error-pages 344 ls /etc/apache2/conf.d/localized-error-pages 345 apache2ctl graceful 346 exit 347 vim /etc/apache2/conf.d/security 348 apache2ctl graceful 349 dpkg -s apache2 350 exit 351 apt-cache showpkg apache2 352 dpkg --getl-selections | grep openssl 353 dpkg --get-selections | grep openssl 354 dpkg -s openssl 355 apache2ctl -D DUMP_VHOSTS 356 a2dismod 357 cd /etc/apache2/sites-enabled 358 ls 359 ls -l 360 grep TRACE * 361 grep -i TRACE * 362 grep -i Signature * 363 vim /etc/apache2/conf.d/security 364 apache2ctl graceful 365 exit 366 /etc/init.d/exim4 restart 367 exit 368 w 369 to 370 top 371 w 372 netstat natlp 373 exit 374 w 375 exit 376 w 377 top 378 locate access_log 379 tail -f /var/log/apache2/other_vhosts_access.log 380 w 381 exit 382 w 383 exit 384 ls -ltr 385 pwd 386 exit 387 history 388 pwd 389 ls -ltr 390 history > kelbyWebserverSetupLog.txt