Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Using LAMP and MEAN on 1 Machine.

  1. #11
    Join Date
    Mar 2008
    Location
    Birmingham, UK
    Beans
    Hidden!

    Re: Using LAMP and MEAN on 1 Machine.

    The easiest way would be to configure each project as above. Wherever the port is set, just change it per project (if they are all running at once). If running only one at a time, they can all use the same port.

    Example a:
    Code:
    App a: ... app.listen(3000);
    App b: ... app.listen(3001);
    Access a via localhost:3000 and b via localhost:3001
    Example b:
    Code:
    App a: ... app.listen(3000);
    App b: ... app.listen(3001);
    Access a and b via localhost:3000 but only one will run at a time
    I assume this is just for development?
    Desktop: Phenom 955 BE | GA-MA790XT-UD4P | 8GB TG Elite 1600 | BFG GTX 275
    Conky Screenshots | Last.fm | New to Ubuntu?

  2. #12
    Join Date
    Sep 2014
    Beans
    69

    Re: Using LAMP and MEAN on 1 Machine.

    Update:

    localhost:3000 - Points to my MEANApp [Mean Project].

    localhost:8080 - Points to my auth [Laravel Project].

    I want local.auth.com to point to my auth [Laravel Project] e.g a Virtual Host.
    And i want my MeanApp to use a Virtual Host also.

    I am confused, can someone simply tell me with what i want to do (See above), do i need to use nginx and apache together or separately e.g apache for php projects and nginx for mean projects. Or What can i use to setup virtual hosts for my mean project.
    Last edited by khan3; November 9th, 2014 at 04:29 PM.

  3. #13
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Using LAMP and MEAN on 1 Machine.

    Quote Originally Posted by khan3 View Post
    do i need to use nginx and apache together or separately e.g apache for php projects and nginx for mean projects.
    You can use nginx for PHP, too, instead of Apache2 if that's what you are asking.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •