You are here: Re: Installing php 5.x on apache 2.x « PHP Programming Language « IT news, forums, messages
Re: Installing php 5.x on apache 2.x

Posted by Andy Hassall on 11/01/50 11:32

On Sat, 19 Nov 2005 23:16:37 -0000, "Samuel" <samuel@fssc.freeserve.co.uk>
wrote:

>Can someone please help me install php on apache?
>
>I downloaded the latest stable msi installer. Left it with default options
>unless i specifically needed to change them (e.g. server). Then I went to
>configue my httpd.conf file, and I realised I don't know where to put the
>lines of code.
>
>Can someone please say where I need to insert:
>
>1) ScriptAlias /php/ "c:/php/"
>
>2) AddType application/x-httpd-php .php3) Action application/x-httpd-php
>"/php/php-cgi.exe"Thanks.

"php3" indicates you may have got this information from a very old source, and
are you sure you want to be installing as CGI when installing as an Apache
module is available? Running as a module is typically faster, and a more
"normal" configuration - there's situations where CGI may be more appropriate
but they're not all that common.

http://www.php.net/manual/en/install.windows.manual.php
http://www.php.net/manual/en/install.windows.apache2.php

... have up to date information.

I would forget using the ".exe" PHP installer and always use the ".zip"
version, as this comes with a number of useful extension DLLs that the
installer doesn't.

The installer is also supposed to set up your webserver for you, IIRC; if it
hasn't actually done that, then the .zip version should be no harder to
install.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация