upload

Script to backup all mysql database and upload to FTP

In this howto I will show you a simple bash script that dump ALL mysql databases on your server compressed to GZIP and then make a nice tar.gz file with them and upload it to the FTP of your choice.

How to Install Elgg – An open, flexible social networking engine

Elgg is an open, flexible social networking engine, designed to run at the heart of any socially-aware application. Building on Elgg is easy, and because the engine handles common web application and social functionality for you, you can concentrate on developing your idea. Elgg is open source. That means, when you use Elgg, you have [...]

An Introduction to Basic IPv4 Routing

All of the operations considered in this article are operations upon a router, whether that router is a Linux box or Cisco dedicated hardware or some other type of machine. In this chapter I consider the traditional methods of IPv4 routing as using static configurations that are manually input by the network administrator. 1.1 Traditional [...]

How to Create Subdomains

Everyone has a “www” subdomain (In “www.yourdomain.com”, the “www” part is the subdomain). The www subdomain is created by, and serves files from, your /htdocs/www directory on the filesystem.

How to run a PHP script on cron

Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, “How to run PHP Scripts with crontab?” Cron is normally available on all Unix and Linux distributions; if [...]

How to Install and Configure pfSense – A free, open source firewall and router

pfSense is a free, open source customized distribution of FreeBSD tailored for use as a firewall and router. In addition to being a powerful, flexible firewalling and routing platform, it includes a long list of related features and a package system allowing further expandability without adding bloat and potential security vulnerabilities to the base distribution. [...]

A cool new open source meeting service that lets you share your desktop, presentations, audio and video

Dimdim is a cool new open source meeting service that lets you share your desktop, presentations, audio and video. Its also web based, and needs no installing. On top of all this, it works on Mac, Linux and even Windows! In today’s business environment with globally distributed workforce, it is not realistic to have face-to-face [...]

How to Call Linux Commands Inside PHP Page

At times, we need to verify some linux binaries from our web hosting provider. Say, we need to confirm path locations of specific linux binaries in order for our particular PHP pages to work out its function. There are lot of ways to do it, the simplest way is to call your web hosting provider [...]

How to Increase PHP Upload Limits

There are times that we are limited on uploading files and images to certain web-based services that we are managing along our duties. Here’s a quick how to on increasing your PHP file upload directive.

How to edit and configure the .htaccess file

How do you edit the .htaccess file? Before you upload an .htaccess file to your server, make sure there is not already one there. Your host panel or perhaps a script you have uploaded may have already changed the htaccess for some reason so you don’t want to overwrite it as doing so could change [...]

How to Stop Directory Listing – A simple guide of htaccess

If you have a lot of files in a directory but there is no index file, your server will list all the files in that server. This can cause a lot of problems. For example, one of the most common directories which webmasters forget to hide is the images folder. This allows everyone to view all the images in their images folder. This isn’t usually a major problem though you may have more important files in a directory, perhaps important documents or software.

How to setup and install TFTP server

The Trivial File Transfer Protocol (TFTP) is normally used only for booting diskless workstations. The tftp-server package provides the server for TFTP, which allows users to transfer files to and from a remote machine. TFTP provides very little security, and should not be enabled unless it is expressly needed. The TFTP server is run from [...]

How to Install Bandwidth Shaper – Trickle on Fedora

Shaping bandwidth traffic has been a usual part of job function from any IT company infrastructure providing online services to the web. From small scale company to enterprise scale, bandwidth shaping needs to be implemented and applied properly and effectively. Here’s one lightweight linux traffic shaper that makes use of existing network traffic shaping that [...]

How to Export Mysql Database Schema as XML

Sometimes it can be useful to have a dump of the current database schema. The script below reads the schema from a MySQL database and outputs XML that describes the schema. At first we connect to a MySQL database and use the SHOW TABLES command to return all the tables in the database. Next, we iterate over each table and [...]

Fedora 9: How to Increase PHP Upload Limits

There are times that we are limited on uploading files and images to certain web-based services that we are managing along our duties. Here’s a quick how to on increasing your PHP file upload directive. Fedora 9: Increase PHP Maximum Upload Filesize Backup and modify /etc/php.ini to have a similar lines as shown below upload_max_filesize [...]