Jump to content

So I recently started a webserver on a digitalocean droplet for testing purposes. I have installed Apache, however I have no idea how to configure it through the console. What I want is for there to be a button on the main page, and each time you click the button, it serves you a random image. 

 

Can anyone advise me on getting started with this project? I'm very inexperienced with console-only work.

it's time

 

Link to comment
https://linustechtips.com/topic/971705-how-to-setup-apache-from-console/
Share on other sites

Link to post
Share on other sites

3 minutes ago, Electronics Wizardy said:

Normally you make a html file and other web files on anouther system then copy it to a server.

 

There are lots of website building tutorials. Have you looked for them?

I hadn't looked there; I mostly checked on configuring apache through the console. Thanks!

it's time

 

Link to post
Share on other sites

2 minutes ago, Electronics Wizardy said:

This isn't apache configuration, this is website building.

...Apache configuration as in I was looking for things like "how to serve images apache console" which wasn't very helpful.

it's time

 

Link to post
Share on other sites

5 minutes ago, RollTime said:

...Apache configuration as in I was looking for things like "how to serve images apache console" which wasn't very helpful.

Ok first of all, let me explain about websites and webservers, they are two COMPLETELY different things. A webserver hosts already coded html or php pages (a website), that either you make yourself, or use a website builder. A webserver (such as apache) cannot just magically make a website for you, its only function is to serve visitors the already coded html or php files that are in its directory.

 

That being said, I would recommend that you either reinstall the droplet with an easy to use CMS like Wordpress (that makes a site for you, with no coding needed). OR you can always just buy a package with a web host that includes their website builder (such as Godaddy)

Link to post
Share on other sites

Well, he'll probably want apache anyways, he could run over the current install with a lamp stack apt-get install lamp-server^

Then he could be able to use wordpress or any other CMS for that matter.

 

If you want to write a simple page using the command line i'd say the easiest is using "nano" while alot of people will say vi is better that's probably true, but i find it very confusing :P

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×