FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2005
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LAMP Help (Noob)

    Goal: To learn how to create a website using LAMP. Take completed website and port to a web server and run.

    System I am currently running an HP Pavillion laptop 500G HD, 6G RAM, dual boot Fedora 10 and Vista.

    Questions: How should I partition HD to allow functionality of LAMP and to later transfer to a online webserver.

    I have read several different rational on partitioning the disk. Do I really need a /tmp, /var? Currently I have / /boot, /swap, /home, /usr. Is this okay to start? Will it make transferring the project more difficult for "official use?

    Should I not use the laptop at all and create a separate machine for this purpose only?

    Any good books on this subject?

    Thanks guys.

    Any additional comments would also be appreciated.

  2. #2
    Join Date
    Jun 2005
    Location
    Mission Control
    Posts
    1,227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sucafish
    Goal: To learn how to create a website using LAMP. Take completed website and port to a web server and run.

    System I am currently running an HP Pavillion laptop 500G HD, 6G RAM, dual boot Fedora 10 and Vista.
    Well, it all depends on how you work.

    For example, do you want to develop the site in Fedora or Windows (i.e. do you need to use tools like Dreamweaver?). If so then dual-booting a web server is pointless, as you'd have to code up your site, reboot to Fedora to check it works etc. etc.

    If you're planning on building entirely in Fedora, then a local web server for testing would be fine, 'yum install httpd mysql php-mysql' and away you go, then upload your files to the "official" server when you're happy with it.

    Personally I develop in whichever OS I happen to be in at the time, so I run a separate local web server for development, which I can use from Windows or Fedora, and then have a production server with a hosting company.

    Quote Originally Posted by sucafish
    Questions: How should I partition HD to allow functionality of LAMP and to later transfer to a online webserver.

    I have read several different rational on partitioning the disk. Do I really need a /tmp, /var? Currently I have / /boot, /swap, /home, /usr. Is this okay to start? Will it make transferring the project more difficult for "official use? .
    If it's literally just a development system, then the default partitioning would be fine, just remember to keep backups of /var/www (that's where your web server root is) and /var/mysql (databases), as the default partitioning layout does not provide any redundancy.

  3. #3
    Join Date
    May 2005
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the info, I am really excited to get into this. How is the learning curve? I am brand new to all aspects of LAMP, but the back end or data base portion is what is really making my jimmy jump...

  4. #4
    Join Date
    Jun 2005
    Location
    Mission Control
    Posts
    1,227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sucafish
    Thanks for the info, I am really excited to get into this. How is the learning curve? I am brand new to all aspects of LAMP, but the back end or data base portion is what is really making my jimmy jump...
    lol you sound like me when I first played with Fedora, I did it for the exact same reasons you are, I wanted a LAMP web server, but had never used Linux before, and it was setting up the LAMP that got me using Linux on the desktop.

    For the backend, you want:
    • Apache (yum install httpd)
    • MySQL (yum install mysql)
    • PHP (yum install php php-mysql)
    You already have Linux, Apache is your web server software, MySQL is your database, and PHP is the scripting language.

    Once those are installed, you can install them all at once like:
    Code:
    yum install httpd mysql php php-mysql
    , start the services and set them to start with the system:
    Code:
    service httpd start
    service mysqld start
    chkconfig --level 35 httpd on
    chkconfig --level 35 mysqld on
    The service command starts the services, the chkconfig command sets them to load with the system, with runlevels 3 and 5 (--level 35).

    Next create a file called test.php in /var/www/html and in it put:
    PHP Code:
    <?php
        
    echo "PHP works! wahoo!";
    ?>
    Then point your browser to http://localhost/test.php and you should see in your browser "PHP works! wahoo!".

    If you want graphical tools for working with MySQL databases, there's the MySQL Administrator and MySQL Query Browser:
    Code:
    yum install mysql-query-browser mysql-administrator
    See this tutorial and skip down to Post Installation for setting up MySQL.

  5. #5
    Join Date
    May 2005
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again for all of your help. Are you still at it? Making web pages that is?

  6. #6
    Join Date
    Jun 2005
    Location
    Mission Control
    Posts
    1,227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem.

    I was into web development before I had my Linux servers, using ASP and Microsoft kit. At the time, it was in the news about MS going the "rented computing" route, you pay £X per month to use Windows, that was the flipping point for me when I decided to give Linux everything, and finally switched.

    I am still at it, although it's mostly a hobby for me, as with a lot of my IT stuff, I fear working in IT will ruin the fun I have tinkering with it.

  7. #7
    Join Date
    Aug 2005
    Location
    Ann Arbor
    Age
    59
    Posts
    3,947
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my best advice is NOT to use the rpm's for apache,myqsl,php ,phpmyadmin. But to install each one by hand and to configure them from there defaults and learn how to edit there config files .Then to set up the user and root accounts in mysql ,...

    and do updates this way . You WILL lean them doing it this way
    it will take time but so dose school.
    OpenSUSE 13.2-64bit & Scientific Linux 6.6-64bit ( fedora 4 to 11) and 20 on KVM
    My Celestia Downloads

    h t t p ://celestiamotherlode.net/catalog/show_creator_details.php?creator_id=10

Similar Threads

  1. noob at fedora... noob at security...
    By mrHappyPants in forum Security and Privacy
    Replies: 12
    Last Post: 10th April 2009, 02:42 AM
  2. Best MTA for LAMP?
    By st89 in forum Programming & Packaging
    Replies: 2
    Last Post: 30th March 2009, 03:47 PM
  3. LAMP How-To
    By SyntheticShield in forum Servers & Networking
    Replies: 10
    Last Post: 23rd January 2007, 12:35 AM
  4. Lamp
    By jmachine in forum Servers & Networking
    Replies: 2
    Last Post: 23rd May 2005, 05:16 AM

Tags for this Thread

Posting Permissions

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