php-general Digest 5 Jul 2011 12:03:46 -0000 Issue 7390

Topics (messages 313867 through 313869):

Re: Installing PHP
        313867 by: Chris Stinemetz
        313868 by: Chris Stinemetz
        313869 by: David Robley

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
What is your document root set to in your httpd.conf file? By default it should 
be htdocs subdirectory in apache program files.

Sent from my iPod

On Jul 4, 2011, at 12:10 PM, "Jim Giner" <jim.gi...@albanyhandball.com> wrote:

> Shawn,
> I added my php folder to the path but no change.
> 
> "Shawn McKenzie" <nos...@mckenzies.net> wrote in message 
> news:4e11e7e7.6010...@mckenzies.net...
> 
>> 
>> You may need to add c:\php\ to the Windows path so that the Apache mod
>> can find other files it may need. If you have mysql or other extensions
>> enabled in php.ini, then they may be looking for another dll that is
>> located in the php dir.
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
On Mon, Jul 4, 2011 at 8:13 AM, Alejandro Michelin Salomon (Hotmail)
<amichel...@hotmail.com> wrote:
> Jim:
> In my Windows the install adds the lines :
>
> #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
> PHPIniDir "C:\PHP\"
> LoadModule php5_module "C:\PHP\php5apache2_2.dll"
>
> AddHandler application/x-httpd-php .php
> #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
>
> Where is the apache version that you install?
>
> I have the apache 2.2.17
>
> This " php5apache2.dll " is for the version 2.0.x
> And this " php5apache2_2.dll " for the version 2.2.x
>
> Maybe the dll files is in the brong version.
>
> Alejandro M.S.


Jim,

Alejandro makes a valid point. There is a naming convention change
from apache 2.0. to 2.2 for the dll file. I know in your original post
you specified that you loaded 2.0, but you may want to double check.
Since 2.2 requires php5apache2_2.dll to work correctly.

Just a thought,

Chris

--- End Message ---
--- Begin Message ---
Jim Giner wrote:

> Hi all,
> (Hopefully I posted this in a place that can/will help me)
> 
> I got curious about running php / apache on my own laptop in order to help
> my devl process, instead of writing, uploading and testing on my site.
> 
> Found a nice pair of docs from "thesitewizard.com" that appeared to be
> pretty well-written instructions on installing each of these systems. 
> btw-
> I'm running XpSp2.  Chose the Apache 2.0 and PHP 5.2 (thread-safe?) per
> the recommendations.
> 
> Went thru all instructions step-by-step, testing all the way.  Apache
> works - PHP doesn't.  When I bring up IE and type in localhost I get the
> default apache page as I was told I should see.  When I type
> "localhost/test.php" I get a windows dialog asking what program should run
> the php script.
> 
> In debugging I went to a cmd windows and ran "c:\php\php-cgi test.php" and
> got the expected result from my script - so PHP works.
> 
> End result - they each work separately, but php is not working under
> apache.
> 
> As part of the docs instructions I added the following code to the apache
> conf file:
> 
> 1 - I chose the "configure apache to run php as an apache module.
> 2 - added "LoadModule php5_module "c:/php/php5apache2.dll" as last one of
> those lines
> 3 - added "AddType application/x-httpd-php .php" as the last of those
> lines 4 - added "PHPIniDir "c:/php" as the last line of the conf file.
> 
> Upon adding these lines apache will no longer restart.  In fact adding any
> ONE of these lines breaks Apache.
> 
> Ideas welcome.
> 
> And for those who still love the USofA, Happy Independence Day!

If you are having problems starting apache, the first place to look is your
apache error log.


Cheers
-- 
David Robley

On a radiator repair shop: Best place to take a leak.
Today is Sweetmorn, the 40th day of Confusion in the YOLD 3177. 


--- End Message ---

Reply via email to