Skip to content

Instantly share code, notes, and snippets.

View psahalot's full-sized avatar

Puneet Sahalot psahalot

View GitHub Profile
@psahalot
psahalot / Install PHP5
Created September 24, 2012 01:06
Install PHP5
apt-get install php5
apt-get install libapache2-mod-php5
/etc/init.d/apache2 restart
@psahalot
psahalot / PHP Info
Created September 24, 2012 01:06
create test phpinfo file
cd /var/www/
vi mytest.php
@psahalot
psahalot / Install MySQL server
Created September 24, 2012 01:07
Install MySQL server
apt-get install mysql-server
@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