Brighter LAMP: phpmyadmin installation

Install mcrypy for phpmyadmin dependencies:   # apt-get install php5-mcrypt   Now you need to restart apache for the changes to take effect   # /etc/init.d/apache2 restart   Now, on to the installation: # apt-get install phpmyadmin   Choose Apache2 when you're prompted     Answer yes to Configure database… Continue reading

Setting up a Debian box for development: making a LAMP: php5

Now P for PHP 5:   # apt-get install php5 php-pear php5-suhosin   # nano /etc/php5/apache2/php.ini   max_execution_time = 30 memory_limit = 64M error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR display_errors = Off log_errors = On error_log = /var/log/php.log register_globals = Off   Add mysql support. # apt-get install php5-mysql      

Setting up a Debian box for development: making a LAMP: mysql

Let's make a lamp   First M for Mysql: # apt-get install mysql-server The script will ask you to define the password for the root mysql user: Secure your mysql installation: # mysql_secure_installation   NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL       SERVERS IN PRODUCTION… Continue reading

Setting up a Debian box for development: making a LAMP: apache2

Add a user for the web stuff # adduser httpd Choose a simple (but secure) password. # apt-get install apache2 Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed:   apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3   libaprutil1-ldap Suggested packages:… Continue reading

Setting up a Debian box for development: linux installation

This will be a work in progress series of posts to help people get into the amazing world of developing applications on the web. Will also give me opportunity to fine tune my knowledge.   This will be the L in LAMP, here we go:   1. Download a Debian… Continue reading

MySQL: Recover root password

        # mysql -u root Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)   # mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)     1 Stop MySQL server: # service mysql start… Continue reading

Intranet: setup DJBDNS to respond for *.local to help development

  0. Follow instructions to setup a DNS Cache   1. Create an alias for eth0: # nano /etc/network/interfaces auto eth0:0 iface eth0:0 inet static address 10.0.0.251 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.254 2 . restart networking # /etc/init.d/networking restart   3. Use tinydns-conf to setup djbdns  #… Continue reading

Intranet: Setup a DNSCACHE for your network using DJBDNS

On this tutorial you will learn how to using DJBDNS to setup a DNS cache to help speed up queries for your local network.   I like using Debian, so that is the distribution I'll be using for most of my tutorials. Current version as of this, is Squeeze.  … Continue reading

Git: Prepare your repository – step 1

  Here I’ll explain how you can create a new repository for your projects and use GIT for your version control needs.     For this, I’ll assume everything is already installed (git and stuff). This also assumes you’re using an Operating System and not the Vermont thing.   Replace… Continue reading