O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×
Próximos SlideShares
Linux apache installation
Linux apache installation
Carregando em…3

Confira estes a seguir

1 de 48 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (19)

Quem viu também gostou (20)


Mais recentes (20)



  2. 2. LAMP <ul><li>LAMP stands for Linux-Apache-MySQL-PHP. </li></ul><ul><li>Instead of PHP, Perl and Python are also used. </li></ul><ul><li>Instead of linux we can use windows,machintosh,solaris in the form of WAMP,MAMP,SAMP. </li></ul>
  3. 3. LINUX
  4. 4. INTRODUCTION <ul><li>Operating system that was initially created by Linus Torvalds at early 90s </li></ul><ul><li>family of Unix-like computer operating systems that use the Linux kernel. </li></ul><ul><li>Linux is free and Opensource </li></ul><ul><li>It is programmed in C and has UNIX like OS family. </li></ul><ul><li>Based on GPL (GNU Public Licensed) </li></ul>
  5. 5. <ul><li>INSTALLING LINUX </li></ul><ul><li>The first step for setting up Linux on a PC is to run from CD and to pick the version to install. </li></ul><ul><li>Go to the distribution's Web sites and download the live CD/move ISO image for it. </li></ul><ul><li>Burn the ISO image to CDROM. With the CDROM in the drive, reboot the computer and we are now running the Linux version. </li></ul><ul><li>Once distribution is selected it will install,go back to that distribution's Web site and download the install version of the distribution. </li></ul><ul><li>After downloading, burn the ISO images to CDROM. </li></ul><ul><li>Delete the images from your hard drive after burning them to CDs. </li></ul><ul><li>Completely clean hard drive, removing all temp files and defragmenting it before backing up the data. </li></ul><ul><li>Back up the system before installing a new operating system. </li></ul>
  6. 6. <ul><li>The partition table structure for a multi boot system : </li></ul><ul><li>T he first primary partition is your Windows partition. </li></ul><ul><li>The second extended partition is the first Linux partition, and should be set up in the Linux installation process. </li></ul><ul><li>create a partition with the label / </li></ul><ul><li>Create a partition with the label /homeamount of space for distribution] </li></ul><ul><li>Create a partition with the label /usr </li></ul><ul><li>Create a partition with the label /var </li></ul><ul><li>Create a partition with the label /swap </li></ul><ul><li>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. </li></ul>
  7. 7. <ul><li>Selecting a package </li></ul><ul><li>A message will be received in screen after selecting a package. During the installation you will be presented with a series of configuration options. They are: </li></ul><ul><li>The firewall--you should turn it on, and at this time you can choose what traffic will be allowed incoming from the Internet, if any. </li></ul><ul><li>The Display settings--this will configure the graphic server for the GUI, and you should use the test configuration option when doing this. </li></ul><ul><li>The mouse--it is a good idea to specify which connection and type, as the any USB or PS2 default of many distributions is not always a reliable mouse driver. </li></ul><ul><li>The Internet connection--if you connect through a network card, then configure it as a network connection, not a DSL connection, even if you use DSL. </li></ul><ul><li>Bootloader </li></ul><ul><li>When the bootloader is installing, set bootloader to use, GRUB or LILO, etc. You can also set which OS will be the default OS at boot. </li></ul>
  8. 8. <ul><li>CONFIGURING LINUX </li></ul><ul><li>TIP 1. When you need to find a particular file/directory then use the 'locate' command (on Fedora slocate works well too) to find things on your server. Like, typing: locate xinetd </li></ul><ul><li>TIP 2 . If you did not know this already, all of the web server html files for Fedora are placed under: /var/www/html </li></ul><ul><li>Which Processes are Running On Your Server? </li></ul><ul><li>Need to find out asap! Use the command: </li></ul><ul><li>/sbin/chkconfig --listn </li></ul><ul><li>Output: </li></ul><ul><li>… </li></ul><ul><li>httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off </li></ul><ul><li>telnet: off </li></ul><ul><li>… </li></ul>
  9. 9. <ul><li>Get Processes Started </li></ul><ul><li>Starting webserver (httpd) </li></ul><ul><li>initialization (aka init) directory: </li></ul><ul><li>cd /etc/rc.d/init.d/ </li></ul><ul><li>./httpd start </li></ul><ul><li>OUTPUT: </li></ul><ul><li>Starting httpd: [ OK ] </li></ul><ul><li>ALL future STARTUPS! </li></ul><ul><li>Edit the config files as applied to the &quot;rc&quot; directory of your choice. Change directory to: </li></ul><ul><li>/etc/rc.d/rc5.d </li></ul><ul><li>the rc5.d is a resource directory (under /etc) for run level 5... etc. </li></ul><ul><li>You can manually force this by simply using a command like: </li></ul><ul><li>smv K15httpd S15httpd </li></ul>
  10. 10. <ul><li>What About telnet and ftp? </li></ul><ul><li>1.changing directories to xinetd: </li></ul><ul><li>cd /etc/xinetd.d/ </li></ul><ul><li>type ls to list all of the processes that can be configured. </li></ul><ul><li>2. Edit the telnet file and change two lines: </li></ul><ul><li># default: on </li></ul><ul><li>... </li></ul><ul><li>disabled = no </li></ul><ul><li>3. automatic restart of the xinetd to load without rebooting: </li></ul><ul><li>/etc/rc.d/init.d/xinetd restart </li></ul><ul><li>OUTPUT: </li></ul><ul><li>Stopping xinetd: [ OK ] Starting xinetd: [ OK ] </li></ul>
  11. 11. <ul><li>For complete list see “Linux in a Nutshell” </li></ul><ul><ul><li>pwd (identifies current directory) </li></ul></ul><ul><ul><li>cd (change directory) and cd .. (up one directory), </li></ul></ul><ul><ul><li>cd ../.. (up two directories) </li></ul></ul><ul><ul><li>ls (looks in current directory) ls –l (looks in current directory and lists all permissions) </li></ul></ul><ul><ul><li>mkdir (make a new directory) </li></ul></ul><ul><ul><li>rm remove/delete file </li></ul></ul><ul><ul><li>rm –R remove/delete folder </li></ul></ul><ul><ul><li>mv and mv –R moves files and folders </li></ul></ul><ul><ul><li>cp and cp –R copies files and folders </li></ul></ul><ul><ul><li>ps and ps –a (looks for all processes running) </li></ul></ul><ul><ul><li>kill (will kill a process running) </li></ul></ul><ul><ul><li>man command (gives information about a command) </li></ul></ul><ul><ul><ul><li>man wc </li></ul></ul></ul>Basic Commands
  12. 12. 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)   []
  13. 13. # 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)   []
  14. 14. UNINSTALLING LINUX <ul><li>select Hardware -->Partitioning </li></ul><ul><li>Delete all Linux partitions including the Linux swap partition. </li></ul><ul><li>Partitions of another operating system that were resized during the installation can be restored to the original size. </li></ul><ul><li>Select the partition whose size you want to increase, click Resize, and select the new size with the slider. Confirm with OK. </li></ul><ul><li>Complete all changes in the partitioning dialog with Next and confirm the subsequent security query with Yes. The changes will be applied. </li></ul><ul><li>To remove LILO or GRUB the original boot code that was in the MBR prior to the installation of LINUX can be restored. </li></ul><ul><li>Boot Loader Setup -> Reset ->Restore MBR of Hard Disk </li></ul><ul><li>After a security query, the boot code in the MBR is rewritten. </li></ul><ul><li>The partition table remains unmodified. </li></ul><ul><li>If another operating system is installed on your machine, it should boot automatically the next time the machine is powered on. </li></ul>
  15. 15. APACHE
  16. 16. INTRODUCTION <ul><li>APACHE is a open source web server software </li></ul><ul><li>It is a popular http server software </li></ul><ul><li>It is available for variety of os .eg UNIX,LINUX,solaris,GNU. </li></ul><ul><li>It is written in C and cross platform operating system </li></ul>
  17. 17. <ul><li>INSTALLING APACHE </li></ul><ul><li>Login as root </li></ul><ul><li>Install Apache </li></ul><ul><li>in /usr/local/etc. </li></ul><ul><li>Go there now </li></ul><ul><li>cd /usr/local/etc </li></ul><ul><li>Download the latest stable Apache from apache.org into this directory. </li></ul><ul><li>need to create the directory: mkdir </li></ul><ul><li>/usr/local/downloads </li></ul>
  18. 18. <ul><li>ftp commands to get the file: cd </li></ul><ul><li>/usr/local/downloads </li></ul><ul><li>ftp ftp.apache.org </li></ul><ul><li>cd dist </li></ul><ul><li>bin </li></ul><ul><li>get apache_1.3.14.tar.gz </li></ul><ul><li>bye </li></ul><ul><li>Untar the file with: tar xzf apache_1.3.14.tar.gz </li></ul><ul><li>-C ../etc </li></ul><ul><li>created a directory apache_1.3.14. </li></ul><ul><li>provide a link: </li></ul><ul><li>cd /usr/local/etc </li></ul><ul><li>ln -s apache_1.3.14 httpd </li></ul>
  19. 19. <ul><li>CONFIGURING APACHE </li></ul><ul><li>First create the directory structure above: </li></ul><ul><li>cd /mkdir www </li></ul><ul><li>Now create directories for the configuration files, log files and servers: </li></ul><ul><li>cd /www </li></ul><ul><li>mkdir conf logs servers </li></ul><ul><li>Before compiling configure the Apache makefiles. </li></ul><ul><li>cd /usr/local/etc/httpd </li></ul><ul><li>./configure --prefix=/usr/local/etc/httpd --sysconfdir=/www/conf --enable-module=rewrite –enable-module=status </li></ul><ul><li>This sets up the installation with the apache binaries in /usr/local/etc/httpd and puts the configuration files in /www/conf. </li></ul>
  20. 20. <ul><li>It also sets up status reporting and the rewrite module allows url redirection and rewriting. </li></ul><ul><li>If extra modules are added then check out the options by using: </li></ul><ul><li>./configure –help </li></ul><ul><li>Now Apache is executable: make </li></ul><ul><li>And install all the Apache files with: make install </li></ul><ul><li>If you are installing a new apache, it will not override the existing configuration files. </li></ul><ul><li>Of course, this can also be a gotcha if you want to wipe the old installation completely... </li></ul>
  21. 21. <ul><li>APACHE SETUP </li></ul><ul><li>Check if apache is running on the system by using the command top </li></ul><ul><li>Apache is running which is identified as nummbers given below: </li></ul><ul><li>475 nobody 0 0 1388 1388 1232 S 0 0.0 1.0 0:00 httpd </li></ul><ul><li>We can know what Apache is doing on a machine the pointing the browser at it: </li></ul><ul><li>http://localhost </li></ul><ul><li>The server configuration file for our installation is at: /www/conf/httpd.conf </li></ul><ul><li>Go there now with: </li></ul><ul><li>cd /www/conf </li></ul><ul><li>To upgrade and to keep your old configuration file then just copy it over the new one: cp /etc/httpd/conf/httpd.conf. </li></ul>
  22. 22. <ul><ul><li>There is a need to use existing access and srm config files: cp /etc/httpd/conf/access.conf . </li></ul></ul><ul><li>cp /etc/httpd/conf/srm.conf . </li></ul><ul><li>To run Apache on a different port to the default (80) then change the number on line 238. </li></ul><ul><li>Port 80 </li></ul><ul><li>To change the server admin email address on line 260: </li></ul><ul><li>ServerAdmin [email_address] </li></ul><ul><li>Then specify your machine name on line 278, you may just have to remove the # comment marker. </li></ul><ul><li>To configure virtual hosts Apache will use the virtual server as a default documents for the site. </li></ul><ul><li>ServerName synop.com </li></ul><ul><li>Set the document root on line 285: </li></ul><ul><li>DocumentRoot &quot;/www/servers&quot; </li></ul><ul><li>And on line 310: Y </li></ul><ul><li><Directory &quot;/www/servers&quot;> </li></ul>
  23. 23. <ul><li>To change the Apache configuration on directory basis then the use of .htaccess files. </li></ul><ul><li>To enable set AllowOverride to All: </li></ul><ul><li>AllowOverride All </li></ul><ul><li>The default file to serve in directories is index.html. </li></ul><ul><li>change this or add new file names: </li></ul><ul><li>DirectoryIndex index.html index.htm </li></ul><ul><li>To know where visitors are from then turn host name look ups. </li></ul><ul><li>Turning this on place extra load on your server as it has to look up the host name corresponding to the IP address of all visitors. </li></ul><ul><li>HostnameLookups On I </li></ul>
  24. 24. <ul><li>UINSTALLING APACHE </li></ul><ul><li>In the Policy Agent base directory , enter the following command: </li></ul><ul><li># ./uninstall_linux_agent_apache </li></ul><ul><li>1.Click Next on Welcome panel. </li></ul><ul><li>2.Click Uninstall Now. </li></ul><ul><li>3.Click Close after uninstallation is complete. </li></ul><ul><li>4.Restart the Apache HTTP Server instance from which you uninstalled the agent. </li></ul><ul><li>Command-Line Uninstallation of Agent for Apache HTTP Server on Linux Systems </li></ul><ul><li>To uninstall a web agent, you must run the uninstallation program. </li></ul>
  25. 25. <ul><li># ./uninstall_linux_agent_apache -nodisplay </li></ul><ul><li>The uninstallation program displays the following text: </li></ul><ul><li>Ready to Uninstall </li></ul><ul><li>1. Uninstall Now </li></ul><ul><li>2. Start Over </li></ul><ul><li>3. Exit Uninstallation </li></ul><ul><li>Enter 1, to remove the product. </li></ul><ul><li>When prompted,enter 1 to begin uninstallation. </li></ul><ul><li>The uninstallation program displays the following text: </li></ul><ul><li>Product Result More Information </li></ul><ul><li>1. Sun Java(tm) System Access Manager Policy Agent Full Available </li></ul><ul><li>2. Done </li></ul><ul><li>To see log information on the agent, enter 1. To exit the uninstallation program, enter 2. </li></ul>
  26. 26. MYSQL
  27. 27. INTRODUCTION <ul><li>MySQL is a popular, scalable, free, open-source database management system (DBMS). </li></ul><ul><li>It runs on Windows, Linux, and many other operating systems. </li></ul><ul><li>MySQL AB, the Swedish company that owns the codebase offers services, extra tools, and licensed versions. </li></ul><ul><li>MySQL AB states that MySQL is used in 11 million installations in the world. </li></ul><ul><li>We will use phpMyAdmin to access MySQL through Apache. </li></ul>
  29. 29. <ul><li>3. Install the downloaded MySQL package </li></ul><ul><li>Install the MySQL Server and Client packages . </li></ul><ul><li>start the MySQL daemon automatically. </li></ul><ul><li>Install the “Header and Libraries” that are part of the MySQL-devel packages. </li></ul><ul><li>4.  Perform post-install security activities on MySQL </li></ul><ul><li>set a password for the root user. </li></ul><ul><li>To run the mysql_secure_installation script that will take care of all the typical security related items on the MySQL. </li></ul><ul><li>On a high level this does the following items: </li></ul><ul><li>Change the root password </li></ul><ul><li>Remove the anonymous user </li></ul><ul><li>Disallow root login from remote machines </li></ul><ul><li>Remove the default sample test database </li></ul>
  30. 30. <ul><li>5.  Verify the MySQL installation: </li></ul><ul><li>You can check the MySQL installed version by performing mysql -V as shown below: </li></ul><ul><li>[local-host]# mysql -V </li></ul><ul><li>mysql  Ver 14.14 Distrib 5.1.25-rc, for redhat-linux-gnu (i686) using readline 5.1 </li></ul><ul><li>Connect to the MySQL database using the root user and make sure the connection is successfull. </li></ul><ul><li>[local-host]# mysql -u root -p </li></ul><ul><li>Enter password: </li></ul><ul><li>Welcome to the MySQL monitor.  Commands end with ; or . </li></ul><ul><li>Your MySQL connection id is 13 </li></ul><ul><li>Server version: 5.1.25-rc-community MySQL Community Server (GPL) </li></ul><ul><li>Type 'help;' or '' for help. Type '' to clear the buffer. </li></ul><ul><li>mysql> </li></ul>
  31. 31. 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
  32. 32. 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 &quot;Setup&quot; and you are done.
  33. 33. MySQL QUERIES <ul><li>CREATE A DATABASE: </li></ul><ul><li>create database database_name; </li></ul><ul><li>DISPLAY DATABASE: </li></ul><ul><li>show databases; </li></ul><ul><li>use database_name </li></ul><ul><li>DISPLAY TABLE: </li></ul><ul><li>show tables </li></ul><ul><li>CREATE A TABLE: </li></ul><ul><li>create table create table person </li></ul><ul><li>(id int, person varchar (32) ) </li></ul><ul><li>engine=engine_name </li></ul><ul><li>DELETING A TABLE: </li></ul><ul><li>Drop table table_name </li></ul><ul><li>INSERT VALUE IN A TABLE: </li></ul><ul><li>Insert into table_name.db_name </li></ul><ul><li>(field1 , field 2...) Values (v1, v2, ...), (v1',v2'); </li></ul><ul><li>VIEW ALL DATA IN A TABLE </li></ul><ul><li>select * from table name where cond = value </li></ul><ul><li>SELECT DATA FROM TWO DIFFERENT TABLE: </li></ul><ul><li>Select field1, field2 from tbl1, tbl2 where field3= field4; </li></ul><ul><li>SHOW DATABASE VARIABLE: </li></ul><ul><li>show variables; </li></ul>
  34. 34. ADVANCED COMMANDS IN MYSQL <ul><li>Alter Table - MySQL Command </li></ul><ul><li>How to use the MySQL alter table command, and what to combine it with to do different things to your database. </li></ul><ul><li>Ceil - MySQL Command </li></ul><ul><li>Use Ceiling to always round a number up </li></ul><ul><li>Change - MySQL Command </li></ul><ul><li>The change SQL command can be used to change a column's name </li></ul><ul><li>Count - MySQL Command </li></ul><ul><li>The MySQL Count command is used to count the number of records held on a specific table </li></ul><ul><li>Create Database - MySQL Command </li></ul><ul><li>Use the create database command in MySQL to create a new database on the MySQL server </li></ul>
  35. 35. <ul><li>Describe - MySQL Command </li></ul><ul><li>The describe command shows a tables fields and their formats </li></ul><ul><li>Drop Column - MySQL Command </li></ul><ul><li>How to remove (drop) a column from a table using MySQL with your SQL database. </li></ul><ul><li>Drop Database - MySQL Command </li></ul><ul><li>The drop database command in MySQL will remove a database from the server </li></ul><ul><li>Drop Table - MySQL Command </li></ul><ul><li>Remove an entire table from a MySQL database using the drop table command </li></ul><ul><li>Floor - MySQL Command </li></ul><ul><li>Use Floor to always round a number down </li></ul><ul><li>From - MySQL Command </li></ul><ul><li>From is used with Select in MySQL to choose what table to query from </li></ul><ul><li>Limit - MySQL Command </li></ul><ul><li>Limit the results of your MySQL query to results within a certain number range. </li></ul><ul><li>Modify - MySQL Command </li></ul><ul><li>Change the size of a MySQL column by using the Modify SQL command </li></ul>
  36. 36. <ul><li>MySQL Login from Unix Shell </li></ul><ul><li>Login to your mysql server from unix shell </li></ul><ul><li>Select - MySQL Command </li></ul><ul><li>The SQL select statement is used to choose what data to pull from the mysql database </li></ul><ul><li>Show Columns - MySQL Command </li></ul><ul><li>The show columns command is used to display all the columns for a given table and their details. </li></ul><ul><li>Show Databases- MySQL Command </li></ul><ul><li>Use the show databases command in MySQL to show all the databases on the MySQL server </li></ul><ul><li>Show Tables - MySQL Command </li></ul><ul><li>The show tables command is used to display all the tables in a MySQL database </li></ul>
  37. 37. 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.
  38. 38. PHP
  39. 39. INTRODUCTION <ul><li>PHP is popular, simple and lightweight server-side scripting language used to create dynamic web pages. </li></ul><ul><li>On the server, PHP code produces HTML. </li></ul><ul><li>Client only receives HTML. </li></ul><ul><li>Client can't view the original PHP code. </li></ul><ul><li>Some sites that use PHP: </li></ul><ul><ul><li>Wikipedia, Yahoo, Digg, Facebook </li></ul></ul>
  40. 40. <ul><li>INSTALLING PHP </li></ul><ul><li>logged in as root to perform installation. </li></ul><ul><li>su root </li></ul><ul><li>save all downloads in: /usr/local/download </li></ul><ul><li>need to create directory now: mkdir /usr/local/download </li></ul><ul><li>install PHP in /usr/local/etc, but use a tricky tar command to do it in on hit from the download directory: </li></ul><ul><li>cd /usr/local/download </li></ul><ul><li>tar xzf php-3.0.12.tar.gz -C ../etc </li></ul><ul><li>create a nice directory name (php) for the installed directory: </li></ul><ul><li>cd /usr/local/etc </li></ul><ul><li>ln -s php-3.0.12 php </li></ul>
  41. 41. 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.
  42. 42. 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.
  43. 43. 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.
  44. 44. 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.
  45. 45. <ul><li>PHP SETUP </li></ul><ul><li>PHP has created an ini file.To install this into it's correct location. cd ../php </li></ul><ul><li>cp php3.ini-dist /www/conf/php3.ini </li></ul><ul><li>Tell Apache to pass certain file extensions to PHP. n Apache's httpd.conf file. cd /www/conf </li></ul><ul><li>Edit the httpd.conf file. </li></ul><ul><li>To use the extension .phtml,use whatever extension you like (even .html) by adding lines to httpd.conf like this: </li></ul><ul><li>AddType application/x-httpd-php3 .phtml </li></ul>
  46. 46. helloworld.php <html> <head> <title> PHP: Hello World </title> </head> <body> <h1> PHP Says: </h1> <?php echo &quot;Hello World!&quot; ?> </body> </html>
  47. 48. THANK YOU