Results 1 to 4 of 4

Thread: need to install lamp stack

  1. #1
    Join Date
    Apr 2012
    Beans
    27

    need to install lamp stack

    on the ubuntu site I followed the following instructions:
    To install the default LAMP stack in Ubuntu 10.04 and above
    First install tasksel...

    $ sudo apt-get install tasksel
    ... and then the LAMP stack:

    $ sudo tasksel install lamp-server

    It looked like it installed. I don't know what to do now. On Windows you just find the xampp folder and put stuff you want to test in htdocs folder and there's a control panel for starting and stopping services. Maybe I'm looking in the wrong places but I don't see a xampp folder let alond a htdocs folder and I have no idea how to start and stop Apachee, PHP or MySQL. Hopefully someone here has been through this and knows what I need to do next.

  2. #2
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    13,647
    Distro
    Xubuntu

    Re: need to install lamp stack

    Localhost points to /var/www .

    You might need to open file and directory permissions.
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

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

    Re: need to install lamp stack

    To add to what mörgæs wrote, if you are the only user of your machine then it is enough to change ownership of /var/www. That is of course only the default and if you would like to move it or add additional virtual hosts, then you can have other directories.

    Apache and MySQL get started automatically when your machine starts. You can look in /etc/init/ if you are curious about the Upstart script that runs them. You can start or stop them the same way you would start any other services on your machine.

  4. #4
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: need to install lamp stack

    Hi

    As mörgæs stated, the default folder is /var/www but this can be changed by editing the file...

    Code:
    /etc/apache2/sites-available/default
    This is the default virtual host for apache. You can add other virtual hosts easily enough.

    The apache service can be started, stopped and restarted with..
    Code:
    sudo service apache2 stop
    sudo service apache2 start
    sudo service apache2 restart
    You also have

    Code:
    sudo service apache2 reload
    Here is some information to get you started.

    https://help.ubuntu.com/community/ApacheMySQLPHP

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

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
  •