Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, November 01, 2006

How to Install WordPress On Debian Etch

Complete the following the steps:
  1. # apt-get install mysql
  2. # apt-get install apache2
  3. # apt-get install php5
  4. # apt-get install wordpress
  5. # mysql -u root
  6. mysql> CREATE DATABASE wordpress
  7. mysql> GRANT ALL PRIVILEGES ON *.* TO wordpress@localhost
    IDENTIFIED BY ‘wordpresspassword’ WITH GRANT OPTION;
  8. mysql> FLUSH PRIVILEGES;
  9. #mv wp-config-sample.php wp-config.php
  10. Edit wp-config.php to enter the correct setting:
    // ** MySQL settings ** //
    define('DB_NAME', 'wordpress');
    define('DB_USER', 'wordpress');
    define('DB_PASSWORD', 'wordpresspassword');
    define('DB_HOST', 'localhost');
  11. Add to /etc/apache2/sites-available/default:
    Alias /blog "/usr/share/wordpress/"
    <Directory "/usr/share/wordpress/">
    Options FollowSymLinks
    AllowOverride Limit Options FileInfo
    DirectoryIndex index.php
    </Directory>
  12. #/etc/init.d/apache2 restart
  13. Goto: http://localhost/blog/wp-admin/install.php
  14. Follow the instruction to create a login
  15. Use generated login to log in and start blogging.

Friday, October 20, 2006

Debian Etch

Just installed the latest Debian Etch (Debian 4.0) on my server using netinst cd. The netinst cd contains the base install and is about 150MB in size (better than downloading the full CD). Wow, is it me or is Etch much faster than Sarge.

Since netinst only has the base packages, I need to manually install everything I need, which is better because I get to keep the server lean. I need ssh, svn, apache, mysql, and perl (basically the whole LAMP thingy). Java, Tomcat, JUnit, ANT and Continuous Integration server will come later on. But I ran into a bit of a trouble. Since I installed from CD, I don't have the web mirrors set up. The fix is simple:

1.Add to /etc/apt/sources.list:
deb http://mirror.optus.net/debian/ etch main
2. apt-get update

Which threw up the following error:

# apt-get update
......
Fetched 5562B in 13s (421B/s)
Reading package lists... Done
W: There are no public key available for the following key IDs: A70DAF536070D3A1
W: You may want to run apt-get update to correct these problems

Bit of googling showed the fix is simple

3. apt-get install debian-archive-keyring
4. apt-get update

NOTE: You need to be root when you do all these.

Friday, January 06, 2006

Snippet://Linux/Command/Summary

System
uname -a
cat /proc/cpuinfo
cat /var/log/messages

Network
ifconfig
arp
arp -d entry : Clear cache
ping -a ip
echo atdt3333333 > /dev/ttyS1 : Send modem command to COM1. Dials '3333333'