View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
The partition table structure for a multi boot system :
T he first primary partition is your Windows partition.
The second extended partition is the first Linux partition, and should be set up in the Linux installation process.
create a partition with the label /
Create a partition with the label /homeamount of space for distribution]
Create a partition with the label /usr
Create a partition with the label /var
Create a partition with the label /swap
Follow the prompts for the distribution you are installing. Each distribution has a different installation process, The enter key will finish the selection process and start the installation. A graphic interface installation program will have mouse support.
cd (change directory) and cd .. (up one directory),
cd ../.. (up two directories)
ls (looks in current directory) ls –l (looks in current directory and lists all permissions)
mkdir (make a new directory)
rm remove/delete file
rm –R remove/delete folder
mv and mv –R moves files and folders
cp and cp –R copies files and folders
ps and ps –a (looks for all processes running)
kill (will kill a process running)
man command (gives information about a command)
ADVANCED COMMANDS IN LINUX Command Description # arch show architecture of machine(1)  # cal 2007 show the timetable of 2007  # cat /proc/cpuinfo show information CPU info  # cat /proc/interrupts show interrupts  # cat /proc/meminfo verify memory use  # cat /proc/swaps show file(s) swap  # cat /proc/version show version of the kernel  # cat /proc/net/dev show network adpters and statistics  # cat /proc/mounts show mounted file system(s)  # clock -w save date changes on BIOS  # date show system date  # date 041217002007.00 set date and time - MonthDayhoursMinutesYear.Seconds  # dmidecode -q show hardware system components - (SMBIOS / DMI) 
# hdparm -i /dev/hda displays the characteristics of a hard-disk  # hdparm -tT /dev/sda perform test reading on a hard-disk  # lspci -tv display PCI devices  # lsusb -tv show USB devices  # uname -m show architecture of machine(2)  # uname -r show used kernel version  # init 0 shutdown system(2)  # logout leaving session  # reboot reboot(2)  # shutdown -h now shutdown system(1)  # shutdown -h 16:30 & planned shutdown of the system at 16:30  # shutdown -c cancel a planned shutdown of the system  # shutdown -r now reboot(1)  # telinit 0 shutdown system(3) 
You can check the MySQL installed version by performing mysql -V as shown below:
[local-host]# mysql -V
mysql Ver 14.14 Distrib 5.1.25-rc, for redhat-linux-gnu (i686) using readline 5.1
Connect to the MySQL database using the root user and make sure the connection is successfull.
[local-host]# mysql -u root -p
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 13
Server version: 5.1.25-rc-community MySQL Community Server (GPL)
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
CONFIGURING MYSQL Initialise the standard MySQL databases. This also sets up the initial user privileges for your MySQL server. cd mysql scripts/mysql_install_db
MYSQL SETUP steps: 1. Login to WHM on the Linux dedicated server. 2. Select SQL Services and then click on Setup Remote SQL Server. 3.Enter the name of the remote server and it is to be entered in the 'host' section. Password is also required which is to be entered in the column provided for Remote MySQL Host Root Password. 4. Click on "Setup" and you are done.
The SQL select statement is used to choose what data to pull from the mysql database
Show Columns - MySQL Command
The show columns command is used to display all the columns for a given table and their details.
Show Databases- MySQL Command
Use the show databases command in MySQL to show all the databases on the MySQL server
Show Tables - MySQL Command
The show tables command is used to display all the tables in a MySQL database
UNINSTALLING MYSQL Here are the steps to perform a clean un-install of MySQL Execute the following commands at the Terminal Uninstalling MySQL Open /etc/hostconfig file in a text editor and remove the following line MYSQLCOM=-YES- That’s all.
need to create directory now: mkdir /usr/local/download
install PHP in /usr/local/etc, but use a tricky tar command to do it in on hit from the download directory:
tar xzf php-3.0.12.tar.gz -C ../etc
create a nice directory name (php) for the installed directory:
ln -s php-3.0.12 php
Debugging Tools Webgrind Webgrind is an Xdebug profiling Web front end in PHP 5. It implements a subset of the features of kcachegrind , installs in seconds and works on all platforms. Xdebug Xdebug provides a ton of useful data to help you quickly find bugs in your source code. Gubed PHP Debugger Gubed PHP Debugger is a PHP debugging tool for hunting down logic errors. DBG DBG is a robust and popular PHP debugger for use in local and remote PHP debugging. PHP_Debug PHP_Debug is an open-source project that gives you useful information about your PHP code that can be used for debugging.
PHP_Dyn PHP_Dyn is another excellent PHP debugging tool that’s open-source. You can trace execution and get an output of the argument and return values of your functions. MacGDBp MacGDBp is a live PHP debugger application for the Mac OS. It has all the features you’d expect from a fully featured debugger, such as the ability to step through your code and set breakpoints. Testing and Optimization Tools PHPUnit PHPUnit is a tool that helps you test your Web application’s stability and scalability. SimpleTest SimpleTest is a straightforward unit-testing platform for PHP applications.
PHP_CodeSniffer PHP_CodeSniffer is a PHP 5 script for detecting conformance to a predefined PHP coding standard and for maintaining uniform coding styles for large projects and teams. dBug dBug tool is used for outputting data tables that contain information about arrays, classes and objects, database resources and XML resources, making it very useful for debugging purposes. PHP Profile Class PHP Profile Class is an excellent PHP profiling tool for your Web applications. Using this class will help you quickly and easily gain insight into which parts of your app could use some refactoring and optimization. Documentation Tools phpDocumentor phpDocumentor is a documentation tool for your PHP source code. PHP DOX An AJAX-powered PHP documentation search engine that enables you to search titles from all PHP documentation pages.
Security Tools Securimage Securimage is open-source PHP CAPTCHA script for generating complex images. Scavenger Scavenger helps system administrators respond to vulnerability findings, track vulnerability findings and review accepted and false-positive answered vulnerabilities, without “nagging” them with old vulnerabilities. PHP-IDS PHP-IDS is a simple-to-use, well-structured, fast and state-of-the-art security layer for your PHP-based Web application. Pixy: PHP Security Scanner Pixy is a Java program that performs automatic scans of PHP 4 source code, aimed to detect XSS and SQL injection vulnerabilities.