feedburner
Enter your email address:

Delivered by FeedBurner

feedburner count

Maximum Upload File Size

Labels: ,


Maximum Upload File Size

:?: Is there an easy way to increase the maximum file upload size (currently 2 megabytes)?

:!: The file upload size is set in your PHP configuration, php.ini, with the parameter upload_max_filesize.
The setting can be changed in a number of different places depending on your webserver and the method it uses to run PHP.
If your Webserver allows the modification of PHP settings through a .htaccess file (Apache + mod_php) add the following two lines to a .htaccess in the installed directory:
php_value upload_max_filesize 15M  php_value post_max_size 15M
Otherwise you need to modify your php.ini (usually located in /etc/php5/php.ini, but refer to your administrator or distribution manual for the correct location):
upload_max_filesize = 15M  post_max_size = 15M
After modifying the global php.ini you will need to restart the webserver to have changes take effect.

Apache Users

Set the following parameter to a reasonable value in your php.ini if you get "Upload Failed" errors after setting upload_max_filesize and post_max_size :
memory_limit = 256M ; Maximum amount of memory a script may consume (default: 16MB)

Suhosin Users

Users with Suhosin might need to increase the suhosin.post.max_value_length value as well.

Red Hat E5 Servers

Red Hat ES users will also want to check (and probably increase) LimitRequestBody in/etc/httpd/conf.d/php.conf, which is set by default to a fairly low value. This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.

FCGI Users

An updated default FastCGI restriction, which limited the maximum body size of a HTTP request results in internal server errors. You may set new values in your apache, i.e.
    
FcgidMaxRequestLen 26214400    
FcgidConnectTimeout 60  
for 25 MB and 60 sec timeout.
Source: https://www.dokuwiki.org/faq:uploadsize
Read More.. Digg ThisAdd To Del.icio.us Add To Reddit Fav This With Technorati Add To Yahoo MyWeb Add To Newsvine Add To Google Bookmarks Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This



Shell In A Box SSH Via Web Browser

Labels: ,

This is tutorial that i read today. It's about how to remote your computer via web. It use web based emulator named shellinabox created byMarkus GutschkeIt has built-in web server that runs as a web-based SSH client on a specified port and prompt you a web terminal emulator to access and control your Linux Server SSH Shell remotely using any AJAX/JavaScript and CSS enabled browsers


This tutorial describe how to install Shellinabox and access remote SSH terminal using a modern web browser on any machine.

Read More.. Digg ThisAdd To Del.icio.us Add To Reddit Fav This With Technorati Add To Yahoo MyWeb Add To Newsvine Add To Google Bookmarks Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This



How To Disable IPV6 in Ubuntu

Labels: ,

I want to  disable ipv6 in my Ubuntu Server.
First, I open /etc/sysctl.conf using  text editor.
$ sudo nano /etc/sysctl.conf
Then I  insert these following lines at the end.
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
After that, I save the file using Ctrl+O and exit from text editor using Ctrl+X. On terminal, I type this command 
$ sudo sysctl -p
I get result in terminal as,
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
After that when I check,
$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
I get result as,
1
From the result, I know my ipv6 disabled successfully.
Read More.. Digg ThisAdd To Del.icio.us Add To Reddit Fav This With Technorati Add To Yahoo MyWeb Add To Newsvine Add To Google Bookmarks Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This



Import Mysql File Using Command LIne

Labels: ,

Import mysql file using command line on Linux needs several steps.

Step 1: Upload mysql file to server

You can use either ftp or scp to upload mysql file. 


Step 2: Login to server

 Login to server using ssh application. Example your website domain is pratama.us and username is demby. Type this command to login to your server. 

ssh demby@pratama.us

You can change demby to your username and pratama.us to your domain or ip address.

Step 3: Import Mysql File

To import your mysql file to database you can use command below:

mysql -u USERNAME -p -h HOSTNAME DATABASENAME < FILENAME

Example if your mysql USERNAME is demby,  HOSTNAME is localhost, DATABASENAME is dembydb and FILENAME is dembydb.sql, type this command to import.

mysql -u demby -p -h localhost dembydb < dembydb.sql

If you using ip address or domain as your hostname then your command become:

 mysql -u demby -p -h 118.1.1.1 dembydb < dembydb.sql
or

mysql -u demby -p -h demby.pratama.us dembydb < dembydb.sql

After that, you can check your database and browse the data. This article is to remind me how to import mysql file to database using command line. 

-- 
From Email
Read More.. Digg ThisAdd To Del.icio.us Add To Reddit Fav This With Technorati Add To Yahoo MyWeb Add To Newsvine Add To Google Bookmarks Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This

How to install rsync server on CentOS

Labels: , ,

These are steps to install rsync server. 

Install xinetd and rsync packages
#yum -y install xinetd rsync

Then make sure xinetd is running on levels 3, 4 and 5
#chkconfig --level 345 xinetd on

Modify rsync xinetd configuration. We shoud change disable = yes to disable = no

#vi /etc/xinetd.d/rsync

Next, create rsync secrets file for password with format of username:password
#vi /etc/rsyncd.secrets

Last create configuration for rsync shares
#vi /etc/rsyncd.conf

Fill this configuration
# rsyncd.conf
secrets file = /etc/rsyncd.secrets
motd file = /etc/rsyncd.motd
read only = yes
list = yes
uid = nobody
gid = nobody

[out]
comment = Interesting stuff from this server
path = /home/rsync/out

[confidential]
comment = FYI
path = /home/rsync/secret-out
auth users = demby,pratama
hosts allow = *.pratama.us
hosts deny = *
list = false 

Then save

After that, fix up permission and ownership file, and restart xinetd service
#chown root.root /etc/rsyncd.*
#chmod 600 /etc/rsyncd.*
#service xinetd restart

You can test it locally:

#telnet 127.0.0.1 873

You should check your server. If SELinux is running, you must disable it or you can let it run. But you have to change some variable. Use this command
#setsebool -P rsync_disable_trans 1
#service xinetd restart

Running the client:

On the remote machine:
# rsync -arv your-user-name@host-with-code-to-sync:/home/rsync/out ./

That's how to install rsync server on CentOS
Read More.. Digg ThisAdd To Del.icio.us Add To Reddit Fav This With Technorati Add To Yahoo MyWeb Add To Newsvine Add To Google Bookmarks Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This