Re: Apache + PHP

From: News Me (newsTWOme_at_pacifier.com)
Date: 02/17/05


Date: Thu, 17 Feb 2005 05:59:01 -0800

vibhajha123@yahoo.com wrote:
> Hi,
> why do u think i didn't try!!! i have typed http://localhost in my
> web browser and click enter and its showing page cannot be displayed.
> But if this is not the proper way i am using , please tell me .
> Actually first thing is apache is not displaying its default page.
> First apache has to work to make PHP work. But apache is not working.
> How to make sure that PHP is alive , what are the changes i have to
> make in httpd.conf .
> Thanks Vibha.
>

Get Apache working first, then worry about PHP. Did you edit
httpd.conf? If you did, you should use the "Test Configuration" option
to make sure there are no configuration errors. If the configuration is
good, you should check the Apache error log at:

<Apache install path>\Apache2\logs\error.log

Once you get Apache working, then edit httpd.conf to make PHP work. The
necessary modifications are clearly explained in the installation
instructions and should look something like this (for PHP 5):

##
## For PHP 5
##
LoadModule php5_module "d:/Programs/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "d:/Programs/php"

NM

-- 
convert UPPERCASE NUMBER to a numeral to reply


Relevant Pages

  • Re: Forms and PHP V5.0.2 with APACHE V2.0.50
    ... Not relevant to the current issue, but MySQL 4.1 went General Availability ... To use my HOME PC to run a local APACHE web server on which to ... >develop websites that make use of PHP scripts and MySQL databases. ... PHP only reads its configuration on startup. ...
    (comp.lang.php)
  • Help with php5 install under windows
    ... This includes moving php from the ... Enable the PHP scripting language engine under Apache. ... or per-virtualhost web server configuration file. ... The PHP directives register_globals, ...
    (php.general)
  • RE: Virtual hosts and PHP "downloads": php5 and apache22 on FreeBSD6.1-STABLE
    ... Apache web server. ... Subject: Virtual hosts and PHP "downloads": php5 and apache22 on ...
    (freebsd-questions)
  • Re: HELP: send binary replies back and forth ???
    ... > My php application needs to do the following: ... > My PHP script loops through all records and sends each of them ONE BY ONE. ... > other than to be able to communicate with apache. ... All communication is binary because the connection used is pricy and ...
    (comp.lang.php)
  • Re: Apache2 and PHP5 configuration problem: SOLVED
    ... 'server-info' and 'server-status' URL's and based on the info in them, ... However, when I try to use a .php file, a file download dialog pops up. ... I'm clearly missing something in the Apache2 configuration. ... Am I missing some other Apache directive needed to allow access to or execution of PHP scripts? ...
    (Debian-User)