Connecting Tech Pros Worldwide Help | Site Map

Installing PHP / Apache problems (again)

  #1  
Old August 23rd, 2005, 12:05 AM
bissatch@yahoo.co.uk
Guest
 
Posts: n/a
Hi,

I have had to reinstall windows and at present I am currently trying to
put back in place my apache2/php4 setup.

I have installed apache and I get the http://localhost 'apache is
installed' page. Nice one!

When I try to configure apache with PHP unzipped into a folder (c:/php)
and run it as a module, no matter what I try it just wont load the PHP
page in 'htdocs'. I havent yet set it to automatically load
'localhost/index.php' when you simply type in 'localhost', so when I do
this is presents me with a page with the file contents of localhost.
index.php is there but when I click it I then get a 404 error.

I had originally put a post up before which I think worked for me then,
but not now.

http://groups.google.co.uk/group/com...501e67acda8fa1

I have tried the following httpd.conf settings:

ScriptAlias /php4/ "C:/php/"
AddType application-xhttpd-php .php
Action application-xhttpd-php "/php/php.exe"

Im no expert on Apache so when something like this happens Im kinda
stuck. I searched on Google but it appears there are so many different
ways of installing php on apache.

Any ideas?

Burnsy

  #2  
Old August 23rd, 2005, 12:45 AM
Michael Winter
Guest
 
Posts: n/a

re: Installing PHP / Apache problems (again)


On 22/08/2005 23:59, bissatch@yahoo.co.uk wrote:

[snip]
[color=blue]
> ScriptAlias /php4/ "C:/php/"
> AddType application-xhttpd-php .php
> Action application-xhttpd-php "/php/php.exe"[/color]

Remove the '4' from the URL-path in the ScriptAlias directive, or add it
to the cgi-script argument of the Action directive ("/php4/php.exe").

Be aware that you might also need to allow access to the C:/php/
directory with a Directory directive. See the cgi-bin alias, for example
(search for: ScriptAlias /cgi-bin/).

[snip]

Hope that helps,
Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Setup jm answers 6 May 31st, 2007 08:05 PM
xampp -- MySQL problems.... Frances answers 5 June 9th, 2006 02:55 AM
Apache 2 and PHP stable yet? Randell D. answers 18 January 8th, 2006 04:25 PM
PHP code not displaying in IE 6 Bruce A. Julseth answers 13 July 17th, 2005 07:44 AM