Jump to content

Recommended Posts

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.

 

 

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...

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.

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...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.