Category Archives: Linux

Linux

Testing Newrelic on Ubuntu Server

I have chance to try newrelic software. Its advance monitoring service and analysis in one place.

As they said “application performance management and monitoring”.

After sign up for free account I continue to deploy it on Ubuntu server (most of my server use freeBSD but I prefer to try it on Linux based system first).

The process is easy and straightforward as you can see from the picture :

newrelic1 Testing Newrelic on Ubuntu Server

 

The only problem is PHP version since I downgrade it for compatible issue.

# php -v
PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Continue

# wget -O – http://download.newrelic.com/548C16BF.gpg | apt-key add -

# nano /etc/apt/sources.list.d/newrelic.list

enter these line :

deb http://apt.newrelic.com/debian/ newrelic non-free

deploy newrelic agent:

# apt-get update

# apt-get install newrelic-php5

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
newrelic-daemon newrelic-php5-common
The following NEW packages will be installed:
newrelic-daemon newrelic-php5 newrelic-php5-common
0 upgraded, 3 newly installed, 0 to remove and 124 not upgraded.
Need to get 12.2 MB of archives.
After this operation, 31.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y

# newrelic-install install

new screen will show up

New Relic PHP Agent Installation (interactive mode)
===================================================
In order for the New Relic agent to function correctly it requires a license
key. Please enter that key now. If you do not have your license key handy you
can add it to your INI file(s) later. Please be aware that the license key you
specify here will be installed in the default INI files, and will be the key
used for any virtual host or directory / application that does not over-ride
the key on a per-host or per-directory basis. This is only relevant if you run
a multi-tenant site. Please contact support@newrelic.com if you run such a
site and have any questions.

If you are upgrading from a previous version please leave this blank. Please
also note that the key you enter here will not replace any existing key in
your INI file(s). It applies only to newly created INI files or INI files that
have not been modified by this script before.

Enter New Relic license key (or leave blank):

Just follow on screen guide.

Then you’ll see this message :

New Relic is now installed on your system. Congratulations!

The last step before you will start seeing data in your account is to restart
your web server or servers, or whatever environment hosts the PHP you wish to
monitor. For example, you may need to restart Apache or nginx, or if you are
using php-fpm and FastCGI, you will need to restart php-fpm. If you installed
New Relic into multiple locations you may have multiple PHP hosts to restart.
If everything is working properly you should see the following two log files:

/var/log/newrelic/newrelic-daemon.log
/var/log/newrelic/php_agent.log

Now you should create a simple test php script that contains the line:

<?php phpinfo(); ?>

and point your browser at the test script, and you should see the New Relic
extension and its settings. If you still do not see those log files or data in
your account please contact our support staff at support@newrelic.com and be
sure to include the following file in your bug report:

/tmp/nrinstall-20130420-105849-26070.tar

Thank you for choosing New Relic!

Checking log presence :

# ls -l /var/log/newrelic | grep log

-rw-rw-rw- 1 root root 997 2013-04-20 11:02 newrelic-daemon.log
-rw-r–r– 1 root root 3303 2013-04-20 11:01 php_agent.log

Yes,log file is exist.

newrelic2 Testing Newrelic on Ubuntu Server

 

phpinfo() also show information about newrelic.

My newrelic dashboard now give many information :

newrelic3 Testing Newrelic on Ubuntu Server

 

Wow, impressive report and many more.

 

Linux

Testing Debian KFreeBSD

# uname -a
GNU/kFreeBSD debian 8.1-1-686 #0 Tue Jan  4 17:59:05 UTC 2011 i686 i386 Intel(R) Atom(TM) CPU N550   @ 1.50GHz GNU/kFreeBSD

Update

# apt-get update
Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official kfreebsd-i386 CD Binary-1 20110205-22:58] squeeze Release.gpg
Media change: please insert the disc labeled
‘Debian GNU/Linux 6.0.0 _Squeeze_ – Official kfreebsd-i386 CD Binary-1 20110205-22:58′
in the drive ‘/media/cdrom/’ and press enter

hit CTRL+C to stop end edit /etc/apt/sources.list

# nano /etc/apt/sources.list

give # in front of deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official kfreebsd-i386 CD Binary-1 20110205-22:58]/ squeeze main line.

Re try one more time.

t# apt-get update
Get:1 http://security.debian.org squeeze/updates Release.gpg [836 B]
Get:2 http://ftp.us.debian.org squeeze Release.gpg [1,671 B]
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Hit http://security.debian.org squeeze/updates Release
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en_US
Hit http://security.debian.org squeeze/updates/main Sources
Get:3 http://ftp.us.debian.org squeeze-updates Release.gpg [836 B]
Hit http://security.debian.org squeeze/updates/main kfreebsd-i386 Packages
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en_US
Hit http://ftp.us.debian.org squeeze Release
Get:4 http://ftp.us.debian.org squeeze-updates Release [113 kB]
Hit http://ftp.us.debian.org squeeze/main Sources
Hit http://ftp.us.debian.org squeeze/main kfreebsd-i386 Packages
Hit http://ftp.us.debian.org squeeze-updates/main Sources/DiffIndex
Hit http://ftp.us.debian.org squeeze-updates/main kfreebsd-i386 Packages/DiffIndex
Hit http://ftp.us.debian.org squeeze-updates/main kfreebsd-i386 Packages
Fetched 117 kB in 12s (9,015 B/s)
Reading package lists… Done
#

Upgrade

# apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
base-files bind9-host dnsutils exim4 exim4-base exim4-config exim4-daemon-light host isc-dhcp-client isc-dhcp-common
kfreebsd-image-8-686 kfreebsd-image-8.1-1-686 libbind9-60 libdns69 libisc62 libisccc60 libisccfg62 liblwres60 python
python-minimal tzdata
21 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.8 MB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Do you want to continue [Y/n]? y

Get:1 http://ftp.us.debian.org/debian/ squeeze/main base-files kfreebsd-i386 6.0squeeze1 [63.3 kB]
Get:2 http://security.debian.org/ squeeze/updates/main isc-dhcp-client kfreebsd-i386 4.1.1-P1-15+squeeze2 [253 kB]
Get:3 http://ftp.us.debian.org/debian/ squeeze-updates/main tzdata all 2011d-0squeeze1 [767 kB]
Get:4 http://security.debian.org/ squeeze/updates/main isc-dhcp-common kfreebsd-i386 4.1.1-P1-15+squeeze2 [314 kB]
Get:5 http://security.debian.org/ squeeze/updates/main dnsutils kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [153 kB]
Get:6 http://ftp.us.debian.org/debian/ squeeze/main python all 2.6.6-3+squeeze6 [168 kB]
Get:7 http://security.debian.org/ squeeze/updates/main bind9-host kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [67.2 kB]
Get:8 http://security.debian.org/ squeeze/updates/main libisc62 kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [153 kB]
Get:9 http://ftp.us.debian.org/debian/ squeeze/main python-minimal all 2.6.6-3+squeeze6 [33.8 kB]
Get:10 http://ftp.us.debian.org/debian/ squeeze/main kfreebsd-image-8.1-1-686 kfreebsd-i386 8.1+dfsg-8 [10.9 MB]
Get:11 http://security.debian.org/ squeeze/updates/main libdns69 kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [664 kB]
Get:12 http://security.debian.org/ squeeze/updates/main libisccc60 kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [30.8 kB]
Get:13 http://security.debian.org/ squeeze/updates/main libisccfg62 kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [50.3 kB]
Get:14 http://security.debian.org/ squeeze/updates/main liblwres60 kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [50.0 kB]
Get:15 http://security.debian.org/ squeeze/updates/main host all 1:9.7.3.dfsg-1~squeeze1 [17.8 kB]
Get:16 http://security.debian.org/ squeeze/updates/main libbind9-60 kfreebsd-i386 1:9.7.3.dfsg-1~squeeze1 [38.3 kB]
Get:17 http://security.debian.org/ squeeze/updates/main exim4-config all 4.72-6+squeeze1 [464 kB]

…………………….

………………………………

………………………………………

Setting up exim4-daemon-light (4.72-6+squeeze1) …
Starting MTA: exim4.
Setting up exim4 (4.72-6+squeeze1) …
Setting up python-minimal (2.6.6-3+squeeze6) …
Setting up python (2.6.6-3+squeeze6) …
Setting up kfreebsd-image-8.1-1-686 (8.1+dfsg-8) …
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 8.1-1-686 /boot/kfreebsd-8.1-1-686.gz
Generating grub.cfg …
Found kernel of FreeBSD: /boot/kfreebsd-8.1-1-686.gz
Found kernel module directory: /lib/modules/8.1-1-686
grep: /proc/swaps: No such file or directory
done
Setting up kfreebsd-image-8-686 (8.1+dfsg-8) …
#

# uname -a
GNU/kFreeBSD debian 8.1-1-686 #0 Tue Jan  4 17:59:05 UTC 2011 i686 i386 Intel(R) Atom(TM) CPU N550   @ 1.50GHz GNU/kFreeBSD
#

Great.

Linux Unix

How to install Debian KFreeBSD

This post got delayed very long, I’ve already create the video since Februari 22 2011 but still have no time to publish. I just curious on how Debian and FreeBSD work in one place called Debian KFreBSD and as always everything just start from installation step and that is the main reason why I write this post.

Lets get start!

Get latest version of Debian KFreeBSD  and do installation with VMWare.

Choose Default Install.

install debian kfreebsd1 How to install Debian KFreeBSD

Choose English as installation language.

install debian kfreebsd2 How to install Debian KFreeBSD

Select Location : I choose United States.

read more »

Linux PHP

Downgrade php version from 5.3 to 5.2 on Ubuntu 10.10 x86

New Server has come and again I must downgrade php version to 5.2 due to some problem on web application. I use same method I use for Ubuntu 10.04 for Ubuntu 10.10 x86.

Let start

Download required files for PHP 5.2 from Ubuntu Karmic repository

#cd /etc/apt/sources.list.d

#wget http://randyfay.com/sites/default/files/karmic_0.list

# cd /etc/apt/preferences.d/

#wget http://randyfay.com/sites/default/files/php_1.

# mv php_1. php

Find out installed PHP version

# php -v

PHP 5.3.3-1ubuntu9.1 with Suhosin-Patch (cli) (built: Oct 15 2010 14:00:18)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
#

# dpkg –get-selections | grep php
libapache2-mod-php5                             install
php-db                                          install
php-pear                                        install
php5                                            install
php5-cli                                        install
php5-common                                     install
php5-gd                                         install
php5-mcrypt                                     install
php5-mysql                                      install
php5-xsl                                        install

Delete those PHP with apt-get remove

# apt-get remove libapache2-mod-php5 php-db php-pear php5 php5-cli php5-common php5-gd php5-mcrypt php5-mysql php5-xsl

# apt-get autoremove

Add php5-mcrypt

# nano /etc/apt/preferences.d/php

put these lines :

Package: php5-mcrypt
Pin: release a=karmic
Pin-Priority: 991

at the bottom.

Update repository and reinstall PHP

#apt-get update

#apt-get install php5 libapache2-mod-php5 php-db php5-cli php5-common php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache php5-mcrypt

Check PHP version

# php -v

PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
#

Great.

PHP successfully downgrade to 5.2.10 on Ubuntu 10.10 x86

Linux PHP

Downgrade php version from 5.3 to 5.2 on Ubuntu 10.04 i386

I have chance to install new server with standard requirement. SSH, Bind9 and LAMP.

All process is smooth using i386 version of Ubuntu 10.04 but my friend complain about his web application not work well and after little investigation it looks like due to PHP version.

Quick search on Google lead me to RandyFay post about downgrade PHP version to 5.2 on Ubuntu 10.04

I follow the method and rewrite it with a few things that might useful for newbie like me icon smile Downgrade php version from 5.3 to 5.2 on Ubuntu 10.04 i386

Note :

I use ubuntu 10.04 i386 and username : alam

Let start

Download required files for PHP 5.2 from Ubuntu Karmic repository

# wget http://randyfay.com/sites/default/files/karmic_0.list

# mv /home/pusda/karmic_0.list /etc/apt/sources.list.d

# wget http://randyfay.com/sites/default/files/php_1.

# mv /home/pusda/php_1. /etc/apt/preferences.d/php

Find out installed PHP version

# dpkg –get-selections | grep php

libapache2-mod-php5                             install
php-db                                          install
php-pear                                        install
php5                                            install
php5-cli                                        install
php5-common                                     install
php5-gd                                         install
php5-mcrypt                                     deinstall
php5-mysql                                      install

Delete those PHP with apt-get remove

# apt-get remove libapache2-mod-php5 php-db php-pear php5 php5-cli php5-common php5-gd php5-mcrypt php5-mysql

# apt-get autoremove

Update repository and reinstall PHP

#apt-get update

#apt-get install php5 libapache2-mod-php5 php-db php5-cli php5-common php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache

Check PHP version

# php -v

PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20060613+lfs/mcrypt.so’ – /usr/lib/php5/20060613+lfs/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
#

Dealing with php5-mcrypt error

# apt-get install php5-mcrypt

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php5-mcrypt: Depends: phpapi-20090626+lfs
E: Broken packages
#

Quick solution for php5-mcrypt installation error

# nano /etc/apt/preferences.d/php

put these lines :

Package: php5-mcrypt
Pin: release a=karmic
Pin-Priority: 991

at the bottom.

Try reinstall php5-mcrypt

# apt-get install php5-mcrypt

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libmcrypt4
Suggested packages:
libmcrypt-dev mcrypt
The following NEW packages will be installed:
libmcrypt4 php5-mcrypt
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 91.4kB of archives.
After this operation, 332kB of additional disk space will be used.
Do you want to continue [Y/n]?y

Recheck php version after install php5-mcrypt

# php -v

PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
#

Great.

PHP successfully downgrade to 5.2.10

Linux

Upgrade Zimbra Network Edition from 6.0.1 to 6.0.8

Stop Zimbra Service

su – zimbra

$ zmcontrol stop
Host mail.yourdomain.com
Stopping stats…Done.
Stopping mta…Done.
Stopping spell…Done.
Stopping snmp…Done.
Stopping archiving…Done.
Stopping antivirus…Done.
Stopping antispam…Done.
Stopping imapproxy…Done.
Stopping memcached…Done.
Stopping mailbox…Done.
Stopping convertd…Done.
Stopping logger…Done.
Stopping ldap…Done.
$
$ exit
logout
#

Backup Zimbra

# cd /opt
# tar cvzf zimbra.tar.gz zimbra

Check Zimbra Version

$ zmcontrol -v

Release 6.0.1_GA_1816.UBUNTU8 UBUNTU8 NETWORK edition.

Check License
$ zmlicense -c
license is in grace period

$ zmlicense -c
license is OK

read more »

Linux Step By Step Work

How to update / renew Zimbra License

Your Zimbra Network License expired 24 days ago icon smile How to update / renew Zimbra License

Yes, that message show up when I log in to one of my client and they ask me to renew the license.

Well, the process itself isn’t difficult as what you need to extend zimbra license just ask sales at zimbra.com.

they will email license key and with the key what you need to do is login to zimbra admin.

Click on Global Settings.

zimbra license 1 How to update / renew Zimbra License

Click License will give this screen.

Click Update License.

zimbra license 2 How to update / renew Zimbra License

Browse for license file and click Next.

zimbra license 3 How to update / renew Zimbra License

Your license file is uploaded successfully.

Click Install.

zimbra license 4 How to update / renew Zimbra License

You license file is installed successfully.

zimbra license 5 How to update / renew Zimbra License

Done.

Client can continue their zimbra mailbox.

Linux

Renew Certificate or Create New Certificate from Zimbra CLI

License for one of our client get expired and current status is in grace period.

Accident happen when server was forced to shutdown due to electrical problem. When the server goes up nothing email server still down. I try to start the service manually.

$ zmcontrol start
Host mail.yourdomain.com
Unable to determine enabled services from ldap.
Unable to determine enabled services. Cache is out of date or doesn’t exist.

Further investigation tell me about certificate expiration, I must renew it.

Here the steps :

# su – zimbra
$ /opt/zimbra/bin/zmcertmgr createca -new
/opt/zimbra/bin/zmcertmgr must be run as user root
$ exit
logout

Hohoho, the command must run by root.

Begin by generating a new Certificate Authority (CA).

# /opt/zimbra/bin/zmcertmgr createca -new

** Creating /opt/zimbra/ssl/zimbra/ca/zmssl.cnf…done
** Creating CA private key /opt/zimbra/ssl/zimbra/ca/ca.key…done.
** Creating CA cert /opt/zimbra/ssl/zimbra/ca/ca.pem…done.

Then generate a certificate signed by the CA that expires in 365 days.

# /opt/zimbra/bin/zmcertmgr createcrt -new -days 365

Validation days: 365
** Creating /opt/zimbra/conf/zmssl.cnf…done
** Backup /opt/zimbra/ssl/zimbra to /opt/zimbra/ssl/zimbra.20101009200401
** Generating a server csr for download self -new -keysize 1024
** Creating /opt/zimbra/conf/zmssl.cnf…done
** Backup /opt/zimbra/ssl/zimbra to /opt/zimbra/ssl/zimbra.20101009200401
** Creating server cert request /opt/zimbra/ssl/zimbra/server/server.csr…done.
** Saving server config key zimbraSSLPrivateKey…failed.
** Signing cert request /opt/zimbra/ssl/zimbra/server/server.csr…done.

Next deploy the certificate.

# /opt/zimbra/bin/zmcertmgr deploycrt self

** Saving server config key zimbraSSLCertificate…done.
** Saving server config key zimbraSSLPrivateKey…done.
** Installing mta certificate and key…done.
** Installing slapd certificate and key…done.
** Installing proxy certificate and key…done.
** Creating pkcs12 file /opt/zimbra/ssl/zimbra/jetty.pkcs12…done.
** Creating keystore file /opt/zimbra/mailboxd/etc/keystore…done.
** Installing CA to /opt/zimbra/conf/ca…done.

Next deploy the CA

# /opt/zimbra/bin/zmcertmgr deployca

** Importing CA /opt/zimbra/ssl/zimbra/ca/ca.pem into CACERTS…done.
** Saving global config key zimbraCertAuthorityCertSelfSigned…done.
** Saving global config key zimbraCertAuthorityKeySelfSigned…done.
** Copying CA to /opt/zimbra/conf/ca…done.

To finish, verify the certificate was deployed to all the services.

# /opt/zimbra/bin/zmcertmgr viewdeployedcrt

::service mta::
notBefore=Oct  9 13:04:03 2010 GMT
notAfter=Oct  9 13:04:03 2011 GMT
subject= /C=US/ST=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
SubjectAltName=
::service proxy::
notBefore=Oct  9 13:04:03 2010 GMT
notAfter=Oct  9 13:04:03 2011 GMT
subject= /C=US/ST=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
SubjectAltName=
::service mailboxd::
notBefore=Oct  9 13:04:03 2010 GMT
notAfter=Oct  9 13:04:03 2011 GMT
subject= /C=US/ST=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
SubjectAltName=
::service ldap::
notBefore=Oct  9 13:04:03 2010 GMT
notAfter=Oct  9 13:04:03 2011 GMT
subject= /C=US/ST=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
issuer= /C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/OU=Zimbra Collaboration

Suite/CN=mail.yourdomain.com
SubjectAltName=
#

done.

Try start the service :

~$ zmcontrol start
Host mail.yourdomain.com
Starting ldap…Done.
Starting logger…Done.
Starting convertd…Done.
Starting mailbox…Done.
Starting antispam…Done.
Starting antivirus…Done.
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.
$

Linux

Howto Check named configuration error

named can’t start its daemon and left me with nothing than confuse.

# /etc/init.d/bind9 restart

* Stopping domain name service… bind9                                                                                     rndc: connect failed: 127.0.0.1#953: connection refused
[ OK ]
* Starting domain name service… bind9                                 [fail]

fail message don’t give a clue, further investigation with named manual lead me to -g and -p .

Retry to see the error message :

# named -g -p 53

22-Jul-2010 07:34:10.333 starting BIND 9.7.0-P1 -g -p 53
22-Jul-2010 07:34:10.333 built with ‘–prefix=/usr’ ‘–mandir=/usr/share/man’ ‘-                                             -infodir=/usr/share/info’ ‘–sysconfdir=/etc/bind’ ‘–localstatedir=/var’ ‘–enable-threads’ ‘–enable-largefile’ ‘–with-libtool’ ‘–enable-shared’ ‘–enable-static’ ‘–with-openssl=/usr’ ‘–with-gssapi=/usr’ ‘–with-gnu-ld’ ‘–with-dlz-postgres=no’ ‘–with-dlz-mysql=no’ ‘–with-dlz-bdb=yes’ ‘–with-dlz-filesystem=yes                                             ‘ ‘–with-dlz-ldap=yes’ ‘–with-dlz-stub=yes’ ‘–with-geoip=/usr’ ‘–enable-ipv6                                             ‘ ‘CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2′ ‘LDFLAGS=-Wl,-Bsymbolic-funct                                             ions’ ‘CPPFLAGS=’
22-Jul-2010 07:34:10.333 adjusted limit on open files from 1024 to 1048576
22-Jul-2010 07:34:10.333 found 4 CPUs, using 4 worker threads
22-Jul-2010 07:34:10.333 using up to 4096 sockets
22-Jul-2010 07:34:10.340 loading configuration from ‘/etc/bind/named.conf’
22-Jul-2010 07:34:10.340 /etc/bind/named.conf.local:16: expected quoted string near ‘.’
22-Jul-2010 07:34:10.341 loading configuration: unexpected token
22-Jul-2010 07:34:10.341 exiting (due to fatal error)

I see, I made mistake in named.conf.local (expected quoted string)

View the error

# nano /etc/bind/named.conf.local

Save the file after editing and start bind9

# /etc/init.d/bind9 start

* Starting domain name service… bind9                                                          [ OK ]
#

Perfecto!

Linux Work

Change php.ini for adjust max upload file size

File too large

That simple message when marketing team want to upload new support ticket that include attachment with size 4 MB.

Yes, that my mistake for not adjust default max upload file size.

The solution is simple :

Edit php.ini file

I use ubuntu and because I more familiar with freebsd I use phpinfo() as my friend to find out where the file is.

According to phpinfo() the php.ini file located in :

ubuntu php ini 1 Change php.ini for adjust max upload file size

/etc/php5/cgi/php.ini

Open that file with nano editor :

# nano /etc/php5/cgi/php.ini

change “upload_max_filesize” to other value. I use 8M.

Save the file.

read more »

Linux

Step by step Install Ubuntu Server 9.10

Step by step guide install Ubuntu Server 9.10 :

1. Download latest iso file or request free ubuntu CD from shipit.

2. Insert CD on CDROM/DVDROM.

3. Make sure to boot from CD/DVDROM

Choose “install ubuntu server”

install ubuntu server 910 1 Step by step Install Ubuntu Server 9.10

4. Choose Language

Language chosen in this step will be work in the future use.

read more »