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

Wednesday, March 19, 2008

Since I almost forgot this blog login and password so I started to blog my linux server experience on another free web hosting. So visit am3nblog if you want to know what missed. Most of blog is about centos, qmailtoaster and tips about linux.

Thursday, February 21, 2008

last week my friend doing same changes on his centos box, try to apply new samba config. somehow he forgot to do it. and samba can't be restarted. so he restart the whole server. but then after restarting the server, it wont boot properly.

after checking what happen it seems after loading network driver, kernel sudddenly panic.
so I switch to init 1, disable network service. restart the box, and whala.... centos recognized the system as a new box, as kudzu pop-up and asking do you want to configure a new network card, a new mouse, etc, etc....

after doing same configuration on network and samba daemon. the box boot up properly.
yuuu hu....

Saturday, March 22, 2003

for ftp server installed proftpd
for phpnuke already installed and running well
I am also installing phpbb = php script for forum
nice!!!
slackware just announce their new release!!!
slackware 9.0
now I am downloading it next i'll upgrade my system

yu.....hu..........!!!!

Friday, February 07, 2003

oh ya almost forgotten, I am also already installed mirc server and ftp server
tapi gue lupa nama packagenya apa???
trial and configuration for linuxserver is stopped for now because I'm concentrating on linuxdesktop and my linuxserver does'nt have powersupply
(dikanibal buat keperluan user)

yang terakhir kali di kerjakan akhir bulan Januari 2003 adalah instalasi phpnuke versi terakhir dengan konfigurasi utk website internal tsp

Friday, January 17, 2003

now in myserv packages for web installed are
apache 2.0.43
php 4.3.0
mysql 3.23.54

will install
- phpnuke latest version
- webalizer latest version
- and mrtg latest version :)
Jan 15, 2003
Finding suitable configuration for installing php module

Jan 16, 2003
Download php source from php.net
read the README and do
install php with command
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-gd' '--with-zlib-dir=/usr/include/zlib.h'
make
make install

for gd after I installing supported packages like freetypefont, libpng, xpm and other read the README

create file phpinfo.php
phpinfo();
?>

execute lynx http://localhost/phpinfo.php
and success...

Tuesday, January 14, 2003

tomorrow will install mod_php
I am not adding httpd and mysql to inetd because of some reason:
not good to start inetd and mysql from inetd
don't know how to start mysql from inetd
Install apache web server
very..very .vvery easy just follow the README and now running in daemon mode...
Jan 12, 2003
Installation of LIDS (linux intrusion detection system) canceled due to no lids version available for my kernel version 2.5.3