Category: Scripting

Upgrade PHP on Server with IUS Repository

It’s easy to upgrade between PHP version is you’re using the IUS repository: http://iuscommunity.org Start by determining which version and modules you have already installed:

So in this case we have the “php52” packages. Next decide which package set

Read More »

Block PHP Execution With .htaccess In Folder

For a server using Plesk add the following lines to a .htaccess file to stop execution of PHP scripts in the folder:

I like to use this to protect cache and image upload folders that are writable by the

Read More »

Bash Loops

Here’s a basic loop in Bash:

Notice that it iterates over a space delimited string of values. If you have a comma delimited list then you can do something like this:

IFS is the “internal field separator” which

Read More »

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.