Results 1 to 10 of 12

Thread: Lamp installation

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Beans
    4

    Lamp installation

    Hi,
    IM installing LAMP server on a Ubuntu server. Im following the instrutions from http://www.howtoforge.com/installing...12.04-lts-lamp. The apache2 install seems ok. I get the IT WORKS webpage in the localhost. I then installed php5 using the command and then created the info,php file in /var/www directory. But when i go to localhost/info.php i get a message saying what should FF do with this file (gedit default). Absolute beginner!!!! Dont know what to do.

  2. #2
    Join Date
    Oct 2012
    Beans
    171

    Re: Lamp insallation

    Quote Originally Posted by horgag View Post
    Hi,
    IM installing LAMP server on a Ubuntu server. Im following the instrutions from http://www.howtoforge.com/installing...12.04-lts-lamp. The apache2 install seems ok. I get the IT WORKS webpage in the localhost. I then installed php5 using the command and then created the info,php file in /var/www directory. But when i go to localhost/info.php i get a message saying what should FF do with this file (gedit default). Absolute beginner!!!! Dont know what to do.
    If you were following that guide then most probably you skipped the apache2 restart.
    Do it
    Code:
    sudo service apache2 restart

  3. #3
    Join Date
    Sep 2006
    Beans
    5,497
    Distro
    Lubuntu Development Release

    mod_php

    Also, is mod_php active?

    Code:
    sudo a2enmod php5

  4. #4
    Join Date
    Oct 2012
    Beans
    171

    Re: mod_php

    Quote Originally Posted by Lars Noodén View Post
    Also, is mod_php active?

    Code:
    sudo a2enmod php5
    I have noticed that when libapache2-mod-php5 is installed via apt-get, it gets enabled by default.

  5. #5
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    6,725
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Lamp insallation

    In case someone else reads this thread, I would recommend installing with the commands

    Code:
    sudo apt-get install tasksel
    sudo tasksel install lamp-server
    rather than the link in first post.
    Did you choose your Buntu, or did you just stick to the first one you tried?
    Xubuntu Lubuntu Ubuntu Kubuntu

    About problems due to upgrading

  6. #6
    Join Date
    Oct 2012
    Beans
    622

    Re: Lamp insallation

    Quote Originally Posted by mörgæs View Post
    In case someone else reads this thread, I would recommend installing with the commands

    Code:
    sudo apt-get install tasksel
    sudo tasksel install lamp-server
    rather than the link in first post.
    I would not recommend tasksel, it killed my system last time. I install via apt-get and all is fine. The link is ok but I am not sure why he su to root instead just using sudo.

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
  •