This is done by asking a specific server what your IP address is: They are all correct addresses, but your computer may only be able to use one of them, so feel free to try each one.Īn alternative method is to use the curl utility to contact an outside party to tell you how it sees your server. This will give you two or three lines back. ip addr show eth0 | grep inet | awk '' | sed 's/\/.*$//'.First, you could use the iproute2 tools to get your IP address by typing this: There are a few different ways to do this from the command line. Usually, this is the address you use to connect to your server through SSH. If you do not know what your server’s public IP address is, there are a number of ways you can find it. How To Find your Server’s Public IP Address If you see this page, then your web server is now correctly installed and accessible through your firewall. You will see the default Ubuntu 18.04 Apache web page, which is there for informational and testing purposes. You can do a spot check right away to verify that everything went as planned by visiting your server’s public IP address in your web browser (see the note under the next heading to find out what your public IP address is if you do not have this information already): your_server_ip To allow incoming HTTP and HTTPS traffic for this server, run: You can check that UFW has an application profile for Apache like so:ĭescription: Apache v2 is the next generation of the omnipresent Apache web Next, assuming that you have followed the initial server setup instructions and enabled the UFW firewall, make sure that your firewall allows HTTP and HTTPS traffic. Press Y and hit ENTER to confirm, and the installation will proceed. Once the cache has been updated, you can install Apache with:Īfter entering this command, apt will tell you which packages it plans to install and how much extra disk space they’ll take up. If this is your first time using sudo in this session, you’ll be prompted to provide your regular user’s password to validate your permissions. It’s well-documented and has been in wide use for much of the history of the web.įirst, make sure your apt cache is updated with: The Apache web server is a popular open source web server that can be used along with PHP to host dynamic websites. Step 1 - Installing Apache and Updating the Firewall To set this up, you can follow our initial server setup guide for Ubuntu 18.04. In order to complete this tutorial, you’ll need to have an Ubuntu 18.04 server with a non-root sudo-enabled user account and a basic firewall configured. In this guide, we’ll install a LAMP stack on an Ubuntu 18.04 server. The site data is stored in a MySQL database, and dynamic content is processed by PHP. This term is actually an acronym which represents the Linux operating system, with the Apache web server. As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option.Īlternatively you can here view or download the uninterpreted source code file.įor more information about "gotest.php" see the Fossies "Dox" file reference documentation.Ī hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.ġ 13 */ 14 15 use go\core\Environment 16 17 $product_name = 'Group-Office' 18 19 /** 20 * Format a size to a human readable format.A “LAMP” stack is a group of open-source software that is typically installed together to enable a server to host dynamic websites and web apps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |