Jump to content

Lankster

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by Lankster

  1. you have to configure your apache server on windows to run PHP as a module. It is so much simpler.

     

    open C:\Apache2\conf\httpd.conf

     

    add these lines to the bottom if they do not exist already (uncomment the right one by removing the #):

     

    # For PHP 4 do something like this:

    LoadModule php4_module "c:/php/php4apache2.dll"

    AddType application/x-httpd-php .php

     

    # For PHP 5 do something like this:

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

    #AddType application/x-httpd-php .php

     

    # configure the path to php.ini

    PHPIniDir "C:/PHP"

     

    Restart the server. in the Apache Monitor it should at the bottom of the monitor Apache 2.X.X (Win32) PHP 4.X.X

     

    Once this shows up in the apache monitor, you know PHP is running right.

     

     

     

    yah i had to change it to:

     

    #LoadModule php5_module "c:/php/php5apache2_2.dll"

     

     

    If I change it to

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

     

    I get this:

    ERROR

    The requested operation has failed!

     

    so I change it to:

    #LoadModule php5_module "c:/php/php5apache2_2.dll"

    apache runs..

     

     

    Okay it was just one of my type O's ..  in line:AddType application/x-httpd-php .php

    I has it like this...:AddType application/x-httpd .php

     

    so ty for your time...

  2. I'm sorry, I don't use windows but from what Ive heard, the installer isn't the way to go. Maybe it would be just as easy to setup something like wampserver as suggested?

     

    Yep did that one first and nothing worked at all. I get a some error's from apache and sql would not load..

     

    So now I start over, apache works, mysql is loading, but php is not...

  3. installed the

     

    php5.0.4 installer for windows

     

    went threw the manual, add some lines in the conf

    ScriptAlias /php "c:/server/php/"

    AddType application/x-httpd-php .php

    Action application/x-httpd-php "/php/php-cgi.exe"

     

    lines in php.ini

    extension=php_mysql.dll

    extension_dir = "c:\Server\php\ext"

     

     

    moved the file libmysql

     

    restart apache (a few times now)

     

    made the <?php phpinfo(); ?> and saved it as a php

     

    open my browser, typed in:

    http://localhost/phpinfo.php

     

     

    then i get a popup asking if I want to download that file.

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.