Multi.php$script,important, 119,||openx.gamereactor. Open), 194, rarbgmirror.com,swfchan.net. 703, @@/google-ad-block-test-googleadservices-gpt-pubads.js$script. First, we need to remove any existing GPT partition info from the disks – ignore the ‘invalid argument’ message if you get it at this stage: # gpart destroy da0 # gpart destroy da1 # gpart destroy da2 Now we need to initialise the GPT partitions on each disk: # gpart create -s gpt da0 # gpart create -s gpt da1 # gpart create -s gpt da2.
You can use the DiskPart command-line utility to create striped, mirrored, andRAID-5 volumes. To perform any of these tasks, first execute the following commandsfrom an administrative command prompt:
The List disk command returns the disk numbers on your computer that you usewhen entering the commands to create the desired volume. The Select disk commandselects a disk you want to work with, and the Convert dynamic commandconverts the disk to a dynamic disk; repeat these two commands for each disk thatneeds to be converted to dynamic storage before beginning to create your volumes.To create a mirror, you actually add a mirror to an existing simple volume. Use theSelect volume command to select the volume to be mirrored, and then use thefollowing command:
Add disk=n [noerr]
In this command, n is the disk number of the disk to be added to the current simplevolume and noerr enables a script containing this command to continue processingeven if an error has occurred. To obtain disk numbers used in thiscommand, use the List disk command.
Use the following command to create a striped volume:
In this command, size is the number of MB used in each disk for the striped volumeand n is the disk number (repeat from 2 to 32 times for each disk in thestriped volume). If you do not specify a size, the size is assumed to be that of thesmallest disk in the array. For example, if you specify three disks with unallocatedspace of 300, 400, and 500 GB and do not specify a size, DiskPart uses 300 GB perdisk for a total striped volume size of 900 GB.
Creating a RAID-5 volume is similar to that of creating a striped volume. Use thefollowing command:
The parameters have the same meaning; in this case, repeat the disk number from3 to 32 times. For the same example with three disks with unallocated space of 300,400, and 500 GB and which do not specify the size parameter, DiskPart uses 300GB per disk for a total RAID-5 volume size of 600 GB.
In this tutorial:
Debian GNU/Linux installation notes
This section contains notes and hints specific to installing PHP on » Debian GNU/Linux.
Warning
Unofficial builds from third-parties are not supported here. Any bugs should be reported to the Debian team unless they can be reproduced using the latest builds from our » download area.
While the instructions for building PHP on Unix apply to Debian as well, this manual page contains specific information for other options, such as using either the apt-get or aptitude commands. This manual page uses these two commands interchangeably.
Using APT
First, note that other related packages may be desired like libapache2-mod-php5 to integrate with Apache 2, and php-pear for PEAR.
Second, before installing a package, it's wise to ensure the package list is up to date. Typically, this is done by running the command apt-get update.
Example #1 Debian Install Example with Apache 2
APT will automatically install the PHP 5 module for Apache 2 and all of its dependencies, and then activate it. Apache should be restarted in order for the changes take place. For example:
Example #2 Stopping and starting Apache once PHP is installed
Better control of configuration
In the last section, PHP was installed with only core modules. It's very likely that additional modules will be desired, such as MySQL, cURL, GD, etc. These may also be installed via the apt-get command.
Example #3 Methods for listing additional PHP 5 packages
The examples will show a lot of packages including several PHP specific ones like php5-cgi, php5-cli and php5-dev. Determine which are needed and install them like any other with either apt-get or aptitude. And because Debian performs dependency checks, it'll prompt for those so for example to install MySQL and cURL:
Example #4 Install PHP with MySQL, cURL
APT will automatically add the appropriate lines to the different php.ini related files like /etc/php5/apache2/php.ini, /etc/php5/conf.d/pdo.ini, etc. and depending on the extension will add entries similar to extension=foo.so. However, restarting the web server (like Apache) is required before these changes take affect.
Common Problems
If the PHP scripts are not parsing via the web server, then it's likely that PHP was not added to the web server's configuration file, which on Debian may be /etc/apache2/apache2.conf or similar. See the Debian manual for further details.
If an extension was seemingly installed yet the functions are undefined, be sure that the appropriate ini file is being loaded and/or the web server was restarted after installation.
There are two basic commands for installing packages on Debian (and other linux variants): apt-get and aptitude. However, explaining the subtle differences between these commands goes beyond the scope of this manual.