Apche installation


















After setting up our website, we need to activate the virtual hosts configuration file to enable it. We do that by running the following command in the configuration file directory:. Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Tutorials Install and Configure Apache. Originally authored by Aden Padilla 2. Installing Apache To install Apache, install the latest meta-package apache2 by running: sudo apt update sudo apt install apache2 After letting the command run, all required packages are installed and we can test it out by typing in our IP address for the web server. Further reading: VirtualHost examples. Was this tutorial useful? Thank you for your feedback. Legal information Data privacy Manage your tracker settings Report a bug on this site.

They will be compiled as shared objects DSOs which can be loaded or unloaded at runtime. Similarly, you can disable modules with the --disable- module option. Be careful when using these options, since configure cannot warn you if the module you specify does not exist; it will simply ignore the option. In addition, it is sometimes necessary to provide the configure script with extra information about the location of your compiler, libraries, or header files.

This is done by passing either environment variables or command line options to configure. For more information, see the configure manual page. Or invoke configure using the --help option. When configure is run it will take several minutes to test for the availability of features on your system and build Makefiles which will later be used to compile the server.

Details on all the different configure options are available on the configure manual page. Now you can build the various parts which form the Apache package by simply running the command:.

Please be patient here, since a base configuration takes several minutes to compile and the time will vary widely depending on your hardware and the number of modules that you have enabled. This step will typically require root privileges, since PREFIX is usually a directory with restricted write permissions. If you are upgrading, the installation will not overwrite your configuration files or documents.

Then stop the server again by running:. The first step in upgrading is to read the release announcement and the file CHANGES in the source distribution to find any changes that may affect your site. When changing between major releases for example, from 2. All modules will also need to be upgraded to accommodate changes in the module API. Upgrading from one minor version to the next for example, from 2. The make install process will not overwrite any of your existing documents, log files, or configuration files.

In addition, the developers make every effort to avoid incompatible changes in the configure options, run-time configuration, or the module API between minor versions. In most cases you should be able to use an identical configure command line, an identical configuration file, and all of your modules should continue to work.

To upgrade across minor versions, start by finding the file config. This will contain the exact configure command line that you used to configure the source tree. Then to upgrade from one version to the next, you need only copy the config. You can pass additional arguments to config. A large number of third parties provide their own packaged distributions of the Apache HTTP Server for installation on particular platforms. Our software license not only permits, but encourages, this kind of redistribution.

However, it does result in a situation where the configuration layout and defaults on your installation of the server may differ from what is stated in the documentation. While unfortunate, this situation is not likely to change any time soon.

A description of these third-party distributions is maintained in the HTTP Server wiki, and should reflect the current state of these third-party distributions. However, you will need to familiarize yourself with your particular platform's package management and installation procedures.

Copyright The Apache Software Foundation. Licensed under the Apache License, Version 2. Compiling and Installing Available Languages: de en es fr ja ko tr. See the Fedora project's documentation for platform-specific notes.

See Ubuntu's documentation for platform-specific notes. Don't see your favorite platform mentioned here? Come help us improve this doc.



0コメント

  • 1000 / 1000