For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > January 2007 > Re: [PHP-INSTALL] Trouble with PHP 5









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] Trouble with PHP 5
Tamer Higazi

2007-01-22, 8:04 am

Installation Steps for PHP as apache2 module (not CGI):
1. Download Apache2 and install it anywhere
2. Download PHP 5.2.0 and unzip it in C:\php
3. you have to tell apache2 where to load the module!

The module for apche 2.0:
php5apache2.dll

or apache 2.2:
LoadModule php5_module "c:/php/php5apache2_2.dll"


and the location of the php.ini directory with the extension where to
enable PHP:
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps .htmls

modify the php.ini in it's configuration:
extension_dir = "c:\php\ext"

check all these steps, and everything should work fine!




Vince Bravdica schrieb:


> I cannot seem to get PHP to function with apache server. I have
> uninstalled it a few times and keep getting the same issues. When I do
> a LoadModule, I cannot restart Apache. When I #(rem) it out, I can,
> but then no PHP. Any Ideas?
>
> OS Windows XP Pro
> 1.6mhz
> 540 Ram
> 160MB HD
>
> /Vince Bravdica/
> /President/
> /Virtual Web Resources/
> /www.vwebr.net/ <http://www.vwebr.net/>
>
>
> ------------------------------------------------------------------------
> I am using the free version of SPAMfighter for private users.
> It has removed 16070 spam emails to date.
> Paying users do not have this message in their emails.
> Try SPAMfighter <http://www.spamfighter.com> for free now!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com