Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 23rd, 2005, 12:05 AM
bissatch@yahoo.co.uk
Guest
 
Posts: n/a
Default Installing PHP / Apache problems (again)

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
Default 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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles