Lamp Server Ubuntu

16 views

DigitalOcean Cloud Firewalls accommodate a able firewall account at the arrangement level, attention your assets from crooked traffic.

Ubuntu 16.04 LTS LAMP server tutorial with Apache 2

Ubuntu 16.04 LTS LAMP server tutorial with Apache 2


Setting Up a LAMP Server In Ubuntu Hardy Heron

Setting Up a LAMP Server In Ubuntu Hardy Heron


How to Create a LAMP Server Using Ubuntu: 9 Steps (with Pictures)

How to Create a LAMP Server Using Ubuntu: 9 Steps (with Pictures)


Step By Step Ubuntu 12

Step By Step Ubuntu 12


Installing LAMP Stack On Ubuntu Server Tutorial - CodeSamplez

Installing LAMP Stack On Ubuntu Server Tutorial - CodeSamplez


Deploy the Firewall and Server | Interoute CloudStore

Deploy the Firewall and Server | Interoute CloudStore


How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu ...

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu ...


How to install Ubuntu Server with a full LAMP stack - TechRepublic

How to install Ubuntu Server with a full LAMP stack - TechRepublic


The easiest way Installing Lamp server in Ubuntu - Ubuntu Sharing

The easiest way Installing Lamp server in Ubuntu - Ubuntu Sharing


How to Turn Your Home Ubuntu PC Into a LAMP Web Server

How to Turn Your Home Ubuntu PC Into a LAMP Web Server


Ubuntu 7

Ubuntu 7

Although you can configure Cloud Firewalls through the DigitalOcean Control Panel, back you accept abounding Droplets to manage, charge to calligraphy a process, or adopt alive from the terminal, a command-line interface can be a bigger choice.

In this tutorial we'll apprentice how to use doctl—the official DigitalOcean Command-Line Client—to actualize and administrate Cloud Firewalls for a web server.

For this tutorial, you will need:

We'll be creating a one-click LAMP (Linux, Apache, MySQL, PHP) assemblage angel alive Ubuntu 16.04, in the nyc1 region, and we'll put this on a 512MB Droplet. Afore alpha this tutorial, though, we acclaim that you accustom yourself with doctl and Cloud Firewalls by account How To Use Doctl, the Official DigitalOcean Command-Line Client and An Introduction To DigitalOcean Cloud Firewalls.

First, we'll accept a arena for our Droplet. We'll be application nyc1 in this tutorial, but you can see all of the regions and their slugs with the afterward command:

Output

Since we don't appetite to accelerate passwords over the arrangement and we appetite to abate the achievability of a brute-force attack, we'll defended our web server with SSH key authentication.

To actualize a Atom that includes an SSH key, doctl requires the SSH key fingerprint, which you can admission with the command:

Output

Copy the fingerprint of the SSH key you appetite to use with your Droplet.

Now, let's accompany aggregate calm in a distinct command that will actualize a 512MB Atom called web-1 in the nyc1 region, application a one-click LAMP assemblage angel alive Ubuntu 16.04 with our SSH key.

The achievement gives us an overview of the Atom we aloof created, including the Droplet's ID, name, IPv4 address, Memory, and more:

Output

Note: You will charge to delay a few account for the accessories action to complete. Already provisioned, the Atom will accept an IPv4 abode and a cachet of alive instead of new.

Use the afterward command to analysis your Droplet's status, and, if it's absolutely provisioned, accomplish agenda of the ID as we'll charge it back allotment the firewall to the Atom in Footfall 2. Do not move accomplished this footfall until your Droplet's cachet reads active.

Output

Next, use doctl to log into the Atom via SSH, enabling your LAMP accession and accepting added instructions about how to adapt your server for assembly use. If you get a affiliation banned absurdity message, your Atom is not yet ready. Delay a few account and afresh re-run the account command to verify that your Droplet's cachet is set to alive afore continuing.

Output

After you configure the Atom for your needs, avenue the SSH session.

Finally, point your web browser to the Droplet's IP abode to accomplish abiding that the LAMP assemblage is alive correctly. You should see the absence DigitalOcean one-click LAMP assemblage landing folio with the message: "Please log into your atom via SSH to configure your LAMP installation." If you don't, re-trace the preceeding accomplish to ensure that you've enabled LAMP and that you've accurately affected your Droplet's IP abode into your browser.

Because we've already completed the LAMP agreement appropriate for this tutorial, we're accessible to move on to attention the Atom from crooked traffic.

To begin, we'll use the Atom ID that we got from the doctl compute atom account command in Footfall 1 to actualize a Cloud Firewall called web-firewall that allows entering SSH admission on anchorage 22 and all outbound TCP, UDP and ICMP connections. This will let us administrate the server from the command band while still giving abounding axiological casework the adeptness to accomplish normally.

The agreement acreage is appropriate and charge be set either to tcp, udp, or icmp, and you charge accommodate a ports amount for all protocols except icmp which, by its specification, doesn't crave one.

The abode acreage specifies which IP addresses are accustomed to admission a accustomed port. If you appetite to acquiesce cartage from all IPv4 addresses, use 0:0:0:0/0, and if you appetite to acquiesce cartage from all IPv6 addresses, use ::0/0.

Lastly, anniversary Firewall that you actualize charge accept at atomic one rule, either beneath the --inbound-rules or --outbound-rules flag, and all ethics charge be entered as comma-separated key:value lists. Use a quoted cord of space-separated ethics for assorted rules.

Now, use the actualize command actualize the firewall:

The achievement contains a basal overview of the new Cloud Firewall. Accomplish agenda of the Cloud Firewall's ID, as you'll use it in Footfall 3 to add added rules to the Firewall.

Output

If you anytime charge to specify a anchorage range, use the afterward format:

You can additionally use the droplet_id banderole instead of the abode flag. This can be decidedly advantageous in setups that absorb assorted Droplets communicating with anniversary other.

And, you can amalgamate assorted abode or droplet_id fields into a distinct rule, like:

At this point, affirm that the Cloud Firewall is alive accurately by pointing your web browser to the Droplet's IP address. You should see a bulletin advertence that the armpit is no best reachable. If you don't, double-check the achievement from the antecedent actualize command to accomplish abiding you didn't absence any absurdity messages.

Lastly, alike admitting our entering aphorism should already acquiesce for SSH, we'll verify it application doctl.

If you're clumsy to affix to the Droplet, the How To Troubleshoot SSH tutorial alternation will advice you analyze the problem.

Once you've auspiciously affiliated to the Droplet, avenue the SSH session:

As we've now absolute that the Cloud Firewall is alive correctly, we'll add an added aphorism to acquiesce for admission cartage to the web server.

Using the Firewall ID that we got from the doctl compute firewall actualize command in Footfall 2, we are now activity to add a aphorism to acquiesce entering TCP cartage for Apache on anchorage 80.

We'll use the add-rules command, which requires a Firewall ID and at atomic one rule. Rules are defined application --outbound-rules and --inbound-rules flags, aloof like in Footfall 2.

If you charge HTTPS, acquiesce entering TCP cartage on anchorage 443.

If successful, this command will aftermath no output. If you accept an absurdity message, chase the on-screen instructions to analyze the problem.

Now, re-point your web browser to your Droplet's IP address. This time you should see the absence DigitalOcean one-click LAMP assemblage landing folio again. If you don't, double-check that you've accurately affected your IP abode into your web browser and afresh re-trace the preceeding steps.

If you accept added web servers that you'd like to protect, abide on to Footfall 4. Otherwise, skip advanced to Footfall 5 area we'll administrate Cloud Firewalls with tags.

If you accept assorted Droplets, you can administer the aforementioned Cloud Firewall to anniversary of them.

Use the add-droplets command to add added Droplets to a Cloud Firewall. This command requires a Cloud Firewall ID as an argument, and it uses the droplet-ids banderole to actuate which Droplets to administer the Firewall to.

If you don't apperceive the Cloud Firewall's ID, use the account command:

Output

You can additionally use the account command to get Droplets' IDs:

Output

Using the afterward doctl command, we'll add the test-1 Atom to the web-servers Firewall, which has an ID of c7b39b43-4fcc-4594-88f2-160a64aaddd4:

If you don't accept any output, the command was successful. If you accept an absurdity message, chase the on-screen instructions to analyze the problem.

And, if you appetite to add assorted Droplets at once, abstracted them out application commas. Agenda that there are no spaces amid two IDs:

Now, let's use Tags for easier Cloud Firewall management.

At this point, we've added alone Droplets to the Cloud Firewall, but Cloud Firewalls additionally abutment Tags for easier administration of assorted resources. To bigger accept how Tags work, see How To Tag DigitalOcean Droplets.

In this step, we'll tag Droplets, add Tags to the Cloud Firewall, and afresh abolish the alone Atom IDs from the Firewall befitting the Droplets defended by way of Tags.

Before we can add a Tag to a Atom application doctl, we charge to aboriginal actualize the Tag with the tag actualize command:

Output

Once the Tag is created, administer it to the Atom application the atom tag command. This command takes the Atom ID as an argument, and it gets the Tag name from the --tag-name flag.

If you appetite to defended assorted Droplets with one Cloud Firewall, echo the antecedent command for anniversary Droplet.

Next, add the Tag to the Cloud Firewall with the add-tags command, which takes the Firewall ID as an altercation and gets the account of Tag names to use from the --tag-names flag:

If you don't accept any output, the command was successful. If you accept an absurdity message, chase the on-screen instructions to analyze the problem.

And, if you charge to add assorted Tags, accommodate them as a comma-separated list:

Finally, we can abolish the Droplet's ID from the Firewall, because the Atom is allotment of the web-servers Tag, and that absolute Tag is now protected.

Repeat the antecedent footfall for anniversary Atom you appetite to defended by Tag only.

Warning: Removing non-tagged Droplets from the Cloud Firewall leaves the Droplets caught from crooked traffic.

You now accept a absolutely configured Cloud Firewall which will assure your web server from crooked traffic. If you additionally appetite to annul a aphorism from the Firewall, abide on to Footfall 6.

If you appetite to abolish a aphorism from a Cloud Firewall, use the remove-rules command.

The remove-rules command takes a Firewall ID as its argument, and rules are defined application the --outbound-rules and --inbound-rules flags. Agenda that the defined aphorism charge be absolutely the aforementioned as the aphorism that was acclimated during creation.

If you don't accept any output, the command was successful. If you accept an absurdity message, chase the on-screen instructions to analyze the problem.

In this tutorial, we acclimated doctl to actualize DigitalOcean Cloud Firewalls, add rules to those Firewalls, add added Droplets to the Firewalls, administrate Firewalls with Tags, and abolish rules from Firewalls.

To apprentice added means to use Cloud Firewalls, see How To Organize DigitalOcean Cloud Firewalls.

And, to apprentice about troubleshooting Cloud Firewalls, appointment How To Troubleshoot DigitalOcean Firewalls.

Lamp Server Ubuntu - Lamp Server Ubuntu
| Pleasant in order to my personal website, in this occasion I'll provide you with about keyword. Now, this can be a first graphic:

4 easiest ways to install LAMP server on Ubuntu « How to

4 easiest ways to install LAMP server on Ubuntu « How to

Tags: #lamp server ubuntu 14.04 #lamp server ubuntu 16.04 #lamp server ubuntu 17.04 #lamp server ubuntu download #lamp server ubuntu server