Is it worth installing Apache/PHP/MySQL from scratch?

Discussion in 'PHP' started by einsteinsboi, Jun 7, 2007.

  1. #1
    I have been reading this forum and have seen people discussing using PHPTriad, WAMP, XXAMP, etc, to install Apache/PHP/MySQL on the computer.

    I want to install these three on my laptop and am using a book "Beginning PHP5, Apache, And MySQL Web Development (2005)" to learn. It has directions how to install the three separately and configure them, but also suggests using PHP Triad or WAMP. I am wondering if it's whether trying to install them step by step instead of using a package so that I can learn better how to configure and how to troubleshoot my installation. I know it will take considerably longer to do it from scratch than to use a package like WAMP but I think I'll learn more if I do it from scratch.

    Any thoughts on this? Are there any dangers to my laptop and all the stuff installed in it if I go either route?

    Will appreciate your advice :D.
     
    einsteinsboi, Jun 7, 2007 IP
  2. mojojuju

    mojojuju Peon

    Messages:
    53
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Speaking from experience, I'd go with one of the WAMP packages available. It will pretty much give you a 1-2-3 install that has the latest verions of all of the apps. Depending on which package you choose, they may even throw in some sample applications.

    But installing each component by itself isn't very difficult and you'll be sure to be able to install the latest components.

    If you want to learn all the ins and outs, then go the route of installing everything separately.

    A nice thing about the WAMP packages is they'e got everything configured, including having the Apache and MySQL services start at boot or with one click of the mouse. They'll often include phpmyadmin and some other administrative tools.

    It all depends on how much you want to get your hands dirty. You'd certainly learn the most if you compile everything from source though.:D
     
    mojojuju, Jun 7, 2007 IP
  3. ArcticPro

    ArcticPro Banned

    Messages:
    1,273
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ArcticPro, Jun 7, 2007 IP
  4. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you want to learn, I'd def suggest installing them all separately. If you don't want a headache, though, WAMP, etc would be your best bet.
     
    rgchris, Jun 7, 2007 IP
  5. Free Directory

    Free Directory Peon

    Messages:
    89
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Surely for Wamp.
    Or else keeping on adding various components by hand. pretty a "waste time" operation.
    But, depends on what you want: programming(Wamp) or site administration(manual install for all of them, eventually compiling php and apache according your desire).
     
    Free Directory, Jun 7, 2007 IP
  6. einsteinsboi

    einsteinsboi Well-Known Member

    Messages:
    1,122
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Cool, thanks for the opinions. I think I'll do them one by one, Apache, then PHP, then mySQL, this way I'll learn more. I was afraid of messing up my laptop somehow, but I think it'll be okay. Then on my desktop PC I'll use WAMP.
     
    einsteinsboi, Jun 7, 2007 IP
  7. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #7
    i would suggest installing them individually so that you get an idea of how everything works. it's really simple once you do it once or twice. don't get discouraged. i assume this is on windows and if i am correct, devside has a great walk through on it. http://www.devside.net/guides/windows

    hope this helps.
    ansi
     
    ansi, Jun 7, 2007 IP
  8. einsteinsboi

    einsteinsboi Well-Known Member

    Messages:
    1,122
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    140
    #8
    Thanks for the link. Yes it is on Windows. Once that is done I might also do it on a Linux box I am working on. I think installing them individually is definitely the way to go for me, that way I'll see how everything works and be able to troubleshoot in the future.
     
    einsteinsboi, Jun 7, 2007 IP
  9. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    WAMP is awesome. Best server for Windows IMO.
     
    HypertextFever, Jun 7, 2007 IP
  10. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #10
    WAMP is not a web server. wamp is a software bundle for windows consisting of apache, php, mysql, phpmyadmin, and sqllite. :)
     
    ansi, Jun 8, 2007 IP
    HypertextFever likes this.
  11. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I install them all seperately because they are not all on the same release cycle and I like to keep everything up to date. Recently PHP had an update to 5.2.3 which fixes a potential problem with PNG files. Since my latest project uses user submitted PNG files primarily it was very important to be able to update.

    It's really not that hard to install them manually. The installers have improved a lot in the last few years.
     
    KalvinB, Jun 8, 2007 IP
  12. malex

    malex Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You can find a very nice tutorial on how to install apache+mysql+php at apachemysqlphp.com

    And I think you should install yourself. Using autoinstallers might not get you the desired result. Also errors might occur. I never liked to auto install these.

    NOTE: I'm not allowed to post link right now, but I just wanted to help.
     
    malex, Jun 8, 2007 IP
  13. einsteinsboi

    einsteinsboi Well-Known Member

    Messages:
    1,122
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    140
    #13
    Thanks for the link malex.

    @KalvinB, it makes sense in terms of the updating to the latest versions. I hadn't thought of that aspect.

    Thanks for the opinions, I'm learning a lot.

    This is my weekend project, installing Apache, then PHP, then MySQL, and anything else I may need, such as phpmyadmin. :)
     
    einsteinsboi, Jun 8, 2007 IP
  14. coderbari

    coderbari Well-Known Member

    Messages:
    3,168
    Likes Received:
    193
    Best Answers:
    0
    Trophy Points:
    135
    #14
    for simple using any installer package like XAMPP,WAMP,LAMP is perfect.but for gathering experience you may try to compile the source codes.
     
    coderbari, Jun 8, 2007 IP
  15. einsteinsboi

    einsteinsboi Well-Known Member

    Messages:
    1,122
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    140
    #15
    Well, after about 3 hours of installing, error codes, google, reading the manuals, pounding on the table, frothing at the mouth, :rolleyes: etc, I FINALLY succeeded.

    It actually wasn't as hard as I thought it would be. I installed Apache HTTP Server 2.2.4, configured and tested it. I had some port troubles with getting the server to start but it finally worked. I then installed PHP 5.2.3, configured it, tested it and made sure it worked well with Apache, and then finally I installed mySQL Server 5.0 (Community Server), and tested it, and that works too. The hardest part was getting mySQL 5 to work, with configuring and root access and passwords, but now everything is working smoothly on my laptop and I am a happy human!!:D

    I guess I could have gone the easy way but this was so much more rewarding and I've learned a lot about configuring the different components and troubleshooting.

    Thanks to everyone for all your suggestions and help! ;)

    Now to get to work learning php/mysql :).
     
    einsteinsboi, Jun 12, 2007 IP
  16. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    That's how you learn! ^.^

    You installed all on a Windows box?
     
    HypertextFever, Jun 12, 2007 IP
  17. einsteinsboi

    einsteinsboi Well-Known Member

    Messages:
    1,122
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    140
    #17
    Yep! I installed on my laptop running Windows XP Professional.
     
    einsteinsboi, Jun 12, 2007 IP