Category: Linux

How to change what server Debian uses to download packages. 0

How to change what server Debian uses to download packages.

One easy & automatic way to do this is with netselect-apt (apt-get install netselect-apt, then netselect-apt, both as root). This will find the fastest mirror and set it up for you. If you want a specific mirror...

Find a File by Name in UNIX, Solaris, or Linux 0

Find a File by Name in UNIX, Solaris, or Linux

Using the find command, one can locate a file by name. To find a file such as filename.txt anywhere on the system: find / -name filename.txt -print Recent operating system versions do not require...

Test the Apache Configuration File httpd.conf 0

Test the Apache Configuration File httpd.conf

After making changes to the Apache configuration file or any virtual host it’s good practice to test the config for errors before reloading the config. To test the Apache configuration file for errors, use...

How to Increase PHP Memory Using ini_set() 0

How to Increase PHP Memory Using ini_set()

Sometimes there might be a need to increase the allocated memory for PHP to run something that needs more power.  Normally it’s a large file that is simply just being opened in memory. You...

How to Import a Large CSV file to MySQL 0

How to Import a Large CSV file to MySQL

One of my clients recently needed over 100,000 lines of a CSV file added to a database.  At first being a PHP developer I tried making an upload page and looping the results through fgetcsv() but...

Changing the Postfix maximum email size 0

Changing the Postfix maximum email size

I’ve recently had a customer emailing large image screenshots and Postfix has been rejecting them.  I looked at the configuration showed the message size limit was set to the default so I needed to make it...

How to Run Cron Job in Linux. 0

How to Run Cron Job in Linux.

One thing that’s always handy to know are cron jobs on Linux.  The cron is the most simple way to setup a task that needs to repeat.  In most distributions you’ll find your cron...