Uploaded on

apache-Relates To LAmp

apache-Relates To LAmp

More in: Education , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,197
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
29
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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