Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    824
    Thanks
    93
    Thanked 18 Times in 18 Posts

    Installing Apache, PHP and MySql

    Im looking at installing all the above on my PC at home (Mostly just cause ive never tried it and i like messing about ).

    I was curious thought if theres a best method on which order to install them in?

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,325
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    If you're looking to install them all manually, it can be done if you use the installers but if you want to manually install and configure I wouldn't bother - it takes ages and if you're wanting to stick it on a usb drive then good luck! It took me 3 months of tinkering to get Apache 1.3, PHP and MySQL to work like that.

    Instead it's far easier to download one of the WAMP kits (Windows Apache, MySQL & PHP) such as XAMPP or the UniformServer.

    I prefer the Uniform Server as its smaller but XAMPP dos have other features (like an FTP server) but it's rather bloated.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #3
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    824
    Thanks
    93
    Thanked 18 Times in 18 Posts
    Ahh okay, i have Uniform Server set up atm and its what i use. I think im best of just sticking with that then . Thanks for the advice

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    If you want to install and configure them yourself, install in this order: apache, mysql, php. It isn't too hard to do yourself, I've done it at least a dozen times on Linux servers. If you are interested in more of the server admin side of things, it is a good thing to learn how to do.
    OracleGuy

  • #5
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    824
    Thanks
    93
    Thanked 18 Times in 18 Posts
    After a bit of debating with myself im trying to install them, Ive installed Apache and PHP but im having some trouble configuring them

    I've read i need to add these lines to httpd.conf

    LoadModule php5_module "c:/php-5.2.13/php5apache2_2.dll"

    which i put after all these
    etc...
    #LoadModule userdir_module modules/mod_userdir.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule version_module modules/mod_version.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so

    Then i needed
    AddType application/x-httpd-php .php

    Which i put just before the closing tag for <IfModule mime_module>

    And lastly they said put
    PHPIniDir "c:\php-5.2.13"

    at the very end of the file. I did all this and it caused Apache to fail to start. The paths to the files are correct, can anyone see a problem with any of this?

  • #6
    Regular Coder
    Join Date
    Jan 2012
    Posts
    134
    Thanks
    0
    Thanked 32 Times in 32 Posts
    I'll toss this in here for completeness:

    If you really don't care at all for the initial configuration, AppServ is another good package for WAMP.

    I've always used AppServ for basic Windows installs, but you'll get a whole lot more useful experience installing and configuring each part separately. Good luck!

  • #7
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    824
    Thanks
    93
    Thanked 18 Times in 18 Posts
    I managed to find my problem (cant remember what it was , but its working now).


  •  

    Posting Permissions

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