Peppermint OS

Support => Advanced Topics => Topic started by: Hasimir0 on September 03, 2014, 11:18:32 am

Title: [HELP] - using LocalHost
Post by: Hasimir0 on September 03, 2014, 11:18:32 am
Hi everyone :)

So, I need to have a website run on my localhost.
The pages are HTML and CSS with a bit of AngularJS sprinkled here and there (I'm trying to learn).

With great pain I managed to make everything work... once upon a time.
But after my recent Peppermint5 install I am failing miserably ç_ç

Assuming a pretty standard Peppermint5 install on an eeepc machine (eeepc 1025c) how do I install and configure correctly stuff like NGINX?
I tried looking and following specific instructions, but evidently I must be doing something wrong, because the damn thing just won't work :\

Can anyone help me? ^_^
Title: Re: [HELP] - using LocalHost
Post by: PCNetSpec on September 03, 2014, 02:29:27 pm
There should be nothing to it .. just install nginx:
Code: [Select]
sudo apt install nginxthen fire up a web browser and go to:
http://localhost
or
http://localhost:80
and you should be presented with:-

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.
Title: Re: [HELP] - using LocalHost
Post by: Hasimir0 on September 09, 2014, 12:40:40 am
I haven't forgotten about this, I just had no time whatsoever ;)
I'll be back with more questions and details.
Title: Re: [HELP] - using LocalHost
Post by: DerrianWolf on September 19, 2014, 03:22:19 pm
[TOPIC HIJACK]

Mark, is there much of a performance difference between Nginx and apache?

[/TOPIC HIJACK]
Title: Re: [HELP] - using LocalHost
Post by: VinDSL on September 19, 2014, 03:34:46 pm
[REPLY HIJACK]

Everyone I know that uses  Nginx swears by it - says the performance is a lot better.

Personally, I'm an Apache fanboi.  I *suppose* it's one of those "it all depends" things.

If I was starting all over, I'd try it, but I have too much time invested in Apache to switch.

[/REPLY HIJACK]

Title: Re: [HELP] - using LocalHost
Post by: PCNetSpec on September 19, 2014, 04:19:56 pm
[Hello Jack]

What VinDSL said .. I have no experience of nginx, always worked with apache2

[/Bye Jack]
Title: Re: [HELP] - using LocalHost
Post by: DerrianWolf on September 19, 2014, 04:37:40 pm
Hmm I guess my machine could handle a 3rd OS, maybe I should install another instance of PM5 and build an Nginx localhost.  8)
Title: Re: [HELP] - using LocalHost
Post by: rjm65 on September 19, 2014, 05:23:01 pm
[CRACKER JACK]
No clue what anyone is talking about here, but decided to chime in and get my Jack off...  ;)

[/CRACKER JACK]
Title: Re: [HELP] - using LocalHost
Post by: robertsala on November 13, 2014, 05:53:31 pm
I installed nginx successfully but when I tried to test it with localhost/test.html it failed. It did save the testing file test.html.save
Title: Re: [HELP] - using LocalHost
Post by: PCNetSpec on November 14, 2014, 01:15:32 pm
What happens if you go to:
http://localhost:80
in a web browser ?
Title: Re: [HELP] - using LocalHost
Post by: PCNetSpec on November 14, 2014, 01:59:53 pm
Erm, you do realise you're not going to be hosting your own websites without a static IP and 2 DNS servers resolving the URL to an IP ?
Title: [SOLVED] Re: [HELP] - using LocalHost [SOLVED]
Post by: robertsala on November 14, 2014, 02:19:00 pm
Yes. I have a dedicated line with a static IP. In addition, two other pc's (web server) and (email server) to resolve tge URL's.
Title: Re: [HELP] - using LocalHost
Post by: PCNetSpec on November 15, 2014, 10:58:55 am
I have no idea why nginx didn't work for you .. worked for me in Peppermint 5   :-\

Wanna install the LAMP stack (Linux / Apache / MySQL / php5) ?

By far the easiest method is to let tasksel do the work for you...

Install tasksel:
Code: [Select]
sudo apt-get install taskselthen update your package cache:
Code: [Select]
sudo apt-get updatethen tell tasksel to run the install lamp-server task:
Code: [Select]
sudo tasksel install lamp-serverand follow the onscreen prompts.

Remember to use the "Tab" key to select "<OK>" or whatever to continue.

Once done, in a web browser go to:
http://localhost:80
and you should see this

(https://assets.digitalocean.com/articles/lamp_1404/default_apache.png)

Then you can follow one of the many online tutorials for setting up your website.



To Undo

You can remove the LAMP stack with:
Code: [Select]
sudo tasksel remove lamp-serverthen if you wish, uninstall tasksel

--
http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/
Title: [SOLVED] Re: [HELP] - using LocalHost [SOLVED]
Post by: robertsala on November 15, 2014, 12:40:42 pm
Installed correctly. Let me start reading tutorials to get familiarized. Thanks!