Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Wednesday, September 3, 2008

Turn Off PHP Error Reporting Unix

This one is pretty easy to find out on the web, but I thought I would throw it up there with some other keywords. Here is how you Turn off php error reporting in Unix BSD tutorial.

1 Login as root

2 vi /usr/local/lib/php.ini (or wherever your php.ini file is located)

3 find the error_reporting setting by typing /error_reporting (note arrow down to the error_reporting line that does NOT start with a semicolon!!!!)

4) to disable, insert a semicolon in front of the error_reporting line to comment out.

5) restart apache with /usr/local/apache2/bin/apachectl restart

To reenable php error reporting, remove the semicolon.

Using Tar for Tape Drive BSD

We needed to set up a backup using tar on a unix BSD system. Here is how we did it:

Examples:
Backing up the current directory to Tape:

$ tar cv . <- default tape drive (rsa0)

$ tar cvf /dev/rsa1 . <- second tape drive (rsa1)

Restore files from Tape:

$ tar xv .
$ tar xvf /dev/rsa1

Extracted from information here: http://www.sudaneseonline.com/cgi-bin/boards/sudanhosting/2bb.cgi?seq=msg&board=3&msg=1175665234