Skip to content

Instantly share code, notes, and snippets.

View psahalot's full-sized avatar

Puneet Sahalot psahalot

View GitHub Profile
@psahalot
psahalot / PHP5 MySQL
Created September 24, 2012 01:07
Install MySQL for PHP5
apt-get install php5-mysql
apt-get install libapache2-mod-auth-mysql
@psahalot
psahalot / phpMyAdmin
Created September 24, 2012 01:08
Install phpMyAdmin
apt-get install phpmyadmin
@psahalot
psahalot / Configure Apache
Created September 24, 2012 01:10
configure apache for phpmyadmin
ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
/etc/init.d/apache2 reload
@psahalot
psahalot / Download WP
Created September 24, 2012 01:11
Download WordPress and extract
cd
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz -C /var/www
@psahalot
psahalot / move WP to root
Created September 24, 2012 01:12
move WP to root
cp -avr /var/www/wordpress/* /var/www
rm -rf /var/www/wordpress
@psahalot
psahalot / File permissions
Created September 24, 2012 01:13
Grant access to apache user
sudo chown -R www-data /var/www
sudo chmod -R 755 www-data /var/www
@psahalot
psahalot / Edit Apache default file
Created September 24, 2012 01:14
Make htaccess available for apache
sudo vim /etc/apache2/sites-available/default
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
sudo /etc/init.d/apache2 restart
<?php
/*
Name: Thesis BizLife
Author: Puneet Sahalot
Version: 1.0
Description: Build your portfolio or business site quickly with a few clicks. It's all possible with the new beast, Thesis 2.0
Class: thesis_bizlife
*/