Closed Thread
Results 1 to 6 of 6

Thread: installing and configuring Apache2 + php5 on W7

  1. #1
    Roman Y is offline Programmer
    Join Date
    Jul 2010
    Posts
    191
    Rep Power
    0

    installing and configuring Apache2 + php5 on W7

    Hi gang... here's the deal... started reading a book about php and MySQL anyway while instaling it's said to go to httpd.conf file and add 3 following lines at LoadModule section:

    Code:
    LoadModule php5_module c:/php5/php5apache2.dll
    AddType application/x-httpd-php .php
    PHPIniDir "c:\php5"
    but when I do that and restart the apache server it wouldn't work. I checked the files I'm directing to and they're there so could anyone pls explain these 3 lines to me if they're important or not because I can't get server running with them.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Roman Y is offline Programmer
    Join Date
    Jul 2010
    Posts
    191
    Rep Power
    0

    Re: installing and configuring Apache2 + php5 on W7

    also ran the configuration... it says the module couldn't be found...

  4. #3
    Join Date
    Jun 2010
    Location
    Vancouver, Eh.
    Posts
    4,003
    Blog Entries
    7
    Rep Power
    39

    Re: installing and configuring Apache2 + php5 on W7

    After installing Apache 2, download the PHP binaries from php.net and place them in C:\PHP5, this is how Apache will know where the PHP binaries are. Your httpd.conf code's LoadModule line had no quotes around the path, so add them, but note if you are using Apache 2.2 you must comment out the first LoadModule line and add this instead:
    Code:
    LoadModule php5_module "c:/php5/php5apache2_2.dll"
    Be sure the dll module exists in either case. Ensure httpd (Apache) is STOPPED and run
    Code:
    httpd.exe -k install
    After you can start it with -k start, create a document that has <?php phpinfo(); ?> inside to verify it works.
    Be sure to read the updated FAQ || Health is achieved through 10,000 different steps.
    A textual description can be only part of your question, be sure to provide sample results, errors and your platform in the appropriate forums while asking.

  5. #4
    Roman Y is offline Programmer
    Join Date
    Jul 2010
    Posts
    191
    Rep Power
    0

    Re: installing and configuring Apache2 + php5 on W7

    I did exactly that... as I said I checked that the files I was refering to were there. I didn't test it until after I installed php5 and changed php.ini-dist to php.ini

  6. #5
    Join Date
    Jun 2010
    Location
    Vancouver, Eh.
    Posts
    4,003
    Blog Entries
    7
    Rep Power
    39

    Re: installing and configuring Apache2 + php5 on W7

    To tell you the truth I'm not sure if installing Apache on Windows 7 is a straightforward task, Who knows what underlaying things changed. You can safely uninstall Apache 2 and PHP and install something meant for dev work, such as the more official XAMPP or an easier EasyWAMP. This comes packaged with Apache 2 and PHP5 pre-installed, so all you need to do is install it and run the module. It's generally without saying what all devs and server distributions use (LAMP stacks for example).
    Be sure to read the updated FAQ || Health is achieved through 10,000 different steps.
    A textual description can be only part of your question, be sure to provide sample results, errors and your platform in the appropriate forums while asking.

  7. #6
    shivam's Avatar
    shivam is offline Newbie
    Join Date
    Aug 2010
    Posts
    27
    Rep Power
    0

    Re: installing and configuring Apache2 + php5 on W7

    some one can tell me how to configure the TIMEOUT of apache in Wamp Server..
    Last edited by Orjan; 08-31-2010 at 01:57 PM. Reason: You don't have to resize that text.

Closed Thread

Thread Information

Users Browsing this Thread

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

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