+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Setting up a LAMP Server [Ubuntu]

  1. #1
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Setting up a LAMP Server [Ubuntu]

    After every linux installation, the first thing I always do is setup apache, mysql, and php. Under Ubuntu, if you take advantage of the synaptic package manager, setting up your LAMP server has never before been more simple.

    First thing you want to do is update your repositories:
    sudo apt-get install update
    Next install apache2 and php5
    sudo apt-get install apache2 php5 libapache2-mod-php5
    Finally install mysql and make it work with php
    sudo apt-get install mysql-server mysql-client php5-mysql
    And thats it!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    phpforfun's Avatar
    phpforfun is offline Speaks fluent binary
    Join Date
    Feb 2008
    Posts
    1,232
    Blog Entries
    17
    Rep Power
    24

    Re: Setting up a LAMP Server [Ubuntu]

    John I followed these instructions, and when I make test.php it asks me to download it, meaning the php isnt working correctly, does this work on ubuntu 8?
    Checkout my new forum! http://adminreference.com/

  4. #3
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Setting up a LAMP Server [Ubuntu]

    You may have to enable the php load file:
    Code:
    mv /etc/apache2/mods-available/php.load /etc/apache2/mods-enabled/

  5. #4
    Jordan Guest

    Re: Setting up a LAMP Server [Ubuntu]

    Do you have an entry similar to this in your httpd.conf:

    Code:
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 9524288
    </Files>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    You should also have the extension included in the same configuration file:

    Code:
    LoadModule php5_module modules/libphp5.so

  6. #5
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Setting up a LAMP Server [Ubuntu]

    my answer is the solution - I fied it for him yesterday.

  7. #6
    Jordan Guest

    Re: Setting up a LAMP Server [Ubuntu]

    What is in php.load?

  8. #7
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Setting up a LAMP Server [Ubuntu]

    When you use the method described above, all modules that are to be loaded are defined in their own file. The php.load file includes the stuff posted above. It's just rather than having it in the httpd.conf (apache2.conf) the apache configuration file has something like: LoadModule enabled-modules/*.load

  9. #8
    Jordan Guest

    Re: Setting up a LAMP Server [Ubuntu]

    Almost 1.5 years later and still valuable information, just used this tutorial today. I've also created some notes: Ubuntu 9.04 Notes. Remove Apache2 and other Startup Services: sudo apt-get install sysv-rc-conf sudo sysv-rc-conf Adding mod_userdir to Apache2: sudo a2enmod userdir sudo a2enmod userdir - ASCIIBin

    The notes tell you how to disable Apache/MySQL from startup and how to enable mod_userdir so you can access your home directory public_html folder.

  10. #9
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Setting up a LAMP Server [Ubuntu]

    I generally start out with this method, but I find it too rigid (perhaps I don't know how to use it fully). I end up compiling apache/php from source.

  11. #10
    Jordan Guest

    Re: Setting up a LAMP Server [Ubuntu]

    When I searched for this tutorial I thought it was from source but I used it and it works fine for my intended purposes. I wanted to copy/paste your PHP options if it were from source. What happened to your LAMP shell script?

+ Reply to Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question about Ubuntu Desktop and Ubuntu Server editions
    By liamzebedee in forum Linux Installation & Configuration
    Replies: 1
    Last Post: 04-29-2011, 10:47 PM
  2. WAMP (My Laptop) and LAMP (Robotics Server)
    By throese in forum Database & Database Programming
    Replies: 2
    Last Post: 06-25-2010, 09:59 AM
  3. Setting up PHP-Gtk [Ubuntu]
    By John in forum Tutorials
    Replies: 3
    Last Post: 08-11-2009, 12:03 PM
  4. Best flavor of Linux for LAMP server?
    By zeroradius in forum Computer Software/OS
    Replies: 12
    Last Post: 04-21-2009, 11:15 AM
  5. Setting up server 2003
    By morefood2001 in forum Tutorials
    Replies: 4
    Last Post: 08-18-2008, 08:11 AM

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