Installation of PHP seems bollocks!

I have posted earlier today [b][/b]. Since then I have got Apache & MySQL installed Okay. But I suspect the installation of PHP isn't happening on my machine. If I try and go into PHP's control panel a command prompt open for a second and then shuts again. If I try to edit anything in the PHP triad control panel php.exe crashes and windows informs me that it needed to close it.

I am struggling here please help me?


  • Try installing php, mysql and apache separately 'from scratch' without using the third party software phpTriad (there could be something wrong with it).

    You can get php @
    " " " mysql @
    " " " apache @

    Do all the installation manually so you know exactly what is happening and what could fail. Chances are that if the php is not being processed, then Apache is either not recognizing the .php extension on you page or cannot find the php interpreter. For the former try editing httpd.conf and adding the page extensions:


    #Installing as a CGI
    ScriptAlias /php/ "C:/php" #This is the path to php - modify for your setup
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php.exe" #php.exe should be used for php4 but php-cgi.exe should be used for php5
    #assuming you want to install php as a CGI (less secure but easier)
    #installing as a module is a little different

    # Installing as and Apache Module
    # PHP4
    # Add to the end of the LoadModule section
    LoadModule php4_module "c:/php/sapi/php4apache.dll"

    # Add to the end of the AddModule section
    AddModule mod_php4.c

    # PHP5
    # Add to the end of the LoadModule section
    LoadModule php5_module "c:/php/php5apache.dll"

    # Add to the end of the AddModule section
    AddModule mod_php5.c


    If the above was not very helpful or you have Apache2 check out the official manual:

    This part is for installation on Windows systems:

    This part is the security issues:

    PS use http://localhost/
    to access Apache server on your local machine. Also make sure you put your php files in the Document root (usually htdocs unless you changed it).

    Finally (I know you wouldn't do this) make sure you save your php pages as .php and not .htm!

    Hope this helps. Hope you get it working.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion