Published on

apache-Relates To LAmp

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. 10 th planet Technologies ArjunRaj.d <ul><li>Apache </li></ul><ul><li>Installation </li></ul><ul><li>Uninstallation </li></ul><ul><li>Setup </li></ul><ul><li>Configure </li></ul>
  2. 2. INSTALLATION <ul><li>downloading the latest stable release. At the time of this writing, that was Apache 2.0. The best place to get Apache is from the Apache HTTP Server download site. </li></ul><ul><li>Download the sources appropriate to your system. Binary releases are available as well. </li></ul><ul><li>Once you've downloaded the files you need to uncompress them and untarring: </li></ul><ul><li>gunzip -d httpd-2_0_NN.tar.gz </li></ul><ul><li>tar xvf httpd-2_0_NN.tar </li></ul>
  3. 3. a: <ul><li>This creates a new directory under the current directory with the source files. </li></ul>
  4. 4. Installation Part <ul><li>Code: </li></ul><ul><li>yum install httpd </li></ul><ul><li>Code: </li></ul><ul><li>yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel </li></ul>
  5. 5. Configure: <ul><li>The easiest way is to accept all the defaults and just type: </li></ul><ul><li>./configure </li></ul><ul><li>set specific environment variables and modules. Some of the modules I like to have installed are: </li></ul>
  6. 6. a: <ul><li>* mod_alias - to map different parts of the URL tree </li></ul><ul><li>* mod_include - to parse Server Side Includes </li></ul><ul><li>* mod_mime - to associate file extensions with its MIME-type </li></ul><ul><li>* mod_rewrite - to rewrite URLs on the fly </li></ul><ul><li>* mod_speling (sic) - to help your readers who might misspell URLs </li></ul><ul><li>* mod_ssl - to allow for strong cryptography using SSL </li></ul><ul><li>* mod_userdir - to allow system users to have their own Web page directories </li></ul>
  7. 7. Uninstall: <ul><li>yum remove httpd </li></ul><ul><li>OPTION 2: Run </li></ul><ul><li>Code: </li></ul><ul><li>/etc/init.d/httpd stop </li></ul><ul><li>to get the package name. It should come back with something like this: </li></ul><ul><li>Code: </li></ul><ul><li>apachecfg-0.3.1-6 </li></ul><ul><li>apache-1.2.5-1 </li></ul>
  8. 8. a: <ul><li>You can then use this command to remove Apache: </li></ul><ul><li>Code: </li></ul><ul><li>rpm -e apache-1.2.5-1 </li></ul><ul><li>OPTION 3. If you compiled apache on your own. If you did a manual install then just delete /usr/local/apache (or wherever it is installed). </li></ul>
  9. 9. b: <ul><li>OPTION 4. f you are doing it manually then to remove Apache from your Linux server, enter this line at the Linux command prompt: </li></ul><ul><li>Code: </li></ul><ul><li>rm -rf /usr/local/apache2 </li></ul>
  10. 10. c: <ul><li>OPTION 5: To find files by name try &quot;locate&quot;; it will force you to run updatedb the first time. </li></ul><ul><li>To find packages that are installed try </li></ul><ul><li>rpm -qa *apache* *mysql* </li></ul><ul><li>{ note &quot;rpm -qa&quot; lists all installed packages } </li></ul>
  11. 11. d: <ul><li>On mthis system: </li></ul><ul><li>Code: </li></ul><ul><li>[root@foo ~]# rpm -qa *apache* *mysql* </li></ul><ul><li>ant-apache-resolver-1.6.5-2jpp.2 </li></ul><ul><li>koffice-kexi-driver-mysql-1.6.1-4.fc6 </li></ul><ul><li>mysql-server-5.0.27-1.fc6 </li></ul><ul><li>ant-apache-log4j-1.6.5-2jpp.2 </li></ul><ul><li>mysql-bench-5.0.27-1.fc6 </li></ul><ul><li>mysql-connector-odbc-3.51.12-2.2 </li></ul>
  12. 12. e: <ul><li>apachetop-0.12.6-2.fc6 </li></ul><ul><li>ant-apache-oro-1.6.5-2jpp.2 </li></ul><ul><li>ant-apache-regexp-1.6.5-2jpp.2 </li></ul><ul><li>mod_auth_mysql-3.0.0-3.1 </li></ul><ul><li>libdbi-dbd-mysql-0.8.1a-1.2.2 </li></ul><ul><li>mysql-5.0.27-1.fc6 </li></ul><ul><li>php-mysql-5.1.6-3.3.fc6 </li></ul><ul><li>ruby-mysql-2.7.1-2.fc6 </li></ul><ul><li>ant-apache-bcel-1.6.5-2jpp.2 </li></ul>
  13. 13. f: <ul><li>To see what files are in a specifig package </li></ul><ul><li>Code: </li></ul><ul><li>[root@foo ~]# rpm -ql ant-apache-bcel </li></ul><ul><li>/etc/ant.d/apache-bcel </li></ul><ul><li>/usr/lib/gcj/ant </li></ul><ul><li>/usr/lib/gcj/ant/ant-apache-bcel-1.6.5.jar.db </li></ul><ul><li>/usr/lib/gcj/ant/ant-apache-bcel-1.6.5.jar.so </li></ul><ul><li>/usr/share/java/ant/ant-apache-bcel-1.6.5.jar </li></ul><ul><li>/usr/share/java/ant/ant-apache-bcel.jar </li></ul><ul><li>/usr/share/java/ant/ant-jakarta-bcel.jar </li></ul>
  14. 14. Using system-config-httpd <ul><li>system-config-httpd graphical tools you many need to install the system-config-httpd packahges, refer to this Apache httpd installation step if you cant find the Apache configuration tools on the menu. </li></ul><ul><li>[root@fedora10 ~]# yum -y system-config-httpd* </li></ul><ul><li>[root@fedora10 ~]# </li></ul>
  15. 15. a: <ul><li>2. Go to the System -> Administration and click on http menu </li></ul>
  16. 16. b: <ul><li>Key in root password and click on OK button to start system-config-httpd </li></ul>
  17. 17. c: <ul><li>4. HTTP server configuration, the Main menu tab... </li></ul>
  18. 18. d: <ul><li>on Add button on Main Apache basic setup screen (Add new address) you will be able to add new ip address and port for Apache web server </li></ul><ul><li>Add Apache httpd ip address and port </li></ul>
  19. 19. e: <ul><li>5. Apache Virtual Hosts configuration tab... </li></ul>
  20. 20. f: <ul><li>6. Apache Http Server configuration tab </li></ul>
  21. 21. g: <ul><li>7. Apache Http Server Performance Tuning configuration... </li></ul>
  22. 22. Thank u