Tag Archives: linux

Brasero Disk Burner Gets Stuck Creating Image Checksum

When I was trying to burn a new copy of the latest version of Ubuntu, Brasero was getting stuck on the “Creating Image Checksum”. My first thought was to disable the check-sum feature (which you can do via the edit … Continue reading

Posted in Linux, System Administration | Tagged , , , , , , | Leave a comment

javascript-common & mantis 404 problem on Ubuntu

Although my mantis install seemed to be working, I noticed that whenever I loaded the page, I recieved a number of 404 errors on the javascripts. ( 404 – /javascript/min/common.js). What really confused me is that the file was in … Continue reading

Posted in Linux, System Administration | Tagged , , , , , , , | Leave a comment

PHPUnit require_once(PHP/CodeCoverage… Error on Ubuntu

When trying to install PHPUnit on Ubuntu 11.10, I received the following error: PHP Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 38 PHP Fatal error: require_once(): Failed opening required ‘PHP/CodeCoverage/Filter.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in … Continue reading

Posted in PHP | Tagged , , , , , | Leave a comment

Apache /icons directory Index

Generally I like to add Options -Indexes to my apache config files. Naturally I was surprised to find that www.mydomain.com/icons/ was returning a standard apache index. I checked my config files and all the files remove the Index options, so … Continue reading

Posted in Linux, System Administration | Tagged , , , , | Leave a comment

Linux test network connection

Lately I have begun to suspect on of my servers is losing its network connection under certain circumstances. Naturally I started with basic connectivity test such as ping: However, I also wanted to put it under a little strain so … Continue reading

Posted in Linux, System Administration | Tagged , , , , , , | Leave a comment

PHP Text Color

When writing scripts to sort through large amounts of data, using color to highlight certain output values can be quite useful. If you are outputing to a browser, this is quite easy; you just use html colors (i.e. <span style=”color: … Continue reading

Posted in PHP | Tagged , , , , , , , | Leave a comment

Symfony Project Returns Apache 404

When copying a Symfony Project to a new server I noticed a problem; when I used the dev environment, everything worked fine, but when I used prod, I received a 404. They key was that the 404 came from apache … Continue reading

Posted in Linux, Symfony | Tagged , , , | Leave a comment

Execute a PHP 5 Script From the Command Line in Ubuntu Linux

To execute a PHP script from the command line in Ubuntu you must have php5-cli installed. (CLI stands for “Command Line Interface”.) sudo apt-get install php5-cli Once cli is installed, you can execute your script like so: php5 ./myScript.php Inside … Continue reading

Posted in Linux, System Administration | Tagged , , , | Leave a comment

Bash: Saving output from commands

Often I want a bash script to run a command and then save the output of the command to a variable. For example, lets say I want to a file for a version number and then check in my script … Continue reading

Posted in Linux, System Administration | Tagged , , | Leave a comment

Linux Bash Scripts: colored text

Often I have wondered how scripts like grep output colored text to the terminal. It turns out it is fairly easy. The following code will output red text (depending on profile settings) to the terminal from a bash script: $(tput … Continue reading

Posted in Linux, System Administration | Tagged , , , | 1 Comment