Author Topic: [HELP] - using LocalHost  (Read 3912 times)

Offline Hasimir0

  • Member
  • ***
  • Posts: 51
  • Karma: 2
  • Just Wandering Around
    • View Profile
    • UnPlayableGames.tk
  • Peppermint version(s): Peppermint 4
[HELP] - using LocalHost
« 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? ^_^

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [HELP] - using LocalHost
« Reply #1 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.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Hasimir0

  • Member
  • ***
  • Posts: 51
  • Karma: 2
  • Just Wandering Around
    • View Profile
    • UnPlayableGames.tk
  • Peppermint version(s): Peppermint 4
Re: [HELP] - using LocalHost
« Reply #2 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.

Offline DerrianWolf

  • Newly Subscribed
  • *
  • Posts: 15
  • Karma: 1
  • New Forum User
    • View Profile
Re: [HELP] - using LocalHost
« Reply #3 on: September 19, 2014, 03:22:19 pm »
[TOPIC HIJACK]

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

[/TOPIC HIJACK]

Offline VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5898
  • Karma: 1160
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: [HELP] - using LocalHost
« Reply #4 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]


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [HELP] - using LocalHost
« Reply #5 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]
« Last Edit: September 19, 2014, 04:26:05 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline DerrianWolf

  • Newly Subscribed
  • *
  • Posts: 15
  • Karma: 1
  • New Forum User
    • View Profile
Re: [HELP] - using LocalHost
« Reply #6 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)

rjm65

  • Guest
Re: [HELP] - using LocalHost
« Reply #7 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]

Offline robertsala

  • Member
  • ***
  • Posts: 85
  • Karma: 8
  • New Forum User
    • View Profile
Re: [HELP] - using LocalHost
« Reply #8 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

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [HELP] - using LocalHost
« Reply #9 on: November 14, 2014, 01:15:32 pm »
What happens if you go to:
http://localhost:80
in a web browser ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [HELP] - using LocalHost
« Reply #10 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 ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline robertsala

  • Member
  • ***
  • Posts: 85
  • Karma: 8
  • New Forum User
    • View Profile
[SOLVED] Re: [HELP] - using LocalHost [SOLVED]
« Reply #11 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.
« Last Edit: December 21, 2014, 12:14:44 pm by robertsala »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [HELP] - using LocalHost
« Reply #12 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


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/
« Last Edit: November 15, 2014, 11:22:09 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline robertsala

  • Member
  • ***
  • Posts: 85
  • Karma: 8
  • New Forum User
    • View Profile
[SOLVED] Re: [HELP] - using LocalHost [SOLVED]
« Reply #13 on: November 15, 2014, 12:40:42 pm »
Installed correctly. Let me start reading tutorials to get familiarized. Thanks!
« Last Edit: December 21, 2014, 12:13:21 pm by robertsala »