February 9, 2023


apache is called apache2 in debian/ubuntu and httpd in Centos/Fedora, it lives in /etc/apache2/ Tutorials basic tutorial here more advanced one here securing apache here Install apt-get install apache2 libapache2-mod-php5 mysql-server php5-mysql php5 openssl ssl-certapt-get install apache2 libapache2-mod-php5 mysql-server php5-mysql php5 openssl ssl-cert you normally create some kind of “Virtual Host” that points to where […]


hacks and tips and tricks what it is what it does .bashrc export PS1=’\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: ‘ ifconfig eth0 netmask up brings interface eth0 up with ip of and netmask of, you may still have to add a route if you run route and you don’t see a last entry like “default […]


install .htaccess apt-get install htpasswdapt-get install htpasswd add user cd /where/your/secret/.htpasswd/file/will/be/created htpasswd -c .htpasswd usertocreate htpasswd .htpasswd anotherusercd /where/your/secret/.htpasswd/file/will/be/created htpasswd -c .htpasswd usertocreate htpasswd .htpasswd anotheruser create .htaccess file in the directory you want to control access, create a new file like vi .htaccess AuthUserFile /pathtowhereyouwantthepasswordfile/.htpasswd AuthName "Authorization Required" AuthType Basic require valid-user chown www-data.www-data […]


First install the server. It will prompt you to enter a root password. apt-get install mysql-server mysql-clientapt-get install mysql-server mysql-client If you want a web-based “gui” manager for your server too, do: apt-get install phpmyadminapt-get install phpmyadmin what it is what it does create database somedatabasename;create database somedatabasename; creates a new database create table bikes […]

linux commands

  command what it does awk ‘!/virus=””/’ > sometextfile pipes notification of nasties to a text file called sometextfile cat /proc/meminfo shows your memory stuff (or just type “free”) cat /proc/version shows what version of Linux you’re running</td chmod -R 777 * changes ownership of all the files below where you are to read-write-executable…not normally […]