Tuesday, April 29, 2008

Ubuntu as LAMP server

Installing Ubuntu as LAMP (Linux, Apache, Mysql, PHP - Perl - Python) Server is very easy. As it already has the choice available if you installing your Ubuntu using Ubuntu server CD. It'll install Apache with mod_php and PHP and Mysql along with php_mysql module. All tight up together. Not like in Fedora/CentOS/Redhat where you install Apache without PHP, which may lead to miss some configuration.

Simple and straight forward configuration is available on UbuntuGeek.com

5 Minutes Squid

Using Fedora Core 4
based on Red Hat Magazine | Squid in 5 minutes
All command running as root
  1. Check if squid is available:
    # rpm -q squid
  2. If squid available, it'll output something like
    squid-2.5.STABLE9-7
    if not then execute the command:
    # yum install squid
  3. Configure squid: (just added on the last line)
    # cp /etc/squid/squid.conf ~
    # vi /etc/squid/squid.conf
    http_port 8080
    acl intranet src 192.168.0.0/24
    http_access allow intranet
  4. Info:
    Our proxy server running on port 8080 so make sure you open that port on firewall
    and the proxy only allow connection from network 192.168.0.0/24
  5. Turning on Squid:
    # service squid start
    # chkconfig squid on
  6. Check Squid status:
    # service squid status
    # tail -f /var/log/messages/
    # netstat -pant | grep 8080