Results 1 to 5 of 5

Thread: Setting up apache/php5 at home

  1. #1
    Join Date
    Jul 2006

    Default Setting up apache/php5 at home

    I want to make my pc a server so I can test my files.

    I downloaded php5 and apache, but it says I cannot connect to localhost.
    I tried it a year ago, it worked then, why not now?

  2. #2
    Join Date
    Sep 2003


    First you need to install and get it working.

    This is simple step. After installation, reboot your computer and go to


    Now you will see Apache default page.

    If(localhost shows default page) {

    Apache is working, you can install PHP now

    } else {

    Apache is not properly installed or having some problem.
    You need to fix it before going further.


    PHP Install

    If you download the MSI (installer) package, it is easy to get PHP working.

    Anyway read INSTALL.TXT file, it have detailed description on how to get PHP working with Apache.
    Become PHP Expert in 30 days - Free Online Matrimonial - Professional Web Hosting, Designing.

  3. #3
    Join Date
    May 2006
    In Your Heart


    i think you may try easyphp
    It is easy to setup apache and mysql in your system without much knowledge.
    for more info goto

  4. #4
    Join Date
    Jul 2006

    Default Easy Steps for Installing Apche HTTP server for php5

    Easy Steps to Install Apache HTTP Server for php5

    You Just Download that is listed below

    Apache Web Server

    Run apache_2.0.52-win32-x86-no_ssl.msi

    Press next until you get three text boxes
    Fill the information in boxes and choose “for All Users, on Port 80, as a Service -- Recommended” when prompted.

    Finish the installation program.

    If you have Windows Firewall enabled, select Unblock on the Windows Security Alert. Zone Alarm will also popup a message. For any firewall, make sure port 80 is open.

    Test: Open http://localhost in a web browser. If you see something like that following, you’ve just successfully installed Apache!
    :D :D :D

  5. #5
    Join Date
    Jul 2006

    Default After installing Apache server Configure php with server

    Even If you have installed Apache HTTP Server and its not running as a php server Then just Follows the Steps described below.

    First of All install following php5 package


    Step 1 : Extract into C:\php

    Step 2 :
    Copy and rename c:\php\php.ini-recommended to c:\php\php.iniNote: Before, we used to copy php.ini to the C:\WINDOWS directory. This is not required with the Apache “PHPIniDir” directive pointing to c:\php.

    Step 3 :
    Open php.ini and change the following and then save it.

    include_path = ".;C:\php\includes\"
    session.save_path = "C:\Temp"
    session.cookie_path = \
    doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"
    extension_dir = "C:\php\ext\"
    mysql.default_port = 3306
    mysql.default_host = localhost
    mysql.default_user = root
    mysqli.default_port = 3306
    mysqli.default_host = localhost
    mysqli.default_user = root

    Step 4 :
    Add C:\php to your PATH System Environment Variable.

    Right-click on My Computer and choose Properties.
    Select the Advanced tab.
    Click Environment Variables.
    Under System variables, select “Path” and choose Edit.
    Move the cursor to the end of the string and add ;C:\php.
    A basic path will look something like the following

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\php

    Note: If you don’t want to add C:\php to your path, you may copy libmysql.dll to your C:\Windows\System directory.

    Step 5 :
    Add the following lines to httpd.conf:
    Note: httpd.conf is located in C:\Program Files\Apache Group\Apache2\conf\

    LoadModule php5_module "c:/php/php5apache2.dll"

    AddType application/x-httpd-php .php

    PHPIniDir "C:/php"

    Step 6 :
    Change the following line in the httpd.conf.
    Note: If you don’t plan on adding JSP support, don’t add index.jsp.

    DirectoryIndex index.html index.html.var

    DirectoryIndex index.php index.jsp index.html index.html.var

    Step 7 :
    Test: Restart Apache & open http://localhost in a web browser. Hopefully you see the same thing as before.

    Hint: To quickly restart Apache, simply left-click (once) on the Apache system tray icon.

    Step 8 :
    Test: Create a new text file called phpinfo.php. Paste the following into it.


    Save the document under C:\Program Files\Apache Group\Apache2\htdocs. Now open http://localhost/phpinfo.php in a web browser. You should see something like the following:

    Step 9 :

    Test: To check if the modules are loading correctly, scroll down. If the modules are working, you should see a section for “mysql” and “mysqli”.

    After this your page Must Be run on Local Server if you had not made any mistake.


Posting Permissions

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