If this is not what you want, you can disable this behavior by typing:. Now that you know how to manage the service itself, you should take a few minutes to familiarize yourself with a few important directories and files. Now that you have your web server installed, you have many options for the type of content to serve and the technologies you want to use to create a richer experience.
Learn how to use Apache Virtual Hosts here. Where would you like to share this to? Twitter Reddit Hacker News Facebook. Share link Tutorial share link. Sign Up. DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. By Justin Ellingwood Published on May 26, This article uses Ubuntu Ubuntu Prerequisites Before you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server.
When you have an account available, log in as your non-root user to begin. Afterwards, we can install the apache2 package: sudo apt-get update sudo apt-get install apache2 After confirming the installation, apt-get will install Apache and all required dependencies. Step 2: Adjust the Firewall Before we can test Apache, we need to modify our firewall to allow outside access to the default web ports. We can list the ufw application profiles by typing: sudo ufw app list You should get a listing of the application profiles: Output.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.
Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 7. Hot Network Questions. Question feed. Selecting previously unselected package libmysqlclient-dev.
Unpacking libmysqlclient-dev 5. Selecting previously unselected package libaprutil1-dev. Unpacking libaprutil1-dev 1. Selecting previously unselected package apache2-dev. Unpacking apache2-dev 2. Selecting previously unselected package lksctp-tools. Unpacking lksctp-tools 1. Processing triggers for man-db 2.
Processing triggers for doc-base 0. Processing 2 added doc-base files Registering documents with scrollkeeper Processing triggers for install-info 5. Setting up libapr1:amd64 1. Setting up libaprutil1:amd64 1.
Setting up libaprutil1-ldap:amd64 1. Setting up libaprutil1-dbd-mysql:amd64 1. Setting up libgssrpc4:amd64 1. Setting up libkadm5clnt-mit9:amd64 1. Setting up libkdbamd64 1. Setting up libkadm5srv-mit9:amd64 1. Setting up libpcreamd64 Setting up libsctp1:amd64 1. Setting up uuid-dev 2. Setting up libsctp-dev 1. Setting up libapr1-dev 1. Setting up libldap2-dev:amd64 2. Setting up libexpat1-dev:amd64 2. Setting up libpcrecpp0:amd64 Setting up libpcre3-dev:amd64 Setting up libpq5 9.
Setting up comerr-dev 2. Setting up krb5-multidev 1. Setting up libpq-dev 9. Setting up libmysqlclient-dev 5. Setting up libaprutil1-dev 1. Setting up apache2-dev 2.
Setting up lksctp-tools 1. Processing triggers for libc-bin 2. Now apxs2 can be used as parameter with phpbrew. Thank you, it worked for me. But the command should read sudo aptitude install apache2-dev. I think it does not matter at all. It installs the latest apache.
0コメント