Jump to content

Recommended Posts

Hi:
Using apache 2.2.3, when install php 5.2.0 in win xp. I had these error.

"There is a problem with this Windows Installer package.  A program required
for this install to complete could not be run.  Contact your support
personnel or package vendor."

Not sure what is going on, but I tried to install everything in php 5.2.0. Is this cause the problem?
Link to comment
https://forums.phpfreaks.com/topic/32962-cant-install-php-520-in-winxp/
Share on other sites

Delete the installer and get the zipped binaries (PHP 5.2.0 zip package) instead. The installer isn't needed. Once you have download right click and select Extract All...

Extract the zip contents to C:/PHP

PHP is installed! Now all you need to do now is configure Apache to parse PHP files with the PHP interpreter.

The installer does the same thing as what you have just done. It also attempts to configure the server you using too.
[quote author=lszanto link=topic=121111.msg498089#msg498089 date=1168080121]
If your trying to install it all so it runs together just download wamp which can be found at http://wampserver.com/ just download it and it has php, mysql and apache all set and configured for each other.
[/quote]
How does that help! I hate it when people post s*** like that. Its the same when someone has a problem with IE. Instead helping getting IE sorted they say go get FF or some other browser.

Now how to configure Apache and PHP follow these steps:
Open the httpd.conf for Apache and the following lines at the bottom of the file:
[code]LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-phps .phps[/code]

Save the httpd.conf and restart Apache server. Create a test file in the htdocs (in the root of Apache install folder) folder, call it test.php and add the following code to it:
[code=php:0]<?php
phpinfo();
?>[/code]


Save the file. Now go to http://localhost/test.php and you should get a page full of information about PHP and its environment. If you do PHP is now setup with Apache!
Gonna need to be more specific than that...

Hit start->run and type cmd.  Hit enter

Use [i]cd[/i] to get into the apache bin folder and run apache.exe (or httpd.exe, not sure what it's called in apache 2.2)

It should output a more specific error.  Also, check logs/error.log and see what it says in there.  It's probably something about PHP, but if it cannot find php it just flags a warning and continues to start if I remember right.
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.