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 :


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 »

Install pureftp with unixauthentification on ubuntu

I used to use winscp to upload file to vps server. It’s easy and I just need to keep dedicated user.

Due to request for ftp support I decide to install ftp server called pure-ftp on ubuntu jaunty.

Install pure-ftp

# apt-get install pure-ftpd

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libcap1 pure-ftpd-common
Suggested packages:
netkit-inetd openbsd-inetd xinetd
The following NEW packages will be installed:
libcap1 pure-ftpd pure-ftpd-common
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 355kB of archives.
After this operation, 1040kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 jaunty/main libcap1 1:1.10-14build1 [9780B]
Get:2 jaunty/universe pure-ftpd-common 1.0.21-11.4ubuntu1 [176kB]
Get:3 jaunty/universe pure-ftpd 1.0.21-11.4ubuntu1 [169kB]
Fetched 355kB in 1s (278kB/s)
Preconfiguring packages …
Selecting previously deselected package libcap1.
(Reading database … 20798 files and directories currently installed.)
Unpacking libcap1 (from …/libcap1_1%3a1.10-14build1_amd64.deb) …
Selecting previously deselected package pure-ftpd-common.
Unpacking pure-ftpd-common (from …/pure-ftpd-common_1.0.21-11.4ubuntu1_all.deb) …
Selecting previously deselected package pure-ftpd.
Unpacking pure-ftpd (from …/pure-ftpd_1.0.21-11.4ubuntu1_amd64.deb) …
Setting up libcap1 (1:1.10-14build1) …

Setting up pure-ftpd-common (1.0.21-11.4ubuntu1) …

Setting up pure-ftpd (1.0.21-11.4ubuntu1) …
Starting ftp server: Running: /usr/sbin/pure-ftpd -l pam -E -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -B

Processing triggers for libc6 …
ldconfig deferred processing now taking place
You have new mail in /var/mail/root

Enable unixauthentification

# nano /etc/pure-ftpd/conf/UnixAuthentication

change  from no to yes and save the file.

Run the service

# /etc/init.d/pure-ftpd start

Starting ftp server: Running: /usr/sbin/pure-ftpd -l unix -l pam -E -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -B

Great, I can delegate website update process :-)

freebsd unzip ports

I just use gunzip as tool for unzip an .zip file at ubuntu 10.04 when I try same utility at freebsd.

Now I want to try something new with utility called unzip.

Try to call it ( it might be installed)

# unzip
unzip: Command not found.

Not found, try to find installation file.

# whereis unzip

unzip: /usr/ports/archivers/unzip
# cd  /usr/ports/archivers/unzip && make install

read more »

Warning: No configuration file found!

Try to install gammu with newest ubuntu version (lucid). smsdrc edited and lauch gammu–identify

# gammu –identify

Warning: No configuration file found!
Warning: No configuration read, using builtin defaults!
No response in specified timeout. Probably phone not connected.

I check the cable and it looks fine.

Check configuration file and yes, still at /etc/gammu-smsdrc

Retry by give -c option :

# gammu -c /etc/gammu-smsdrc –identify

Device               : /dev/ttyUSB0
Manufacturer         : Wavecom
Model                : unknown (MULTIBAND  900E  1800)
Firmware             : 652a09gg.Q2406A 1489876 060706 17:19
IMEI                 : 35162100049xxxx
SIM IMSI             : 51008004196xxxx

I see.

symbolic link will help :

ln -s /etc/gammu-smsdrc /etc/gammurc

error fix.

Setting PATH for MYSQL bin


Yes, that thing come to my mind when I playing around with MYSQL.

Before setting PATH :

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd c:\wamp\bin\mysql\mysql5.1.36\bin

C:\wamp\bin\mysql\mysql5.1.36\bin>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.36-community-log MySQL Community Server (GPL)

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> exit

read more »